mirror of
https://github.com/leanote/leanote-android.git
synced 2026-01-28 02:01:01 +08:00
rename project to “Leamonax”
This commit is contained in:
@@ -20,7 +20,7 @@ android {
|
||||
compileSdkVersion 24
|
||||
buildToolsVersion "24.0.2"
|
||||
defaultConfig {
|
||||
applicationId "org.houxg.leanotelite"
|
||||
applicationId "org.houxg.leamonax"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 23
|
||||
versionCode 1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite;
|
||||
package org.houxg.leamonax;
|
||||
|
||||
import android.content.Context;
|
||||
import android.support.test.InstrumentationRegistry;
|
||||
@@ -21,6 +21,6 @@ public class ExampleInstrumentedTest {
|
||||
// Context of the app under test.
|
||||
Context appContext = InstrumentationRegistry.getTargetContext();
|
||||
|
||||
assertEquals("org.houxg.leanotelite", appContext.getPackageName());
|
||||
assertEquals("org.houxg.leamonax", appContext.getPackageName());
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.houxg.leanotelite">
|
||||
package="org.houxg.leamonax">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
@@ -12,14 +12,14 @@
|
||||
<uses-feature android:name="android.hardware.camera.autofocus" />
|
||||
|
||||
<application
|
||||
android:name=".LeanoteLite"
|
||||
android:name="org.houxg.leamonax.Leamonax"
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme">
|
||||
|
||||
<activity android:name="org.houxg.leanotelite.ui.LeaLaunchActivity">
|
||||
<activity android:name="org.houxg.leamonax.ui.LeaLaunchActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
@@ -27,21 +27,21 @@
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name="org.houxg.leanotelite.ui.edit.NoteEditActivity"
|
||||
android:name="org.houxg.leamonax.ui.edit.NoteEditActivity"
|
||||
android:label="Edit" />
|
||||
<activity
|
||||
android:name="org.houxg.leanotelite.ui.NotePreviewActivity"
|
||||
android:name="org.houxg.leamonax.ui.NotePreviewActivity"
|
||||
android:label="Preview" />
|
||||
<activity
|
||||
android:name="org.houxg.leanotelite.ui.MainActivity"
|
||||
android:name="org.houxg.leamonax.ui.MainActivity"
|
||||
android:label="Notes" />
|
||||
<activity android:name="org.houxg.leanotelite.ui.SignInActivity" />
|
||||
<activity android:name="org.houxg.leamonax.ui.SignInActivity" />
|
||||
<activity
|
||||
android:name="org.houxg.leanotelite.ui.SettingsActivity"
|
||||
android:name="org.houxg.leamonax.ui.SettingsActivity"
|
||||
android:label="Settings" />
|
||||
|
||||
<service
|
||||
android:name=".background.NoteSyncService"
|
||||
android:name="org.houxg.leamonax.background.NoteSyncService"
|
||||
android:enabled="true"
|
||||
android:exported="false"
|
||||
android:label="NoteSyncService" >
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite;
|
||||
package org.houxg.leamonax;
|
||||
|
||||
|
||||
import android.app.Application;
|
||||
@@ -11,7 +11,7 @@ import com.raizlabs.android.dbflow.config.FlowManager;
|
||||
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
|
||||
public class LeanoteLite extends Application {
|
||||
public class Leamonax extends Application {
|
||||
|
||||
private static Context mContext;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.adapter;
|
||||
package org.houxg.leamonax.adapter;
|
||||
|
||||
|
||||
import android.content.Context;
|
||||
@@ -9,12 +9,12 @@ import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.TextView;
|
||||
|
||||
import org.houxg.leanotelite.R;
|
||||
import org.houxg.leanotelite.database.AppDataBase;
|
||||
import org.houxg.leanotelite.model.Note;
|
||||
import org.houxg.leanotelite.model.Notebook;
|
||||
import org.houxg.leanotelite.service.AccountService;
|
||||
import org.houxg.leanotelite.utils.TimeUtils;
|
||||
import org.houxg.leamonax.R;
|
||||
import org.houxg.leamonax.database.AppDataBase;
|
||||
import org.houxg.leamonax.model.Note;
|
||||
import org.houxg.leamonax.model.Notebook;
|
||||
import org.houxg.leamonax.service.AccountService;
|
||||
import org.houxg.leamonax.utils.TimeUtils;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.adapter;
|
||||
package org.houxg.leamonax.adapter;
|
||||
|
||||
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
@@ -7,11 +7,11 @@ import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.TextView;
|
||||
|
||||
import org.houxg.leanotelite.R;
|
||||
import org.houxg.leanotelite.database.AppDataBase;
|
||||
import org.houxg.leanotelite.model.Notebook;
|
||||
import org.houxg.leanotelite.service.AccountService;
|
||||
import org.houxg.leanotelite.utils.CollectionUtils;
|
||||
import org.houxg.leamonax.R;
|
||||
import org.houxg.leamonax.database.AppDataBase;
|
||||
import org.houxg.leamonax.model.Notebook;
|
||||
import org.houxg.leamonax.service.AccountService;
|
||||
import org.houxg.leamonax.utils.CollectionUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.background;
|
||||
package org.houxg.leamonax.background;
|
||||
|
||||
import android.app.Service;
|
||||
import android.content.Context;
|
||||
@@ -8,9 +8,9 @@ import android.support.annotation.Nullable;
|
||||
import android.util.Log;
|
||||
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
import org.houxg.leanotelite.model.SyncEvent;
|
||||
import org.houxg.leanotelite.service.AccountService;
|
||||
import org.houxg.leanotelite.service.NoteService;
|
||||
import org.houxg.leamonax.model.SyncEvent;
|
||||
import org.houxg.leamonax.service.AccountService;
|
||||
import org.houxg.leamonax.service.NoteService;
|
||||
|
||||
import rx.Observable;
|
||||
import rx.Observer;
|
||||
@@ -1,18 +1,18 @@
|
||||
package org.houxg.leanotelite.database;
|
||||
package org.houxg.leamonax.database;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
import com.raizlabs.android.dbflow.annotation.Database;
|
||||
import com.raizlabs.android.dbflow.sql.language.SQLite;
|
||||
|
||||
import org.houxg.leanotelite.model.Account;
|
||||
import org.houxg.leanotelite.model.Account_Table;
|
||||
import org.houxg.leanotelite.model.Note;
|
||||
import org.houxg.leanotelite.model.NoteFile;
|
||||
import org.houxg.leanotelite.model.NoteFile_Table;
|
||||
import org.houxg.leanotelite.model.Note_Table;
|
||||
import org.houxg.leanotelite.model.Notebook;
|
||||
import org.houxg.leanotelite.model.Notebook_Table;
|
||||
import org.houxg.leamonax.model.Account;
|
||||
import org.houxg.leamonax.model.Account_Table;
|
||||
import org.houxg.leamonax.model.Note;
|
||||
import org.houxg.leamonax.model.NoteFile;
|
||||
import org.houxg.leamonax.model.NoteFile_Table;
|
||||
import org.houxg.leamonax.model.Note_Table;
|
||||
import org.houxg.leamonax.model.Notebook;
|
||||
import org.houxg.leamonax.model.Notebook_Table;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.editor;
|
||||
package org.houxg.leamonax.editor;
|
||||
|
||||
|
||||
import android.net.Uri;
|
||||
@@ -10,7 +10,7 @@ import android.webkit.WebResourceResponse;
|
||||
import android.webkit.WebView;
|
||||
import android.webkit.WebViewClient;
|
||||
|
||||
import org.houxg.leanotelite.service.NoteFileService;
|
||||
import org.houxg.leamonax.service.NoteFileService;
|
||||
|
||||
public abstract class Editor {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package org.houxg.leanotelite.editor;
|
||||
package org.houxg.leamonax.editor;
|
||||
|
||||
import android.util.Log;
|
||||
import android.webkit.JavascriptInterface;
|
||||
|
||||
import org.houxg.leanotelite.utils.HtmlUtils;
|
||||
import org.houxg.leanotelite.utils.JSONUtils;
|
||||
import org.houxg.leamonax.utils.HtmlUtils;
|
||||
import org.houxg.leamonax.utils.JSONUtils;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.editor;
|
||||
package org.houxg.leamonax.editor;
|
||||
|
||||
|
||||
import android.os.Looper;
|
||||
@@ -6,7 +6,7 @@ import android.util.Log;
|
||||
import android.webkit.ValueCallback;
|
||||
import android.webkit.WebView;
|
||||
|
||||
import org.houxg.leanotelite.utils.StringUtils;
|
||||
import org.houxg.leamonax.utils.StringUtils;
|
||||
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
@@ -1,11 +1,11 @@
|
||||
package org.houxg.leanotelite.editor;
|
||||
package org.houxg.leamonax.editor;
|
||||
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.webkit.WebChromeClient;
|
||||
import android.webkit.WebView;
|
||||
|
||||
import org.houxg.leanotelite.utils.HtmlUtils;
|
||||
import org.houxg.leamonax.utils.HtmlUtils;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.editor;
|
||||
package org.houxg.leamonax.editor;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.editor;
|
||||
package org.houxg.leamonax.editor;
|
||||
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
@@ -9,7 +9,7 @@ import android.webkit.WebView;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
|
||||
import org.houxg.leanotelite.utils.HtmlUtils;
|
||||
import org.houxg.leamonax.utils.HtmlUtils;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.util.Locale;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.model;
|
||||
package org.houxg.leamonax.model;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import com.raizlabs.android.dbflow.annotation.Column;
|
||||
@@ -6,7 +6,7 @@ import com.raizlabs.android.dbflow.annotation.PrimaryKey;
|
||||
import com.raizlabs.android.dbflow.annotation.Table;
|
||||
import com.raizlabs.android.dbflow.structure.BaseModel;
|
||||
|
||||
import org.houxg.leanotelite.database.AppDataBase;
|
||||
import org.houxg.leamonax.database.AppDataBase;
|
||||
|
||||
@Table(name = "Account", database = AppDataBase.class)
|
||||
public class Account extends BaseModel {
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.model;
|
||||
package org.houxg.leamonax.model;
|
||||
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.model;
|
||||
package org.houxg.leamonax.model;
|
||||
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.model;
|
||||
package org.houxg.leamonax.model;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
@@ -8,9 +8,9 @@ import com.raizlabs.android.dbflow.annotation.PrimaryKey;
|
||||
import com.raizlabs.android.dbflow.annotation.Table;
|
||||
import com.raizlabs.android.dbflow.structure.BaseModel;
|
||||
|
||||
import org.houxg.leanotelite.database.AppDataBase;
|
||||
import org.houxg.leanotelite.utils.CollectionUtils;
|
||||
import org.houxg.leanotelite.utils.TimeUtils;
|
||||
import org.houxg.leamonax.database.AppDataBase;
|
||||
import org.houxg.leamonax.utils.CollectionUtils;
|
||||
import org.houxg.leamonax.utils.TimeUtils;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.model;
|
||||
package org.houxg.leamonax.model;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import com.raizlabs.android.dbflow.annotation.Column;
|
||||
@@ -6,7 +6,7 @@ import com.raizlabs.android.dbflow.annotation.PrimaryKey;
|
||||
import com.raizlabs.android.dbflow.annotation.Table;
|
||||
import com.raizlabs.android.dbflow.structure.BaseModel;
|
||||
|
||||
import org.houxg.leanotelite.database.AppDataBase;
|
||||
import org.houxg.leamonax.database.AppDataBase;
|
||||
|
||||
@Table(name = "NoteFile", database = AppDataBase.class)
|
||||
public class NoteFile extends BaseModel {
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.model;
|
||||
package org.houxg.leamonax.model;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import com.raizlabs.android.dbflow.annotation.Column;
|
||||
@@ -6,7 +6,7 @@ import com.raizlabs.android.dbflow.annotation.PrimaryKey;
|
||||
import com.raizlabs.android.dbflow.annotation.Table;
|
||||
import com.raizlabs.android.dbflow.structure.BaseModel;
|
||||
|
||||
import org.houxg.leanotelite.database.AppDataBase;
|
||||
import org.houxg.leamonax.database.AppDataBase;
|
||||
|
||||
/**
|
||||
* Created by binnchx on 11/1/15.
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.model;
|
||||
package org.houxg.leamonax.model;
|
||||
|
||||
|
||||
public class SyncEvent {
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.model;
|
||||
package org.houxg.leamonax.model;
|
||||
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.model;
|
||||
package org.houxg.leamonax.model;
|
||||
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.model;
|
||||
package org.houxg.leamonax.model;
|
||||
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
@@ -1,11 +1,11 @@
|
||||
package org.houxg.leanotelite.network;
|
||||
package org.houxg.leamonax.network;
|
||||
|
||||
import org.houxg.leanotelite.model.Account;
|
||||
import org.houxg.leanotelite.network.api.AuthApi;
|
||||
import org.houxg.leanotelite.network.api.NoteApi;
|
||||
import org.houxg.leanotelite.network.api.NotebookApi;
|
||||
import org.houxg.leanotelite.network.api.UserApi;
|
||||
import org.houxg.leanotelite.service.AccountService;
|
||||
import org.houxg.leamonax.model.Account;
|
||||
import org.houxg.leamonax.network.api.AuthApi;
|
||||
import org.houxg.leamonax.network.api.NoteApi;
|
||||
import org.houxg.leamonax.network.api.NotebookApi;
|
||||
import org.houxg.leamonax.network.api.UserApi;
|
||||
import org.houxg.leamonax.service.AccountService;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package org.houxg.leanotelite.network;
|
||||
package org.houxg.leamonax.network;
|
||||
|
||||
|
||||
import org.houxg.leanotelite.model.BaseResponse;
|
||||
import org.houxg.leamonax.model.BaseResponse;
|
||||
|
||||
public class LeaFailure extends IllegalStateException {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.network;
|
||||
package org.houxg.leamonax.network;
|
||||
|
||||
|
||||
import com.google.gson.Gson;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.network;
|
||||
package org.houxg.leamonax.network;
|
||||
|
||||
|
||||
import android.util.Log;
|
||||
@@ -6,9 +6,9 @@ import android.util.Log;
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.TypeAdapter;
|
||||
|
||||
import org.houxg.leanotelite.model.BaseResponse;
|
||||
import org.houxg.leanotelite.model.Note;
|
||||
import org.houxg.leanotelite.utils.CollectionUtils;
|
||||
import org.houxg.leamonax.model.BaseResponse;
|
||||
import org.houxg.leamonax.model.Note;
|
||||
import org.houxg.leamonax.utils.CollectionUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Collection;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.network;
|
||||
package org.houxg.leamonax.network;
|
||||
|
||||
|
||||
import com.google.gson.Gson;
|
||||
@@ -1,7 +1,7 @@
|
||||
package org.houxg.leanotelite.network.api;
|
||||
package org.houxg.leamonax.network.api;
|
||||
|
||||
import org.houxg.leanotelite.model.Authentication;
|
||||
import org.houxg.leanotelite.model.BaseResponse;
|
||||
import org.houxg.leamonax.model.Authentication;
|
||||
import org.houxg.leamonax.model.BaseResponse;
|
||||
|
||||
import retrofit2.Call;
|
||||
import retrofit2.http.GET;
|
||||
@@ -1,7 +1,7 @@
|
||||
package org.houxg.leanotelite.network.api;
|
||||
package org.houxg.leamonax.network.api;
|
||||
|
||||
import org.houxg.leanotelite.model.Note;
|
||||
import org.houxg.leanotelite.model.UpdateRe;
|
||||
import org.houxg.leamonax.model.Note;
|
||||
import org.houxg.leamonax.model.UpdateRe;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -1,6 +1,6 @@
|
||||
package org.houxg.leanotelite.network.api;
|
||||
package org.houxg.leamonax.network.api;
|
||||
|
||||
import org.houxg.leanotelite.model.Notebook;
|
||||
import org.houxg.leamonax.model.Notebook;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package org.houxg.leanotelite.network.api;
|
||||
package org.houxg.leamonax.network.api;
|
||||
|
||||
import org.houxg.leanotelite.model.BaseResponse;
|
||||
import org.houxg.leanotelite.model.SyncState;
|
||||
import org.houxg.leanotelite.model.User;
|
||||
import org.houxg.leamonax.model.BaseResponse;
|
||||
import org.houxg.leamonax.model.SyncState;
|
||||
import org.houxg.leamonax.model.User;
|
||||
|
||||
import retrofit2.Call;
|
||||
import retrofit2.http.GET;
|
||||
@@ -1,12 +1,12 @@
|
||||
package org.houxg.leanotelite.service;
|
||||
package org.houxg.leamonax.service;
|
||||
|
||||
import org.houxg.leanotelite.database.AppDataBase;
|
||||
import org.houxg.leanotelite.model.Account;
|
||||
import org.houxg.leanotelite.model.Authentication;
|
||||
import org.houxg.leanotelite.model.BaseResponse;
|
||||
import org.houxg.leanotelite.model.User;
|
||||
import org.houxg.leanotelite.network.ApiProvider;
|
||||
import org.houxg.leanotelite.utils.RetrofitUtils;
|
||||
import org.houxg.leamonax.database.AppDataBase;
|
||||
import org.houxg.leamonax.model.Account;
|
||||
import org.houxg.leamonax.model.Authentication;
|
||||
import org.houxg.leamonax.model.BaseResponse;
|
||||
import org.houxg.leamonax.model.User;
|
||||
import org.houxg.leamonax.network.ApiProvider;
|
||||
import org.houxg.leamonax.utils.RetrofitUtils;
|
||||
|
||||
import rx.Observable;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package org.houxg.leanotelite.service;
|
||||
package org.houxg.leamonax.service;
|
||||
|
||||
import android.net.Uri;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import org.bson.types.ObjectId;
|
||||
import org.houxg.leanotelite.LeanoteLite;
|
||||
import org.houxg.leanotelite.database.AppDataBase;
|
||||
import org.houxg.leanotelite.model.NoteFile;
|
||||
import org.houxg.leamonax.Leamonax;
|
||||
import org.houxg.leamonax.database.AppDataBase;
|
||||
import org.houxg.leamonax.model.NoteFile;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
@@ -70,7 +70,7 @@ public class NoteFileService {
|
||||
String url = NoteFileService.getUrl(AccountService.getCurrent().getHost(), noteFile.getServerId(), AccountService.getCurrent().getAccessToken());
|
||||
Log.i(TAG, "use server image, url=" + url);
|
||||
try {
|
||||
filePath = NoteFileService.getImageFromServer(Uri.parse(url), LeanoteLite.getContext().getCacheDir());
|
||||
filePath = NoteFileService.getImageFromServer(Uri.parse(url), Leamonax.getContext().getCacheDir());
|
||||
noteFile.setLocalPath(filePath);
|
||||
Log.i(TAG, "download finished, path=" + filePath);
|
||||
noteFile.save();
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.service;
|
||||
package org.houxg.leamonax.service;
|
||||
|
||||
|
||||
import android.net.Uri;
|
||||
@@ -7,17 +7,17 @@ import android.util.Log;
|
||||
import android.webkit.MimeTypeMap;
|
||||
|
||||
import org.bson.types.ObjectId;
|
||||
import org.houxg.leanotelite.database.AppDataBase;
|
||||
import org.houxg.leanotelite.model.Account;
|
||||
import org.houxg.leanotelite.model.Note;
|
||||
import org.houxg.leanotelite.model.NoteFile;
|
||||
import org.houxg.leanotelite.model.Notebook;
|
||||
import org.houxg.leanotelite.model.UpdateRe;
|
||||
import org.houxg.leanotelite.network.ApiProvider;
|
||||
import org.houxg.leanotelite.utils.CollectionUtils;
|
||||
import org.houxg.leanotelite.utils.RetrofitUtils;
|
||||
import org.houxg.leanotelite.utils.StringUtils;
|
||||
import org.houxg.leanotelite.utils.TimeUtils;
|
||||
import org.houxg.leamonax.database.AppDataBase;
|
||||
import org.houxg.leamonax.model.Account;
|
||||
import org.houxg.leamonax.model.Note;
|
||||
import org.houxg.leamonax.model.NoteFile;
|
||||
import org.houxg.leamonax.model.Notebook;
|
||||
import org.houxg.leamonax.model.UpdateRe;
|
||||
import org.houxg.leamonax.network.ApiProvider;
|
||||
import org.houxg.leamonax.utils.CollectionUtils;
|
||||
import org.houxg.leamonax.utils.RetrofitUtils;
|
||||
import org.houxg.leamonax.utils.StringUtils;
|
||||
import org.houxg.leamonax.utils.TimeUtils;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
@@ -1,12 +1,12 @@
|
||||
package org.houxg.leanotelite.service;
|
||||
package org.houxg.leamonax.service;
|
||||
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
import org.houxg.leanotelite.model.Account;
|
||||
import org.houxg.leanotelite.model.Notebook;
|
||||
import org.houxg.leanotelite.network.ApiProvider;
|
||||
import org.houxg.leanotelite.utils.RetrofitUtils;
|
||||
import org.houxg.leamonax.model.Account;
|
||||
import org.houxg.leamonax.model.Notebook;
|
||||
import org.houxg.leamonax.network.ApiProvider;
|
||||
import org.houxg.leamonax.utils.RetrofitUtils;
|
||||
|
||||
public class NotebookService {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.ui;
|
||||
package org.houxg.leamonax.ui;
|
||||
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
@@ -8,7 +8,7 @@ import android.support.v7.app.AppCompatActivity;
|
||||
import android.support.v7.widget.Toolbar;
|
||||
import android.view.MenuItem;
|
||||
|
||||
import org.houxg.leanotelite.R;
|
||||
import org.houxg.leamonax.R;
|
||||
|
||||
public class BaseActivity extends AppCompatActivity {
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package org.houxg.leanotelite.ui;
|
||||
package org.houxg.leamonax.ui;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
|
||||
import org.houxg.leanotelite.model.Account;
|
||||
import org.houxg.leanotelite.network.ApiProvider;
|
||||
import org.houxg.leanotelite.service.AccountService;
|
||||
import org.houxg.leamonax.model.Account;
|
||||
import org.houxg.leamonax.network.ApiProvider;
|
||||
import org.houxg.leamonax.service.AccountService;
|
||||
|
||||
public class LeaLaunchActivity extends Activity {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.ui;
|
||||
package org.houxg.leamonax.ui;
|
||||
|
||||
|
||||
import android.app.AlertDialog;
|
||||
@@ -27,17 +27,17 @@ import com.bumptech.glide.Glide;
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
import org.greenrobot.eventbus.Subscribe;
|
||||
import org.greenrobot.eventbus.ThreadMode;
|
||||
import org.houxg.leanotelite.R;
|
||||
import org.houxg.leanotelite.adapter.NotebookAdapter;
|
||||
import org.houxg.leanotelite.database.AppDataBase;
|
||||
import org.houxg.leanotelite.model.Account;
|
||||
import org.houxg.leanotelite.model.Note;
|
||||
import org.houxg.leanotelite.model.Notebook;
|
||||
import org.houxg.leanotelite.model.SyncEvent;
|
||||
import org.houxg.leanotelite.model.User;
|
||||
import org.houxg.leanotelite.service.AccountService;
|
||||
import org.houxg.leanotelite.service.NotebookService;
|
||||
import org.houxg.leanotelite.ui.edit.NoteEditActivity;
|
||||
import org.houxg.leamonax.R;
|
||||
import org.houxg.leamonax.adapter.NotebookAdapter;
|
||||
import org.houxg.leamonax.database.AppDataBase;
|
||||
import org.houxg.leamonax.model.Account;
|
||||
import org.houxg.leamonax.model.Note;
|
||||
import org.houxg.leamonax.model.Notebook;
|
||||
import org.houxg.leamonax.model.SyncEvent;
|
||||
import org.houxg.leamonax.model.User;
|
||||
import org.houxg.leamonax.service.AccountService;
|
||||
import org.houxg.leamonax.service.NotebookService;
|
||||
import org.houxg.leamonax.ui.edit.NoteEditActivity;
|
||||
|
||||
import butterknife.BindView;
|
||||
import butterknife.ButterKnife;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.ui;
|
||||
package org.houxg.leamonax.ui;
|
||||
|
||||
|
||||
import android.app.AlertDialog;
|
||||
@@ -25,14 +25,14 @@ import android.view.ViewGroup;
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
import org.greenrobot.eventbus.Subscribe;
|
||||
import org.greenrobot.eventbus.ThreadMode;
|
||||
import org.houxg.leanotelite.R;
|
||||
import org.houxg.leanotelite.adapter.NoteAdapter;
|
||||
import org.houxg.leanotelite.background.NoteSyncService;
|
||||
import org.houxg.leanotelite.model.Note;
|
||||
import org.houxg.leanotelite.model.SyncEvent;
|
||||
import org.houxg.leanotelite.service.NoteService;
|
||||
import org.houxg.leanotelite.utils.DisplayUtils;
|
||||
import org.houxg.leanotelite.utils.ToastUtils;
|
||||
import org.houxg.leamonax.R;
|
||||
import org.houxg.leamonax.adapter.NoteAdapter;
|
||||
import org.houxg.leamonax.background.NoteSyncService;
|
||||
import org.houxg.leamonax.model.Note;
|
||||
import org.houxg.leamonax.model.SyncEvent;
|
||||
import org.houxg.leamonax.service.NoteService;
|
||||
import org.houxg.leamonax.utils.DisplayUtils;
|
||||
import org.houxg.leamonax.utils.ToastUtils;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.ui;
|
||||
package org.houxg.leamonax.ui;
|
||||
|
||||
import android.app.ProgressDialog;
|
||||
import android.content.Context;
|
||||
@@ -10,14 +10,14 @@ import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
|
||||
import org.houxg.leanotelite.R;
|
||||
import org.houxg.leanotelite.database.AppDataBase;
|
||||
import org.houxg.leanotelite.model.Note;
|
||||
import org.houxg.leanotelite.service.NoteService;
|
||||
import org.houxg.leanotelite.ui.edit.EditorFragment;
|
||||
import org.houxg.leanotelite.ui.edit.NoteEditActivity;
|
||||
import org.houxg.leanotelite.utils.NetworkUtils;
|
||||
import org.houxg.leanotelite.utils.ToastUtils;
|
||||
import org.houxg.leamonax.R;
|
||||
import org.houxg.leamonax.database.AppDataBase;
|
||||
import org.houxg.leamonax.model.Note;
|
||||
import org.houxg.leamonax.service.NoteService;
|
||||
import org.houxg.leamonax.ui.edit.EditorFragment;
|
||||
import org.houxg.leamonax.ui.edit.NoteEditActivity;
|
||||
import org.houxg.leamonax.utils.NetworkUtils;
|
||||
import org.houxg.leamonax.utils.ToastUtils;
|
||||
|
||||
import butterknife.BindView;
|
||||
import butterknife.ButterKnife;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.ui;
|
||||
package org.houxg.leamonax.ui;
|
||||
|
||||
|
||||
import android.app.AlertDialog;
|
||||
@@ -16,16 +16,16 @@ import android.widget.TextView;
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.raizlabs.android.dbflow.sql.language.SQLite;
|
||||
|
||||
import org.houxg.leanotelite.BuildConfig;
|
||||
import org.houxg.leanotelite.R;
|
||||
import org.houxg.leanotelite.model.Account;
|
||||
import org.houxg.leanotelite.model.BaseResponse;
|
||||
import org.houxg.leanotelite.model.Note;
|
||||
import org.houxg.leanotelite.model.Note_Table;
|
||||
import org.houxg.leanotelite.model.Notebook;
|
||||
import org.houxg.leanotelite.model.Notebook_Table;
|
||||
import org.houxg.leanotelite.service.AccountService;
|
||||
import org.houxg.leanotelite.utils.ToastUtils;
|
||||
import org.houxg.leamonax.BuildConfig;
|
||||
import org.houxg.leamonax.R;
|
||||
import org.houxg.leamonax.model.Account;
|
||||
import org.houxg.leamonax.model.BaseResponse;
|
||||
import org.houxg.leamonax.model.Note;
|
||||
import org.houxg.leamonax.model.Note_Table;
|
||||
import org.houxg.leamonax.model.Notebook;
|
||||
import org.houxg.leamonax.model.Notebook_Table;
|
||||
import org.houxg.leamonax.service.AccountService;
|
||||
import org.houxg.leamonax.utils.ToastUtils;
|
||||
|
||||
import butterknife.BindView;
|
||||
import butterknife.ButterKnife;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.ui;
|
||||
package org.houxg.leamonax.ui;
|
||||
|
||||
|
||||
import android.content.Intent;
|
||||
@@ -13,11 +13,11 @@ import android.widget.EditText;
|
||||
import android.widget.ProgressBar;
|
||||
import android.widget.TextView;
|
||||
|
||||
import org.houxg.leanotelite.R;
|
||||
import org.houxg.leanotelite.model.Authentication;
|
||||
import org.houxg.leanotelite.network.ApiProvider;
|
||||
import org.houxg.leanotelite.service.AccountService;
|
||||
import org.houxg.leanotelite.utils.ToastUtils;
|
||||
import org.houxg.leamonax.R;
|
||||
import org.houxg.leamonax.model.Authentication;
|
||||
import org.houxg.leamonax.network.ApiProvider;
|
||||
import org.houxg.leamonax.service.AccountService;
|
||||
import org.houxg.leamonax.utils.ToastUtils;
|
||||
|
||||
import butterknife.BindView;
|
||||
import butterknife.ButterKnife;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.ui.edit;
|
||||
package org.houxg.leamonax.ui.edit;
|
||||
|
||||
|
||||
import android.app.Activity;
|
||||
@@ -19,13 +19,13 @@ import com.bumptech.glide.Glide;
|
||||
import com.yuyh.library.imgsel.ImgSelActivity;
|
||||
import com.yuyh.library.imgsel.ImgSelConfig;
|
||||
|
||||
import org.houxg.leanotelite.R;
|
||||
import org.houxg.leanotelite.editor.Editor;
|
||||
import org.houxg.leanotelite.editor.MarkdownEditor;
|
||||
import org.houxg.leanotelite.editor.RichTextEditor;
|
||||
import org.houxg.leanotelite.utils.CollectionUtils;
|
||||
import org.houxg.leanotelite.utils.DialogUtils;
|
||||
import org.houxg.leanotelite.widget.ToggleImageButton;
|
||||
import org.houxg.leamonax.R;
|
||||
import org.houxg.leamonax.editor.Editor;
|
||||
import org.houxg.leamonax.editor.MarkdownEditor;
|
||||
import org.houxg.leamonax.editor.RichTextEditor;
|
||||
import org.houxg.leamonax.utils.CollectionUtils;
|
||||
import org.houxg.leamonax.utils.DialogUtils;
|
||||
import org.houxg.leamonax.widget.ToggleImageButton;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.ui.edit;
|
||||
package org.houxg.leamonax.ui.edit;
|
||||
|
||||
import android.app.Fragment;
|
||||
import android.app.FragmentManager;
|
||||
@@ -14,15 +14,15 @@ import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import org.houxg.leanotelite.R;
|
||||
import org.houxg.leanotelite.database.AppDataBase;
|
||||
import org.houxg.leanotelite.model.Note;
|
||||
import org.houxg.leanotelite.service.NoteFileService;
|
||||
import org.houxg.leanotelite.service.NoteService;
|
||||
import org.houxg.leanotelite.ui.BaseActivity;
|
||||
import org.houxg.leanotelite.utils.NetworkUtils;
|
||||
import org.houxg.leanotelite.utils.ToastUtils;
|
||||
import org.houxg.leanotelite.widget.LeaViewPager;
|
||||
import org.houxg.leamonax.R;
|
||||
import org.houxg.leamonax.database.AppDataBase;
|
||||
import org.houxg.leamonax.model.Note;
|
||||
import org.houxg.leamonax.service.NoteFileService;
|
||||
import org.houxg.leamonax.service.NoteService;
|
||||
import org.houxg.leamonax.ui.BaseActivity;
|
||||
import org.houxg.leamonax.utils.NetworkUtils;
|
||||
import org.houxg.leamonax.utils.ToastUtils;
|
||||
import org.houxg.leamonax.widget.LeaViewPager;
|
||||
|
||||
import rx.Observable;
|
||||
import rx.Subscriber;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.ui.edit;
|
||||
package org.houxg.leamonax.ui.edit;
|
||||
|
||||
|
||||
import android.app.AlertDialog;
|
||||
@@ -15,10 +15,10 @@ import android.widget.EditText;
|
||||
import android.widget.Switch;
|
||||
import android.widget.TextView;
|
||||
|
||||
import org.houxg.leanotelite.R;
|
||||
import org.houxg.leanotelite.database.AppDataBase;
|
||||
import org.houxg.leanotelite.model.Notebook;
|
||||
import org.houxg.leanotelite.service.AccountService;
|
||||
import org.houxg.leamonax.R;
|
||||
import org.houxg.leamonax.database.AppDataBase;
|
||||
import org.houxg.leamonax.model.Notebook;
|
||||
import org.houxg.leamonax.service.AccountService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.utils;
|
||||
package org.houxg.leamonax.utils;
|
||||
|
||||
|
||||
import java.util.Collection;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.utils;
|
||||
package org.houxg.leamonax.utils;
|
||||
|
||||
|
||||
import android.app.AlertDialog;
|
||||
@@ -9,7 +9,7 @@ import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.widget.EditText;
|
||||
|
||||
import org.houxg.leanotelite.R;
|
||||
import org.houxg.leamonax.R;
|
||||
|
||||
public class DialogUtils {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.utils;
|
||||
package org.houxg.leamonax.utils;
|
||||
|
||||
|
||||
import android.content.Context;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.utils;
|
||||
package org.houxg.leamonax.utils;
|
||||
|
||||
|
||||
import android.text.TextUtils;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.utils;
|
||||
package org.houxg.leamonax.utils;
|
||||
|
||||
|
||||
import org.json.JSONObject;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.utils;
|
||||
package org.houxg.leamonax.utils;
|
||||
|
||||
|
||||
import android.content.Context;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.utils;
|
||||
package org.houxg.leamonax.utils;
|
||||
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.utils;
|
||||
package org.houxg.leamonax.utils;
|
||||
|
||||
|
||||
import java.util.regex.Matcher;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.utils;
|
||||
package org.houxg.leamonax.utils;
|
||||
|
||||
|
||||
import java.text.ParseException;
|
||||
@@ -1,11 +1,11 @@
|
||||
package org.houxg.leanotelite.utils;
|
||||
package org.houxg.leamonax.utils;
|
||||
|
||||
|
||||
import android.content.Context;
|
||||
import android.support.annotation.StringRes;
|
||||
import android.widget.Toast;
|
||||
|
||||
import org.houxg.leanotelite.R;
|
||||
import org.houxg.leamonax.R;
|
||||
|
||||
public class ToastUtils {
|
||||
public static void show(Context context, String message) {
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.widget;
|
||||
package org.houxg.leamonax.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.support.v4.view.ViewPager;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.widget;
|
||||
package org.houxg.leamonax.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite.widget;
|
||||
package org.houxg.leamonax.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
@@ -7,7 +7,7 @@ import android.util.AttributeSet;
|
||||
import android.widget.Checkable;
|
||||
import android.widget.ImageView;
|
||||
|
||||
import org.houxg.leanotelite.R;
|
||||
import org.houxg.leamonax.R;
|
||||
|
||||
|
||||
public class ToggleImageButton extends ImageView implements Checkable {
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
<include layout="@layout/toolbar" />
|
||||
|
||||
<org.houxg.leanotelite.widget.LeaViewPager
|
||||
<org.houxg.leamonax.widget.LeaViewPager
|
||||
android:id="@+id/pager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
@@ -17,30 +17,30 @@
|
||||
style="@style/FormatButton"
|
||||
android:src="@drawable/ic_insert_photo_black_disable" />
|
||||
|
||||
<org.houxg.leanotelite.widget.ToggleImageButton
|
||||
<org.houxg.leamonax.widget.ToggleImageButton
|
||||
android:id="@+id/btn_link"
|
||||
style="@style/FormatButton"
|
||||
android:src="@drawable/ic_insert_link_black_disable" />
|
||||
|
||||
<org.houxg.leanotelite.widget.ToggleImageButton
|
||||
<org.houxg.leamonax.widget.ToggleImageButton
|
||||
android:id="@+id/btn_order_list"
|
||||
style="@style/FormatButton"
|
||||
app:checkedDrawable="@drawable/ic_format_list_bulleted_black_enable"
|
||||
app:uncheckedDrawable="@drawable/ic_format_list_bulleted_black_disable" />
|
||||
|
||||
<org.houxg.leanotelite.widget.ToggleImageButton
|
||||
<org.houxg.leamonax.widget.ToggleImageButton
|
||||
android:id="@+id/btn_unorder_list"
|
||||
style="@style/FormatButton"
|
||||
app:checkedDrawable="@drawable/ic_format_list_numbered_black_enable"
|
||||
app:uncheckedDrawable="@drawable/ic_format_list_numbered_black_disable" />
|
||||
|
||||
<org.houxg.leanotelite.widget.ToggleImageButton
|
||||
<org.houxg.leamonax.widget.ToggleImageButton
|
||||
android:id="@+id/btn_bold"
|
||||
style="@style/FormatButton"
|
||||
app:checkedDrawable="@drawable/ic_format_bold_black_enable"
|
||||
app:uncheckedDrawable="@drawable/ic_format_bold_black_disable" />
|
||||
|
||||
<org.houxg.leanotelite.widget.ToggleImageButton
|
||||
<org.houxg.leamonax.widget.ToggleImageButton
|
||||
android:id="@+id/btn_italic"
|
||||
style="@style/FormatButton"
|
||||
app:checkedDrawable="@drawable/ic_format_italic_black_enable"
|
||||
@@ -57,7 +57,7 @@
|
||||
android:src="@drawable/ic_redo_black_disable" />
|
||||
</org.houxg.flexlayout.FlexLayout>
|
||||
|
||||
<org.houxg.leanotelite.widget.LeaWebView
|
||||
<org.houxg.leamonax.widget.LeaWebView
|
||||
android:id="@+id/web_editor"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<resources>
|
||||
<string name="app_name">Leanote Lite</string>
|
||||
<string name="app_name">Leamonax</string>
|
||||
<string name="network_is_unavailable">Network is unavailable</string>
|
||||
<string name="save_note_failed">Save note failed</string>
|
||||
<string name="sync_notes_failed">Sync notes failed</string>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.houxg.leanotelite;
|
||||
package org.houxg.leamonax;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
Reference in New Issue
Block a user