diff --git a/Readme.md b/Readme.md index 0686983f4..2ee596e5c 100644 --- a/Readme.md +++ b/Readme.md @@ -4,7 +4,7 @@ 同时有[Sublime Text 插件](https://github.com/hyb1996/AutoJs-Sublime-Plugin)可提供基础的在桌面开发的功能。 -下载地址:[酷安](http://www.coolapk.com/apk/com.stardust.scriptdroid) +下载地址:[酷安](http://www.coolapk.com/apk/org.autojs.autojs) Alpha版本:[Releases](https://github.com/hyb1996/NoRootScriptDroid/releases) diff --git a/app/build.gradle b/app/build.gradle index 443001078..05d0b0c3e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -5,7 +5,7 @@ android { compileSdkVersion 25 buildToolsVersion '26.0.2' defaultConfig { - applicationId "com.stardust.scriptdroid" + applicationId "org.autojs.autojs" minSdkVersion 17 targetSdkVersion 23 versionCode 263 diff --git a/app/src/androidTest/java/com/stardust/scriptdroid/statics/RhinoE4XTest.java b/app/src/androidTest/java/org/autojs/autojs/statics/RhinoE4XTest.java similarity index 93% rename from app/src/androidTest/java/com/stardust/scriptdroid/statics/RhinoE4XTest.java rename to app/src/androidTest/java/org/autojs/autojs/statics/RhinoE4XTest.java index c9fe4f691..e094792b6 100644 --- a/app/src/androidTest/java/com/stardust/scriptdroid/statics/RhinoE4XTest.java +++ b/app/src/androidTest/java/org/autojs/autojs/statics/RhinoE4XTest.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.statics; +package org.autojs.autojs.statics; import org.junit.Test; import org.mozilla.javascript.Context; diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 82939fef8..0356aca7c 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ + package="org.autojs.autojs"> @@ -47,7 +47,7 @@ @@ -58,7 +58,7 @@ diff --git a/app/src/main/java/com/stardust/theme/dialog/ThemeColorMaterialDialogBuilder.java b/app/src/main/java/com/stardust/theme/dialog/ThemeColorMaterialDialogBuilder.java deleted file mode 100644 index acf6054e2..000000000 --- a/app/src/main/java/com/stardust/theme/dialog/ThemeColorMaterialDialogBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.stardust.theme.dialog; - -import android.content.Context; -import android.support.annotation.NonNull; - -import com.afollestad.materialdialogs.MaterialDialog; -import com.stardust.theme.ThemeColor; -import com.stardust.theme.ThemeColorManager; -import com.stardust.theme.ThemeColorMutable; - -/** - * Created by Stardust on 2017/3/5. - */ - -public class ThemeColorMaterialDialogBuilder extends MaterialDialog.Builder implements ThemeColorMutable { - public ThemeColorMaterialDialogBuilder(@NonNull Context context) { - super(context); - ThemeColorManager.add(this); - } - - @Override - public void setThemeColor(ThemeColor themeColor) { - int color = themeColor.colorPrimary; - positiveColor(color); - negativeColor(color); - neutralColor(color); - } -} diff --git a/app/src/main/java/com/stardust/scriptdroid/App.java b/app/src/main/java/org/autojs/autojs/App.java similarity index 91% rename from app/src/main/java/com/stardust/scriptdroid/App.java rename to app/src/main/java/org/autojs/autojs/App.java index 799c0aa2c..e28e0cdb8 100644 --- a/app/src/main/java/com/stardust/scriptdroid/App.java +++ b/app/src/main/java/org/autojs/autojs/App.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid; +package org.autojs.autojs; import android.graphics.Bitmap; import android.graphics.drawable.Drawable; @@ -18,13 +18,13 @@ import com.stardust.app.GlobalAppContext; import com.stardust.autojs.core.ui.inflater.ImageLoader; import com.stardust.autojs.core.ui.inflater.util.Drawables; -import com.stardust.scriptdroid.autojs.AutoJs; -import com.stardust.scriptdroid.autojs.key.GlobalKeyObserver; -import com.stardust.scriptdroid.network.GlideApp; -import com.stardust.scriptdroid.storage.database.TimedTaskDatabase; -import com.stardust.scriptdroid.timing.TimedTaskScheduler; -import com.stardust.scriptdroid.tool.CrashHandler; -import com.stardust.scriptdroid.ui.error.ErrorReportActivity; +import org.autojs.autojs.autojs.AutoJs; +import org.autojs.autojs.autojs.key.GlobalKeyObserver; +import org.autojs.autojs.network.GlideApp; +import org.autojs.autojs.storage.database.TimedTaskDatabase; +import org.autojs.autojs.timing.TimedTaskScheduler; +import org.autojs.autojs.tool.CrashHandler; +import org.autojs.autojs.ui.error.ErrorReportActivity; import com.stardust.theme.ThemeColor; import com.stardust.theme.ThemeColorManager; import com.stardust.util.UiHandler; diff --git a/app/src/main/java/com/stardust/scriptdroid/Constants.java b/app/src/main/java/org/autojs/autojs/Constants.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/Constants.java rename to app/src/main/java/org/autojs/autojs/Constants.java index 1de8da7be..01f8446c7 100644 --- a/app/src/main/java/com/stardust/scriptdroid/Constants.java +++ b/app/src/main/java/org/autojs/autojs/Constants.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid; +package org.autojs.autojs; /** * Created by Stardust on 2017/7/7. diff --git a/app/src/test/java/com/stardust/scriptdroid/Main.java b/app/src/main/java/org/autojs/autojs/Main.java similarity index 99% rename from app/src/test/java/com/stardust/scriptdroid/Main.java rename to app/src/main/java/org/autojs/autojs/Main.java index c37a0ac3b..ce90c40d0 100644 --- a/app/src/test/java/com/stardust/scriptdroid/Main.java +++ b/app/src/main/java/org/autojs/autojs/Main.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid; +package org.autojs.autojs; import org.mozilla.javascript.Context; import org.mozilla.javascript.ContextAction; diff --git a/app/src/main/java/com/stardust/scriptdroid/Pref.java b/app/src/main/java/org/autojs/autojs/Pref.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/Pref.java rename to app/src/main/java/org/autojs/autojs/Pref.java index 3118037b8..18a91167c 100644 --- a/app/src/main/java/com/stardust/scriptdroid/Pref.java +++ b/app/src/main/java/org/autojs/autojs/Pref.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid; +package org.autojs.autojs; import android.content.Context; import android.content.SharedPreferences; @@ -6,7 +6,7 @@ import com.stardust.app.GlobalAppContext; import com.stardust.autojs.runtime.accessibility.AccessibilityConfig; -import com.stardust.scriptdroid.autojs.key.GlobalKeyObserver; +import org.autojs.autojs.autojs.key.GlobalKeyObserver; import java.util.concurrent.TimeUnit; diff --git a/app/src/main/java/com/stardust/scriptdroid/accessibility/AccessibilityEventHelper.java b/app/src/main/java/org/autojs/autojs/accessibility/AccessibilityEventHelper.java similarity index 94% rename from app/src/main/java/com/stardust/scriptdroid/accessibility/AccessibilityEventHelper.java rename to app/src/main/java/org/autojs/autojs/accessibility/AccessibilityEventHelper.java index ec34d9002..57d3e2e03 100644 --- a/app/src/main/java/com/stardust/scriptdroid/accessibility/AccessibilityEventHelper.java +++ b/app/src/main/java/org/autojs/autojs/accessibility/AccessibilityEventHelper.java @@ -1,10 +1,10 @@ -package com.stardust.scriptdroid.accessibility; +package org.autojs.autojs.accessibility; import android.util.SparseArray; import android.view.accessibility.AccessibilityEvent; import android.view.accessibility.AccessibilityNodeInfo; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.R; import com.stardust.util.SparseArrayEntries; import static android.view.accessibility.AccessibilityEvent.TYPE_VIEW_CLICKED; diff --git a/app/src/main/java/com/stardust/scriptdroid/accessibility/AccessibilityService.java b/app/src/main/java/org/autojs/autojs/accessibility/AccessibilityService.java similarity index 88% rename from app/src/main/java/com/stardust/scriptdroid/accessibility/AccessibilityService.java rename to app/src/main/java/org/autojs/autojs/accessibility/AccessibilityService.java index 4d3110229..00ab9481a 100644 --- a/app/src/main/java/com/stardust/scriptdroid/accessibility/AccessibilityService.java +++ b/app/src/main/java/org/autojs/autojs/accessibility/AccessibilityService.java @@ -1,9 +1,9 @@ -package com.stardust.scriptdroid.accessibility; +package org.autojs.autojs.accessibility; import android.accessibilityservice.AccessibilityServiceInfo; -import com.stardust.scriptdroid.Pref; +import org.autojs.autojs.Pref; /** * Created by Stardust on 2017/8/14. diff --git a/app/src/main/java/com/stardust/scriptdroid/autojs/AutoJs.java b/app/src/main/java/org/autojs/autojs/autojs/AutoJs.java similarity index 87% rename from app/src/main/java/com/stardust/scriptdroid/autojs/AutoJs.java rename to app/src/main/java/org/autojs/autojs/autojs/AutoJs.java index d71bc376c..6b64526c1 100644 --- a/app/src/main/java/com/stardust/scriptdroid/autojs/AutoJs.java +++ b/app/src/main/java/org/autojs/autojs/autojs/AutoJs.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.autojs; +package org.autojs.autojs.autojs; import android.app.Application; import android.content.Context; @@ -10,16 +10,16 @@ import com.stardust.autojs.runtime.exception.ScriptException; import com.stardust.autojs.runtime.api.Console; import com.stardust.autojs.runtime.exception.ScriptInterruptedException; -import com.stardust.scriptdroid.App; -import com.stardust.scriptdroid.BuildConfig; -import com.stardust.scriptdroid.Pref; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.pluginclient.DevPluginService; -import com.stardust.scriptdroid.ui.log.LogActivity_; -import com.stardust.scriptdroid.ui.settings.SettingsActivity; -import com.stardust.scriptdroid.ui.settings.SettingsActivity_; +import org.autojs.autojs.App; +import org.autojs.autojs.BuildConfig; +import org.autojs.autojs.Pref; +import org.autojs.autojs.R; +import org.autojs.autojs.pluginclient.DevPluginService; +import org.autojs.autojs.ui.log.LogActivity_; +import org.autojs.autojs.ui.settings.SettingsActivity; +import org.autojs.autojs.ui.settings.SettingsActivity_; import com.stardust.view.accessibility.AccessibilityService; -import com.stardust.scriptdroid.tool.AccessibilityServiceTool; +import org.autojs.autojs.tool.AccessibilityServiceTool; /** @@ -97,7 +97,7 @@ public void waitForAccessibilityServiceEnabled() { } if (errorMessage != null) { AccessibilityServiceTool.goToAccessibilitySetting(); - if (!com.stardust.scriptdroid.accessibility.AccessibilityService.waitForEnabled(-1)) { + if (!org.autojs.autojs.accessibility.AccessibilityService.waitForEnabled(-1)) { throw new ScriptInterruptedException(); } } diff --git a/app/src/main/java/com/stardust/scriptdroid/autojs/ScriptExecutionGlobalListener.java b/app/src/main/java/org/autojs/autojs/autojs/ScriptExecutionGlobalListener.java similarity index 84% rename from app/src/main/java/com/stardust/scriptdroid/autojs/ScriptExecutionGlobalListener.java rename to app/src/main/java/org/autojs/autojs/autojs/ScriptExecutionGlobalListener.java index b77d56e31..90e58dfd4 100644 --- a/app/src/main/java/com/stardust/scriptdroid/autojs/ScriptExecutionGlobalListener.java +++ b/app/src/main/java/org/autojs/autojs/autojs/ScriptExecutionGlobalListener.java @@ -1,18 +1,18 @@ -package com.stardust.scriptdroid.autojs; +package org.autojs.autojs.autojs; import com.stardust.app.GlobalAppContext; import com.stardust.autojs.engine.JavaScriptEngine; import com.stardust.autojs.execution.ScriptExecution; import com.stardust.autojs.execution.ScriptExecutionListener; -import com.stardust.scriptdroid.App; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.App; +import org.autojs.autojs.R; /** * Created by Stardust on 2017/5/3. */ public class ScriptExecutionGlobalListener implements ScriptExecutionListener { - private static final String ENGINE_TAG_START_TIME = "com.stardust.scriptdroid.autojs.Goodbye, World"; + private static final String ENGINE_TAG_START_TIME = "org.autojs.autojs.autojs.Goodbye, World"; @Override public void onStart(ScriptExecution execution) { diff --git a/app/src/main/java/com/stardust/scriptdroid/autojs/build/AutoJsApkBuilder.java b/app/src/main/java/org/autojs/autojs/autojs/build/AutoJsApkBuilder.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/autojs/build/AutoJsApkBuilder.java rename to app/src/main/java/org/autojs/autojs/autojs/build/AutoJsApkBuilder.java index 98a6333af..4e2ce0616 100644 --- a/app/src/main/java/com/stardust/scriptdroid/autojs/build/AutoJsApkBuilder.java +++ b/app/src/main/java/org/autojs/autojs/autojs/build/AutoJsApkBuilder.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.autojs.build; +package org.autojs.autojs.autojs.build; import android.graphics.Bitmap; @@ -8,7 +8,7 @@ import com.stardust.autojs.apkbuilder.util.StreamUtils; import com.stardust.autojs.project.ProjectConfig; import com.stardust.pio.PFiles; -import com.stardust.scriptdroid.App; +import org.autojs.autojs.App; import java.io.File; import java.io.FileInputStream; diff --git a/app/src/main/java/com/stardust/scriptdroid/autojs/key/GlobalKeyObserver.java b/app/src/main/java/org/autojs/autojs/autojs/key/GlobalKeyObserver.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/autojs/key/GlobalKeyObserver.java rename to app/src/main/java/org/autojs/autojs/autojs/key/GlobalKeyObserver.java index fad842685..29db0e580 100644 --- a/app/src/main/java/com/stardust/scriptdroid/autojs/key/GlobalKeyObserver.java +++ b/app/src/main/java/org/autojs/autojs/autojs/key/GlobalKeyObserver.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.autojs.key; +package org.autojs.autojs.autojs.key; import android.util.Log; import android.view.KeyEvent; @@ -7,8 +7,8 @@ import com.stardust.autojs.core.inputevent.InputEventObserver; import com.stardust.autojs.core.inputevent.ShellKeyObserver; import com.stardust.event.EventDispatcher; -import com.stardust.scriptdroid.Pref; -import com.stardust.scriptdroid.autojs.AutoJs; +import org.autojs.autojs.Pref; +import org.autojs.autojs.autojs.AutoJs; import com.stardust.view.accessibility.AccessibilityService; import com.stardust.view.accessibility.OnKeyListener; diff --git a/app/src/main/java/com/stardust/scriptdroid/autojs/record/GlobalActionRecorder.java b/app/src/main/java/org/autojs/autojs/autojs/record/GlobalActionRecorder.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/autojs/record/GlobalActionRecorder.java rename to app/src/main/java/org/autojs/autojs/autojs/record/GlobalActionRecorder.java index 9128ab70a..a0529cdff 100644 --- a/app/src/main/java/com/stardust/scriptdroid/autojs/record/GlobalActionRecorder.java +++ b/app/src/main/java/org/autojs/autojs/autojs/record/GlobalActionRecorder.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.autojs.record; +package org.autojs.autojs.autojs.record; import android.content.Context; import android.os.Looper; @@ -12,11 +12,10 @@ import com.stardust.autojs.core.record.inputevent.InputEventToAutoFileRecorder; import com.stardust.autojs.core.record.inputevent.InputEventToRootAutomatorRecorder; import com.stardust.autojs.core.record.inputevent.TouchRecorder; -import com.stardust.scriptdroid.App; -import com.stardust.scriptdroid.Pref; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.common.ScriptOperations; -import com.stardust.theme.dialog.ThemeColorMaterialDialogBuilder; +import org.autojs.autojs.Pref; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.common.ScriptOperations; +import org.autojs.autojs.theme.dialog.ThemeColorMaterialDialogBuilder; import com.stardust.util.ClipboardUtil; diff --git a/app/src/main/java/com/stardust/scriptdroid/build/ApkBuilderPluginHelper.java b/app/src/main/java/org/autojs/autojs/build/ApkBuilderPluginHelper.java similarity index 92% rename from app/src/main/java/com/stardust/scriptdroid/build/ApkBuilderPluginHelper.java rename to app/src/main/java/org/autojs/autojs/build/ApkBuilderPluginHelper.java index d8667b635..64ac82f96 100644 --- a/app/src/main/java/com/stardust/scriptdroid/build/ApkBuilderPluginHelper.java +++ b/app/src/main/java/org/autojs/autojs/build/ApkBuilderPluginHelper.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.build; +package org.autojs.autojs.build; import android.content.Context; import android.content.pm.PackageInfo; @@ -6,8 +6,8 @@ import android.os.Build; import com.stardust.pio.UncheckedIOException; -import com.stardust.scriptdroid.BuildConfig; -import com.stardust.scriptdroid.ui.build.BuildActivity; +import org.autojs.autojs.BuildConfig; +import org.autojs.autojs.ui.build.BuildActivity; import com.stardust.util.DeveloperUtils; import java.io.IOException; diff --git a/app/src/main/java/com/stardust/scriptdroid/external/ScriptExecutionIntentService.java b/app/src/main/java/org/autojs/autojs/external/ScriptExecutionIntentService.java similarity index 92% rename from app/src/main/java/com/stardust/scriptdroid/external/ScriptExecutionIntentService.java rename to app/src/main/java/org/autojs/autojs/external/ScriptExecutionIntentService.java index 58f24ac93..a8050ce00 100644 --- a/app/src/main/java/com/stardust/scriptdroid/external/ScriptExecutionIntentService.java +++ b/app/src/main/java/org/autojs/autojs/external/ScriptExecutionIntentService.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.external; +package org.autojs.autojs.external; import android.app.IntentService; import android.content.Intent; diff --git a/app/src/main/java/com/stardust/scriptdroid/external/ScriptIntents.java b/app/src/main/java/org/autojs/autojs/external/ScriptIntents.java similarity index 92% rename from app/src/main/java/com/stardust/scriptdroid/external/ScriptIntents.java rename to app/src/main/java/org/autojs/autojs/external/ScriptIntents.java index cab9269ea..cecaf55ce 100644 --- a/app/src/main/java/com/stardust/scriptdroid/external/ScriptIntents.java +++ b/app/src/main/java/org/autojs/autojs/external/ScriptIntents.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.external; +package org.autojs.autojs.external; import android.content.Context; import android.content.Intent; @@ -9,9 +9,9 @@ import com.stardust.autojs.script.ScriptSource; import com.stardust.autojs.script.SequenceScriptSource; import com.stardust.autojs.script.StringScriptSource; -import com.stardust.scriptdroid.autojs.AutoJs; -import com.stardust.scriptdroid.storage.file.StorageFileProvider; -import com.stardust.scriptdroid.model.script.PathChecker; +import org.autojs.autojs.autojs.AutoJs; +import org.autojs.autojs.storage.file.StorageFileProvider; +import org.autojs.autojs.model.script.PathChecker; import java.io.File; diff --git a/app/src/main/java/com/stardust/scriptdroid/external/open/EditIntentActivity.java b/app/src/main/java/org/autojs/autojs/external/open/EditIntentActivity.java similarity index 82% rename from app/src/main/java/com/stardust/scriptdroid/external/open/EditIntentActivity.java rename to app/src/main/java/org/autojs/autojs/external/open/EditIntentActivity.java index 1a50f35d6..3e2f92442 100644 --- a/app/src/main/java/com/stardust/scriptdroid/external/open/EditIntentActivity.java +++ b/app/src/main/java/org/autojs/autojs/external/open/EditIntentActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.external.open; +package org.autojs.autojs.external.open; import android.content.Intent; import android.os.Bundle; @@ -6,9 +6,9 @@ import android.text.TextUtils; import android.widget.Toast; -import com.stardust.scriptdroid.ui.BaseActivity; -import com.stardust.scriptdroid.ui.edit.EditActivity; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.ui.BaseActivity; +import org.autojs.autojs.ui.edit.EditActivity; +import org.autojs.autojs.R; /** * Created by Stardust on 2017/2/2. diff --git a/app/src/main/java/com/stardust/scriptdroid/external/open/ImportIntentActivity.java b/app/src/main/java/org/autojs/autojs/external/open/ImportIntentActivity.java similarity index 90% rename from app/src/main/java/com/stardust/scriptdroid/external/open/ImportIntentActivity.java rename to app/src/main/java/org/autojs/autojs/external/open/ImportIntentActivity.java index f5bbf31a3..550f11406 100644 --- a/app/src/main/java/com/stardust/scriptdroid/external/open/ImportIntentActivity.java +++ b/app/src/main/java/org/autojs/autojs/external/open/ImportIntentActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.external.open; +package org.autojs.autojs.external.open; import android.content.Intent; import android.net.Uri; @@ -8,9 +8,9 @@ import android.widget.Toast; import com.stardust.pio.PFiles; -import com.stardust.scriptdroid.ui.BaseActivity; -import com.stardust.scriptdroid.ui.common.ScriptOperations; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.ui.BaseActivity; +import org.autojs.autojs.ui.common.ScriptOperations; +import org.autojs.autojs.R; import java.io.FileNotFoundException; import java.io.InputStream; diff --git a/app/src/main/java/com/stardust/scriptdroid/external/open/RunIntentActivity.java b/app/src/main/java/org/autojs/autojs/external/open/RunIntentActivity.java similarity index 86% rename from app/src/main/java/com/stardust/scriptdroid/external/open/RunIntentActivity.java rename to app/src/main/java/org/autojs/autojs/external/open/RunIntentActivity.java index 20bbcf22e..d5f645f8e 100644 --- a/app/src/main/java/com/stardust/scriptdroid/external/open/RunIntentActivity.java +++ b/app/src/main/java/org/autojs/autojs/external/open/RunIntentActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.external.open; +package org.autojs.autojs.external.open; import android.app.Activity; import android.content.Intent; @@ -9,9 +9,9 @@ import com.stardust.autojs.script.StringScriptSource; import com.stardust.pio.PFiles; -import com.stardust.scriptdroid.external.ScriptIntents; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.model.script.Scripts; +import org.autojs.autojs.external.ScriptIntents; +import org.autojs.autojs.R; +import org.autojs.autojs.model.script.Scripts; import java.io.FileNotFoundException; import java.io.InputStream; diff --git a/app/src/main/java/com/stardust/scriptdroid/external/shortcut/Shortcut.java b/app/src/main/java/org/autojs/autojs/external/shortcut/Shortcut.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/external/shortcut/Shortcut.java rename to app/src/main/java/org/autojs/autojs/external/shortcut/Shortcut.java index db69e3ee5..ecfb3ec2a 100644 --- a/app/src/main/java/com/stardust/scriptdroid/external/shortcut/Shortcut.java +++ b/app/src/main/java/org/autojs/autojs/external/shortcut/Shortcut.java @@ -1,11 +1,11 @@ -package com.stardust.scriptdroid.external.shortcut; +package org.autojs.autojs.external.shortcut; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.os.Bundle; -import com.stardust.scriptdroid.tool.BitmapTool; +import org.autojs.autojs.tool.BitmapTool; /** * Created by Stardust on 2017/1/20. diff --git a/app/src/main/java/com/stardust/scriptdroid/external/shortcut/ShortcutActivity.java b/app/src/main/java/org/autojs/autojs/external/shortcut/ShortcutActivity.java similarity index 73% rename from app/src/main/java/com/stardust/scriptdroid/external/shortcut/ShortcutActivity.java rename to app/src/main/java/org/autojs/autojs/external/shortcut/ShortcutActivity.java index 5fff7402b..005a601d5 100644 --- a/app/src/main/java/com/stardust/scriptdroid/external/shortcut/ShortcutActivity.java +++ b/app/src/main/java/org/autojs/autojs/external/shortcut/ShortcutActivity.java @@ -1,13 +1,13 @@ -package com.stardust.scriptdroid.external.shortcut; +package org.autojs.autojs.external.shortcut; import android.app.Activity; import android.os.Bundle; import android.widget.Toast; -import com.stardust.scriptdroid.model.script.PathChecker; -import com.stardust.scriptdroid.external.ScriptIntents; -import com.stardust.scriptdroid.model.script.ScriptFile; -import com.stardust.scriptdroid.model.script.Scripts; +import org.autojs.autojs.model.script.PathChecker; +import org.autojs.autojs.external.ScriptIntents; +import org.autojs.autojs.model.script.ScriptFile; +import org.autojs.autojs.model.script.Scripts; /** * Created by Stardust on 2017/1/23. diff --git a/app/src/main/java/com/stardust/scriptdroid/external/shortcut/ShortcutManager.java b/app/src/main/java/org/autojs/autojs/external/shortcut/ShortcutManager.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/external/shortcut/ShortcutManager.java rename to app/src/main/java/org/autojs/autojs/external/shortcut/ShortcutManager.java index be79980f2..1666231e4 100644 --- a/app/src/main/java/com/stardust/scriptdroid/external/shortcut/ShortcutManager.java +++ b/app/src/main/java/org/autojs/autojs/external/shortcut/ShortcutManager.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.external.shortcut; +package org.autojs.autojs.external.shortcut; import android.content.Context; import android.content.Intent; diff --git a/app/src/main/java/com/stardust/scriptdroid/external/tasker/FireSettingReceiver.java b/app/src/main/java/org/autojs/autojs/external/tasker/FireSettingReceiver.java similarity index 84% rename from app/src/main/java/com/stardust/scriptdroid/external/tasker/FireSettingReceiver.java rename to app/src/main/java/org/autojs/autojs/external/tasker/FireSettingReceiver.java index 53744734c..51377e2ba 100644 --- a/app/src/main/java/com/stardust/scriptdroid/external/tasker/FireSettingReceiver.java +++ b/app/src/main/java/org/autojs/autojs/external/tasker/FireSettingReceiver.java @@ -1,12 +1,12 @@ -package com.stardust.scriptdroid.external.tasker; +package org.autojs.autojs.external.tasker; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; -import com.stardust.scriptdroid.external.ScriptIntents; -import com.stardust.scriptdroid.external.open.RunIntentActivity; +import org.autojs.autojs.external.ScriptIntents; +import org.autojs.autojs.external.open.RunIntentActivity; import com.twofortyfouram.locale.sdk.client.receiver.AbstractPluginSettingReceiver; /** diff --git a/app/src/main/java/com/stardust/scriptdroid/external/tasker/TaskPrefEditActivity.java b/app/src/main/java/org/autojs/autojs/external/tasker/TaskPrefEditActivity.java similarity index 89% rename from app/src/main/java/com/stardust/scriptdroid/external/tasker/TaskPrefEditActivity.java rename to app/src/main/java/org/autojs/autojs/external/tasker/TaskPrefEditActivity.java index 71d146de5..b36797879 100644 --- a/app/src/main/java/com/stardust/scriptdroid/external/tasker/TaskPrefEditActivity.java +++ b/app/src/main/java/org/autojs/autojs/external/tasker/TaskPrefEditActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.external.tasker; +package org.autojs.autojs.external.tasker; import android.content.Intent; import android.os.Bundle; @@ -8,19 +8,19 @@ import android.view.Menu; import android.view.MenuItem; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.external.ScriptIntents; -import com.stardust.scriptdroid.model.script.ScriptFile; -import com.stardust.scriptdroid.storage.file.StorageFileProvider; -import com.stardust.scriptdroid.ui.BaseActivity; -import com.stardust.scriptdroid.ui.main.scripts.ScriptListView; +import org.autojs.autojs.R; +import org.autojs.autojs.external.ScriptIntents; +import org.autojs.autojs.model.script.ScriptFile; +import org.autojs.autojs.storage.file.StorageFileProvider; +import org.autojs.autojs.ui.BaseActivity; +import org.autojs.autojs.ui.main.scripts.ScriptListView; import com.twofortyfouram.locale.sdk.client.ui.activity.AbstractAppCompatPluginActivity; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.Click; import org.androidannotations.annotations.EActivity; -import static com.stardust.scriptdroid.ui.edit.EditorView.EXTRA_CONTENT; +import static org.autojs.autojs.ui.edit.EditorView.EXTRA_CONTENT; /** diff --git a/app/src/main/java/com/stardust/scriptdroid/external/tasker/TaskerScriptEditActivity.java b/app/src/main/java/org/autojs/autojs/external/tasker/TaskerScriptEditActivity.java similarity index 74% rename from app/src/main/java/com/stardust/scriptdroid/external/tasker/TaskerScriptEditActivity.java rename to app/src/main/java/org/autojs/autojs/external/tasker/TaskerScriptEditActivity.java index e7beda913..d74ebdd4c 100644 --- a/app/src/main/java/com/stardust/scriptdroid/external/tasker/TaskerScriptEditActivity.java +++ b/app/src/main/java/org/autojs/autojs/external/tasker/TaskerScriptEditActivity.java @@ -1,11 +1,11 @@ -package com.stardust.scriptdroid.external.tasker; +package org.autojs.autojs.external.tasker; import android.app.Activity; import android.content.Intent; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.BaseActivity; -import com.stardust.scriptdroid.ui.edit.EditorView; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.BaseActivity; +import org.autojs.autojs.ui.edit.EditorView; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.EActivity; @@ -14,10 +14,10 @@ import io.reactivex.annotations.NonNull; import io.reactivex.functions.Consumer; -import static com.stardust.scriptdroid.ui.edit.EditorView.EXTRA_CONTENT; -import static com.stardust.scriptdroid.ui.edit.EditorView.EXTRA_NAME; -import static com.stardust.scriptdroid.ui.edit.EditorView.EXTRA_RUN_ENABLED; -import static com.stardust.scriptdroid.ui.edit.EditorView.EXTRA_SAVE_ENABLED; +import static org.autojs.autojs.ui.edit.EditorView.EXTRA_CONTENT; +import static org.autojs.autojs.ui.edit.EditorView.EXTRA_NAME; +import static org.autojs.autojs.ui.edit.EditorView.EXTRA_RUN_ENABLED; +import static org.autojs.autojs.ui.edit.EditorView.EXTRA_SAVE_ENABLED; /** * Created by Stardust on 2017/4/5. diff --git a/app/src/main/java/com/stardust/scriptdroid/external/widget/ScriptWidget.java b/app/src/main/java/org/autojs/autojs/external/widget/ScriptWidget.java similarity index 91% rename from app/src/main/java/com/stardust/scriptdroid/external/widget/ScriptWidget.java rename to app/src/main/java/org/autojs/autojs/external/widget/ScriptWidget.java index f33adc2c9..0d68899c4 100644 --- a/app/src/main/java/com/stardust/scriptdroid/external/widget/ScriptWidget.java +++ b/app/src/main/java/org/autojs/autojs/external/widget/ScriptWidget.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.external.widget; +package org.autojs.autojs.external.widget; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; @@ -10,9 +10,9 @@ import android.widget.RemoteViews; import com.stardust.pio.PFiles; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.external.ScriptIntents; -import com.stardust.scriptdroid.external.open.RunIntentActivity; +import org.autojs.autojs.R; +import org.autojs.autojs.external.ScriptIntents; +import org.autojs.autojs.external.open.RunIntentActivity; import java.util.HashSet; import java.util.Set; diff --git a/app/src/main/java/com/stardust/scriptdroid/external/widget/ScriptWidgetSettingsActivity.java b/app/src/main/java/org/autojs/autojs/external/widget/ScriptWidgetSettingsActivity.java similarity index 88% rename from app/src/main/java/com/stardust/scriptdroid/external/widget/ScriptWidgetSettingsActivity.java rename to app/src/main/java/org/autojs/autojs/external/widget/ScriptWidgetSettingsActivity.java index c9b7fa15f..e72d5360c 100644 --- a/app/src/main/java/com/stardust/scriptdroid/external/widget/ScriptWidgetSettingsActivity.java +++ b/app/src/main/java/org/autojs/autojs/external/widget/ScriptWidgetSettingsActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.external.widget; +package org.autojs.autojs.external.widget; import android.appwidget.AppWidgetManager; import android.content.Intent; @@ -7,11 +7,11 @@ import android.view.Menu; import android.view.MenuItem; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.model.script.ScriptFile; -import com.stardust.scriptdroid.storage.file.StorageFileProvider; -import com.stardust.scriptdroid.ui.BaseActivity; -import com.stardust.scriptdroid.ui.main.scripts.ScriptListView; +import org.autojs.autojs.R; +import org.autojs.autojs.model.script.ScriptFile; +import org.autojs.autojs.storage.file.StorageFileProvider; +import org.autojs.autojs.ui.BaseActivity; +import org.autojs.autojs.ui.main.scripts.ScriptListView; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.EActivity; diff --git a/app/src/main/java/com/stardust/scriptdroid/external/widget/ScriptWidgets.java b/app/src/main/java/org/autojs/autojs/external/widget/ScriptWidgets.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/external/widget/ScriptWidgets.java rename to app/src/main/java/org/autojs/autojs/external/widget/ScriptWidgets.java index ffa34c938..c6b54d2d6 100644 --- a/app/src/main/java/com/stardust/scriptdroid/external/widget/ScriptWidgets.java +++ b/app/src/main/java/org/autojs/autojs/external/widget/ScriptWidgets.java @@ -1,11 +1,11 @@ -package com.stardust.scriptdroid.external.widget; +package org.autojs.autojs.external.widget; import android.content.Context; import android.content.SharedPreferences; import android.util.Log; import com.stardust.app.GlobalAppContext; -import com.stardust.scriptdroid.App; +import org.autojs.autojs.App; import java.util.HashSet; import java.util.LinkedList; diff --git a/app/src/main/java/com/stardust/scriptdroid/model/autocomplete/AnyWordsCompletion.java b/app/src/main/java/org/autojs/autojs/model/autocomplete/AnyWordsCompletion.java similarity index 89% rename from app/src/main/java/com/stardust/scriptdroid/model/autocomplete/AnyWordsCompletion.java rename to app/src/main/java/org/autojs/autojs/model/autocomplete/AnyWordsCompletion.java index a6dce3ff5..5a1300a97 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/autocomplete/AnyWordsCompletion.java +++ b/app/src/main/java/org/autojs/autojs/model/autocomplete/AnyWordsCompletion.java @@ -1,9 +1,9 @@ -package com.stardust.scriptdroid.model.autocomplete; +package org.autojs.autojs.model.autocomplete; import android.text.Editable; -import com.stardust.scriptdroid.model.indices.Property; -import com.stardust.scriptdroid.ui.widget.SimpleTextWatcher; +import org.autojs.autojs.model.indices.Property; +import org.autojs.autojs.ui.widget.SimpleTextWatcher; import java.util.List; import java.util.concurrent.ExecutorService; diff --git a/app/src/main/java/com/stardust/scriptdroid/model/autocomplete/AutoCompletion.java b/app/src/main/java/org/autojs/autojs/model/autocomplete/AutoCompletion.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/model/autocomplete/AutoCompletion.java rename to app/src/main/java/org/autojs/autojs/model/autocomplete/AutoCompletion.java index d8d60be6c..c21c5f2b4 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/autocomplete/AutoCompletion.java +++ b/app/src/main/java/org/autojs/autojs/model/autocomplete/AutoCompletion.java @@ -1,12 +1,12 @@ -package com.stardust.scriptdroid.model.autocomplete; +package org.autojs.autojs.model.autocomplete; import android.content.Context; import android.widget.EditText; -import com.stardust.scriptdroid.model.indices.Module; -import com.stardust.scriptdroid.model.indices.Modules; -import com.stardust.scriptdroid.model.indices.Property; -import com.stardust.scriptdroid.ui.widget.SimpleTextWatcher; +import org.autojs.autojs.model.indices.Module; +import org.autojs.autojs.model.indices.Modules; +import org.autojs.autojs.model.indices.Property; +import org.autojs.autojs.ui.widget.SimpleTextWatcher; import java.util.ArrayList; import java.util.Collections; diff --git a/app/src/main/java/com/stardust/scriptdroid/model/autocomplete/CodeCompletion.java b/app/src/main/java/org/autojs/autojs/model/autocomplete/CodeCompletion.java similarity index 94% rename from app/src/main/java/com/stardust/scriptdroid/model/autocomplete/CodeCompletion.java rename to app/src/main/java/org/autojs/autojs/model/autocomplete/CodeCompletion.java index 2ca6416ab..2970043c0 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/autocomplete/CodeCompletion.java +++ b/app/src/main/java/org/autojs/autojs/model/autocomplete/CodeCompletion.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.model.autocomplete; +package org.autojs.autojs.model.autocomplete; /** * Created by Stardust on 2018/2/3. diff --git a/app/src/main/java/com/stardust/scriptdroid/model/autocomplete/CodeCompletions.java b/app/src/main/java/org/autojs/autojs/model/autocomplete/CodeCompletions.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/model/autocomplete/CodeCompletions.java rename to app/src/main/java/org/autojs/autojs/model/autocomplete/CodeCompletions.java index dc613c83d..6a50eb4b0 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/autocomplete/CodeCompletions.java +++ b/app/src/main/java/org/autojs/autojs/model/autocomplete/CodeCompletions.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.model.autocomplete; +package org.autojs.autojs.model.autocomplete; import java.util.ArrayList; import java.util.List; diff --git a/app/src/main/java/com/stardust/scriptdroid/model/autocomplete/DictionaryTree.java b/app/src/main/java/org/autojs/autojs/model/autocomplete/DictionaryTree.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/model/autocomplete/DictionaryTree.java rename to app/src/main/java/org/autojs/autojs/model/autocomplete/DictionaryTree.java index eb2d0e23f..ce7accdb6 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/autocomplete/DictionaryTree.java +++ b/app/src/main/java/org/autojs/autojs/model/autocomplete/DictionaryTree.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.model.autocomplete; +package org.autojs.autojs.model.autocomplete; import android.support.annotation.NonNull; diff --git a/app/src/main/java/com/stardust/scriptdroid/model/autocomplete/Symbols.java b/app/src/main/java/org/autojs/autojs/model/autocomplete/Symbols.java similarity index 88% rename from app/src/main/java/com/stardust/scriptdroid/model/autocomplete/Symbols.java rename to app/src/main/java/org/autojs/autojs/model/autocomplete/Symbols.java index 87feb1241..244de4fd9 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/autocomplete/Symbols.java +++ b/app/src/main/java/org/autojs/autojs/model/autocomplete/Symbols.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.model.autocomplete; +package org.autojs.autojs.model.autocomplete; import java.util.Arrays; diff --git a/app/src/main/java/com/stardust/scriptdroid/model/editor/EditorColors.java b/app/src/main/java/org/autojs/autojs/model/editor/EditorColors.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/model/editor/EditorColors.java rename to app/src/main/java/org/autojs/autojs/model/editor/EditorColors.java index 10932a052..3579b4d51 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/editor/EditorColors.java +++ b/app/src/main/java/org/autojs/autojs/model/editor/EditorColors.java @@ -1,5 +1,5 @@ -package com.stardust.scriptdroid.model.editor; +package org.autojs.autojs.model.editor; import com.google.gson.annotations.SerializedName; diff --git a/app/src/main/java/com/stardust/scriptdroid/model/editor/EditorTheme.java b/app/src/main/java/org/autojs/autojs/model/editor/EditorTheme.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/model/editor/EditorTheme.java rename to app/src/main/java/org/autojs/autojs/model/editor/EditorTheme.java index 7c7c0c24e..5d209633e 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/editor/EditorTheme.java +++ b/app/src/main/java/org/autojs/autojs/model/editor/EditorTheme.java @@ -1,5 +1,5 @@ -package com.stardust.scriptdroid.model.editor; +package org.autojs.autojs.model.editor; import com.google.gson.Gson; import com.google.gson.GsonBuilder; diff --git a/app/src/main/java/com/stardust/scriptdroid/model/editor/TokenColor.java b/app/src/main/java/org/autojs/autojs/model/editor/TokenColor.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/model/editor/TokenColor.java rename to app/src/main/java/org/autojs/autojs/model/editor/TokenColor.java index 4b8ce50a3..615fd253d 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/editor/TokenColor.java +++ b/app/src/main/java/org/autojs/autojs/model/editor/TokenColor.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.model.editor; +package org.autojs.autojs.model.editor; import com.google.gson.annotations.SerializedName; diff --git a/app/src/main/java/com/stardust/scriptdroid/model/editor/TokenColorDeserializer.java b/app/src/main/java/org/autojs/autojs/model/editor/TokenColorDeserializer.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/model/editor/TokenColorDeserializer.java rename to app/src/main/java/org/autojs/autojs/model/editor/TokenColorDeserializer.java index 501bc2c06..18d80b2a9 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/editor/TokenColorDeserializer.java +++ b/app/src/main/java/org/autojs/autojs/model/editor/TokenColorDeserializer.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.model.editor; +package org.autojs.autojs.model.editor; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; diff --git a/app/src/main/java/com/stardust/scriptdroid/model/editor/TokenColorSettings.java b/app/src/main/java/org/autojs/autojs/model/editor/TokenColorSettings.java similarity index 93% rename from app/src/main/java/com/stardust/scriptdroid/model/editor/TokenColorSettings.java rename to app/src/main/java/org/autojs/autojs/model/editor/TokenColorSettings.java index 47d9f81a6..9b50333b8 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/editor/TokenColorSettings.java +++ b/app/src/main/java/org/autojs/autojs/model/editor/TokenColorSettings.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.model.editor; +package org.autojs.autojs.model.editor; import com.google.gson.annotations.SerializedName; diff --git a/app/src/main/java/com/stardust/scriptdroid/model/indices/Module.java b/app/src/main/java/org/autojs/autojs/model/indices/Module.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/model/indices/Module.java rename to app/src/main/java/org/autojs/autojs/model/indices/Module.java index 773d613a5..7b69dcf4b 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/indices/Module.java +++ b/app/src/main/java/org/autojs/autojs/model/indices/Module.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.model.indices; +package org.autojs.autojs.model.indices; import com.google.gson.annotations.SerializedName; diff --git a/app/src/main/java/com/stardust/scriptdroid/model/indices/Modules.java b/app/src/main/java/org/autojs/autojs/model/indices/Modules.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/model/indices/Modules.java rename to app/src/main/java/org/autojs/autojs/model/indices/Modules.java index a809353f6..f1393274f 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/indices/Modules.java +++ b/app/src/main/java/org/autojs/autojs/model/indices/Modules.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.model.indices; +package org.autojs.autojs.model.indices; import android.content.Context; diff --git a/app/src/main/java/com/stardust/scriptdroid/model/indices/Property.java b/app/src/main/java/org/autojs/autojs/model/indices/Property.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/model/indices/Property.java rename to app/src/main/java/org/autojs/autojs/model/indices/Property.java index 2e78a596e..aef7c2cc2 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/indices/Property.java +++ b/app/src/main/java/org/autojs/autojs/model/indices/Property.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.model.indices; +package org.autojs.autojs.model.indices; import com.google.gson.annotations.SerializedName; diff --git a/app/src/main/java/com/stardust/scriptdroid/model/sample/SampleFile.java b/app/src/main/java/org/autojs/autojs/model/sample/SampleFile.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/model/sample/SampleFile.java rename to app/src/main/java/org/autojs/autojs/model/sample/SampleFile.java index dbb3c9f11..083dd646d 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/sample/SampleFile.java +++ b/app/src/main/java/org/autojs/autojs/model/sample/SampleFile.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.model.sample; +package org.autojs.autojs.model.sample; import android.content.res.AssetManager; import android.support.annotation.NonNull; @@ -8,7 +8,7 @@ import com.stardust.autojs.script.ScriptSource; import com.stardust.pio.PFiles; import com.stardust.pio.UncheckedIOException; -import com.stardust.scriptdroid.model.script.ScriptFile; +import org.autojs.autojs.model.script.ScriptFile; import java.io.File; import java.io.IOException; diff --git a/app/src/main/java/com/stardust/scriptdroid/model/script/PathChecker.java b/app/src/main/java/org/autojs/autojs/model/script/PathChecker.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/model/script/PathChecker.java rename to app/src/main/java/org/autojs/autojs/model/script/PathChecker.java index e95956cdc..401b6be53 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/script/PathChecker.java +++ b/app/src/main/java/org/autojs/autojs/model/script/PathChecker.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.model.script; +package org.autojs.autojs.model.script; import android.app.Activity; import android.content.Context; diff --git a/app/src/main/java/com/stardust/scriptdroid/model/script/ScriptFile.java b/app/src/main/java/org/autojs/autojs/model/script/ScriptFile.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/model/script/ScriptFile.java rename to app/src/main/java/org/autojs/autojs/model/script/ScriptFile.java index 18519d1a2..60062f454 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/script/ScriptFile.java +++ b/app/src/main/java/org/autojs/autojs/model/script/ScriptFile.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.model.script; +package org.autojs.autojs.model.script; import android.os.Environment; import android.support.annotation.Nullable; diff --git a/app/src/main/java/com/stardust/scriptdroid/model/script/Scripts.java b/app/src/main/java/org/autojs/autojs/model/script/Scripts.java similarity index 91% rename from app/src/main/java/com/stardust/scriptdroid/model/script/Scripts.java rename to app/src/main/java/org/autojs/autojs/model/script/Scripts.java index 45a286134..c0b3efb53 100644 --- a/app/src/main/java/com/stardust/scriptdroid/model/script/Scripts.java +++ b/app/src/main/java/org/autojs/autojs/model/script/Scripts.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.model.script; +package org.autojs.autojs.model.script; import android.content.Intent; import android.net.Uri; @@ -12,14 +12,14 @@ import com.stardust.autojs.runtime.exception.ScriptInterruptedException; import com.stardust.autojs.script.JavaScriptFileSource; import com.stardust.autojs.script.ScriptSource; -import com.stardust.scriptdroid.App; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.autojs.AutoJs; -import com.stardust.scriptdroid.external.ScriptIntents; -import com.stardust.scriptdroid.external.shortcut.Shortcut; -import com.stardust.scriptdroid.external.shortcut.ShortcutActivity; -import com.stardust.scriptdroid.storage.file.StorageFileProvider; -import com.stardust.scriptdroid.ui.edit.EditActivity; +import org.autojs.autojs.App; +import org.autojs.autojs.R; +import org.autojs.autojs.autojs.AutoJs; +import org.autojs.autojs.external.ScriptIntents; +import org.autojs.autojs.external.shortcut.Shortcut; +import org.autojs.autojs.external.shortcut.ShortcutActivity; +import org.autojs.autojs.storage.file.StorageFileProvider; +import org.autojs.autojs.ui.edit.EditActivity; import org.mozilla.javascript.RhinoException; diff --git a/app/src/main/java/com/stardust/scriptdroid/network/Glides.java b/app/src/main/java/org/autojs/autojs/network/Glides.java similarity index 83% rename from app/src/main/java/com/stardust/scriptdroid/network/Glides.java rename to app/src/main/java/org/autojs/autojs/network/Glides.java index 21365e359..f7ad3adec 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/Glides.java +++ b/app/src/main/java/org/autojs/autojs/network/Glides.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.network; +package org.autojs.autojs.network; import com.bumptech.glide.annotation.GlideModule; import com.bumptech.glide.module.AppGlideModule; diff --git a/app/src/main/java/com/stardust/scriptdroid/network/NodeBB.java b/app/src/main/java/org/autojs/autojs/network/NodeBB.java similarity index 94% rename from app/src/main/java/com/stardust/scriptdroid/network/NodeBB.java rename to app/src/main/java/org/autojs/autojs/network/NodeBB.java index 7db369729..577afa0da 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/NodeBB.java +++ b/app/src/main/java/org/autojs/autojs/network/NodeBB.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.network; +package org.autojs.autojs.network; import android.content.Context; import android.util.Log; @@ -6,9 +6,9 @@ import com.google.gson.GsonBuilder; import com.jakewharton.retrofit2.adapter.rxjava2.HttpException; import com.jakewharton.retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.network.api.ConfigApi; -import com.stardust.scriptdroid.network.util.WebkitCookieManagerProxy; +import org.autojs.autojs.R; +import org.autojs.autojs.network.api.ConfigApi; +import org.autojs.autojs.network.util.WebkitCookieManagerProxy; import java.io.IOException; import java.util.Collections; diff --git a/app/src/main/java/com/stardust/scriptdroid/network/UserService.java b/app/src/main/java/org/autojs/autojs/network/UserService.java similarity index 92% rename from app/src/main/java/com/stardust/scriptdroid/network/UserService.java rename to app/src/main/java/org/autojs/autojs/network/UserService.java index 2ffeb0b6f..ac6a96c77 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/UserService.java +++ b/app/src/main/java/org/autojs/autojs/network/UserService.java @@ -1,10 +1,10 @@ -package com.stardust.scriptdroid.network; +package org.autojs.autojs.network; import com.jakewharton.retrofit2.adapter.rxjava2.HttpException; -import com.stardust.scriptdroid.network.api.UserApi; -import com.stardust.scriptdroid.network.entity.notification.Notification; -import com.stardust.scriptdroid.network.entity.notification.NotificationResponse; -import com.stardust.scriptdroid.network.entity.user.User; +import org.autojs.autojs.network.api.UserApi; +import org.autojs.autojs.network.entity.notification.Notification; +import org.autojs.autojs.network.entity.notification.NotificationResponse; +import org.autojs.autojs.network.entity.user.User; import com.stardust.util.Objects; import org.greenrobot.eventbus.EventBus; diff --git a/app/src/main/java/com/stardust/scriptdroid/network/VersionService.java b/app/src/main/java/org/autojs/autojs/network/VersionService.java similarity index 91% rename from app/src/main/java/com/stardust/scriptdroid/network/VersionService.java rename to app/src/main/java/org/autojs/autojs/network/VersionService.java index b04033b90..dbe4fee13 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/VersionService.java +++ b/app/src/main/java/org/autojs/autojs/network/VersionService.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.network; +package org.autojs.autojs.network; import android.content.Context; import android.content.SharedPreferences; @@ -7,13 +7,13 @@ import com.google.gson.GsonBuilder; import com.jakewharton.retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory; -import com.stardust.scriptdroid.App; -import com.stardust.scriptdroid.BuildConfig; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.network.api.UpdateCheckApi; -import com.stardust.scriptdroid.network.entity.VersionInfo; -import com.stardust.scriptdroid.tool.SimpleObserver; -import com.stardust.scriptdroid.ui.update.UpdateInfoDialogBuilder; +import org.autojs.autojs.App; +import org.autojs.autojs.BuildConfig; +import org.autojs.autojs.R; +import org.autojs.autojs.network.api.UpdateCheckApi; +import org.autojs.autojs.network.entity.VersionInfo; +import org.autojs.autojs.tool.SimpleObserver; +import org.autojs.autojs.ui.update.UpdateInfoDialogBuilder; import com.stardust.util.NetworkUtils; import io.reactivex.Observable; diff --git a/app/src/main/java/com/stardust/scriptdroid/network/api/ConfigApi.java b/app/src/main/java/org/autojs/autojs/network/api/ConfigApi.java similarity index 65% rename from app/src/main/java/com/stardust/scriptdroid/network/api/ConfigApi.java rename to app/src/main/java/org/autojs/autojs/network/api/ConfigApi.java index 1dbd77527..74b549641 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/api/ConfigApi.java +++ b/app/src/main/java/org/autojs/autojs/network/api/ConfigApi.java @@ -1,6 +1,6 @@ -package com.stardust.scriptdroid.network.api; +package org.autojs.autojs.network.api; -import com.stardust.scriptdroid.network.entity.config.Config; +import org.autojs.autojs.network.entity.config.Config; import io.reactivex.Observable; import retrofit2.http.GET; diff --git a/app/src/main/java/com/stardust/scriptdroid/network/api/DownloadApi.java b/app/src/main/java/org/autojs/autojs/network/api/DownloadApi.java similarity index 87% rename from app/src/main/java/com/stardust/scriptdroid/network/api/DownloadApi.java rename to app/src/main/java/org/autojs/autojs/network/api/DownloadApi.java index 997fe109e..6376ed57d 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/api/DownloadApi.java +++ b/app/src/main/java/org/autojs/autojs/network/api/DownloadApi.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.network.api; +package org.autojs.autojs.network.api; import io.reactivex.Observable; import okhttp3.ResponseBody; diff --git a/app/src/main/java/com/stardust/scriptdroid/network/api/UpdateCheckApi.java b/app/src/main/java/org/autojs/autojs/network/api/UpdateCheckApi.java similarity index 68% rename from app/src/main/java/com/stardust/scriptdroid/network/api/UpdateCheckApi.java rename to app/src/main/java/org/autojs/autojs/network/api/UpdateCheckApi.java index 31be04cb4..1b41c199f 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/api/UpdateCheckApi.java +++ b/app/src/main/java/org/autojs/autojs/network/api/UpdateCheckApi.java @@ -1,6 +1,6 @@ -package com.stardust.scriptdroid.network.api; +package org.autojs.autojs.network.api; -import com.stardust.scriptdroid.network.entity.VersionInfo; +import org.autojs.autojs.network.entity.VersionInfo; import io.reactivex.Observable; import retrofit2.http.GET; diff --git a/app/src/main/java/com/stardust/scriptdroid/network/api/UserApi.java b/app/src/main/java/org/autojs/autojs/network/api/UserApi.java similarity index 85% rename from app/src/main/java/com/stardust/scriptdroid/network/api/UserApi.java rename to app/src/main/java/org/autojs/autojs/network/api/UserApi.java index ba43bee40..6589be967 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/api/UserApi.java +++ b/app/src/main/java/org/autojs/autojs/network/api/UserApi.java @@ -1,7 +1,7 @@ -package com.stardust.scriptdroid.network.api; +package org.autojs.autojs.network.api; -import com.stardust.scriptdroid.network.entity.notification.NotificationResponse; -import com.stardust.scriptdroid.network.entity.user.User; +import org.autojs.autojs.network.entity.notification.NotificationResponse; +import org.autojs.autojs.network.entity.user.User; import java.util.Map; diff --git a/app/src/main/java/com/stardust/scriptdroid/network/download/DownloadFailedException.java b/app/src/main/java/org/autojs/autojs/network/download/DownloadFailedException.java similarity index 90% rename from app/src/main/java/com/stardust/scriptdroid/network/download/DownloadFailedException.java rename to app/src/main/java/org/autojs/autojs/network/download/DownloadFailedException.java index ade36dda5..a32db3890 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/download/DownloadFailedException.java +++ b/app/src/main/java/org/autojs/autojs/network/download/DownloadFailedException.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.network.download; +package org.autojs.autojs.network.download; /** * Created by Stardust on 2017/10/20. diff --git a/app/src/main/java/com/stardust/scriptdroid/network/download/DownloadManager.java b/app/src/main/java/org/autojs/autojs/network/download/DownloadManager.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/network/download/DownloadManager.java rename to app/src/main/java/org/autojs/autojs/network/download/DownloadManager.java index 7829aac25..f3d00c244 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/download/DownloadManager.java +++ b/app/src/main/java/org/autojs/autojs/network/download/DownloadManager.java @@ -1,10 +1,10 @@ -package com.stardust.scriptdroid.network.download; +package org.autojs.autojs.network.download; import com.jakewharton.retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory; import com.stardust.concurrent.VolatileBox; import com.stardust.pio.PFiles; -import com.stardust.scriptdroid.network.NodeBB; -import com.stardust.scriptdroid.network.api.DownloadApi; +import org.autojs.autojs.network.NodeBB; +import org.autojs.autojs.network.api.DownloadApi; import java.io.FileOutputStream; import java.io.IOException; diff --git a/app/src/main/java/com/stardust/scriptdroid/network/entity/VersionInfo.java b/app/src/main/java/org/autojs/autojs/network/entity/VersionInfo.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/network/entity/VersionInfo.java rename to app/src/main/java/org/autojs/autojs/network/entity/VersionInfo.java index 607373116..ae023b01c 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/entity/VersionInfo.java +++ b/app/src/main/java/org/autojs/autojs/network/entity/VersionInfo.java @@ -1,9 +1,9 @@ -package com.stardust.scriptdroid.network.entity; +package org.autojs.autojs.network.entity; import android.text.TextUtils; -import com.stardust.scriptdroid.BuildConfig; +import org.autojs.autojs.BuildConfig; import org.json.JSONObject; diff --git a/app/src/main/java/com/stardust/scriptdroid/network/entity/config/Config.java b/app/src/main/java/org/autojs/autojs/network/entity/config/Config.java similarity index 99% rename from app/src/main/java/com/stardust/scriptdroid/network/entity/config/Config.java rename to app/src/main/java/org/autojs/autojs/network/entity/config/Config.java index 13c754164..5b3d09c33 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/entity/config/Config.java +++ b/app/src/main/java/org/autojs/autojs/network/entity/config/Config.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.network.entity.config; +package org.autojs.autojs.network.entity.config; import java.util.List; import com.google.gson.annotations.SerializedName; diff --git a/app/src/main/java/com/stardust/scriptdroid/network/entity/config/Cookies.java b/app/src/main/java/org/autojs/autojs/network/entity/config/Cookies.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/network/entity/config/Cookies.java rename to app/src/main/java/org/autojs/autojs/network/entity/config/Cookies.java index da526c225..09a070c10 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/entity/config/Cookies.java +++ b/app/src/main/java/org/autojs/autojs/network/entity/config/Cookies.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.network.entity.config; +package org.autojs.autojs.network.entity.config; import com.google.gson.annotations.SerializedName; diff --git a/app/src/main/java/com/stardust/scriptdroid/network/entity/config/Markdown.java b/app/src/main/java/org/autojs/autojs/network/entity/config/Markdown.java similarity index 91% rename from app/src/main/java/com/stardust/scriptdroid/network/entity/config/Markdown.java rename to app/src/main/java/org/autojs/autojs/network/entity/config/Markdown.java index be019be9e..934698c20 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/entity/config/Markdown.java +++ b/app/src/main/java/org/autojs/autojs/network/entity/config/Markdown.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.network.entity.config; +package org.autojs.autojs.network.entity.config; import com.google.gson.annotations.SerializedName; diff --git a/app/src/main/java/com/stardust/scriptdroid/network/entity/notification/Notification.java b/app/src/main/java/org/autojs/autojs/network/entity/notification/Notification.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/network/entity/notification/Notification.java rename to app/src/main/java/org/autojs/autojs/network/entity/notification/Notification.java index 5d896d32d..627c53a15 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/entity/notification/Notification.java +++ b/app/src/main/java/org/autojs/autojs/network/entity/notification/Notification.java @@ -1,6 +1,6 @@ -package com.stardust.scriptdroid.network.entity.notification; +package org.autojs.autojs.network.entity.notification; -import com.stardust.scriptdroid.network.entity.user.User; +import org.autojs.autojs.network.entity.user.User; public class Notification { diff --git a/app/src/main/java/com/stardust/scriptdroid/network/entity/notification/NotificationResponse.java b/app/src/main/java/org/autojs/autojs/network/entity/notification/NotificationResponse.java similarity index 89% rename from app/src/main/java/com/stardust/scriptdroid/network/entity/notification/NotificationResponse.java rename to app/src/main/java/org/autojs/autojs/network/entity/notification/NotificationResponse.java index e6463918d..12b4db5fa 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/entity/notification/NotificationResponse.java +++ b/app/src/main/java/org/autojs/autojs/network/entity/notification/NotificationResponse.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.network.entity.notification; +package org.autojs.autojs.network.entity.notification; import java.util.List; diff --git a/app/src/main/java/com/stardust/scriptdroid/network/entity/user/GroupsItem.java b/app/src/main/java/org/autojs/autojs/network/entity/user/GroupsItem.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/network/entity/user/GroupsItem.java rename to app/src/main/java/org/autojs/autojs/network/entity/user/GroupsItem.java index 85a7660d7..b649ddbfa 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/entity/user/GroupsItem.java +++ b/app/src/main/java/org/autojs/autojs/network/entity/user/GroupsItem.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.network.entity.user; +package org.autojs.autojs.network.entity.user; import com.google.gson.annotations.SerializedName; diff --git a/app/src/main/java/com/stardust/scriptdroid/network/entity/user/User.java b/app/src/main/java/org/autojs/autojs/network/entity/user/User.java similarity index 99% rename from app/src/main/java/com/stardust/scriptdroid/network/entity/user/User.java rename to app/src/main/java/org/autojs/autojs/network/entity/user/User.java index c6bb10636..82a0ca59d 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/entity/user/User.java +++ b/app/src/main/java/org/autojs/autojs/network/entity/user/User.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.network.entity.user; +package org.autojs.autojs.network.entity.user; import java.util.List; diff --git a/app/src/main/java/com/stardust/scriptdroid/network/util/WebkitCookieManagerProxy.java b/app/src/main/java/org/autojs/autojs/network/util/WebkitCookieManagerProxy.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/network/util/WebkitCookieManagerProxy.java rename to app/src/main/java/org/autojs/autojs/network/util/WebkitCookieManagerProxy.java index 6a88da167..19c625183 100644 --- a/app/src/main/java/com/stardust/scriptdroid/network/util/WebkitCookieManagerProxy.java +++ b/app/src/main/java/org/autojs/autojs/network/util/WebkitCookieManagerProxy.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.network.util; +package org.autojs.autojs.network.util; import android.util.Log; diff --git a/app/src/main/java/com/stardust/scriptdroid/pluginclient/DevPluginClient.java b/app/src/main/java/org/autojs/autojs/pluginclient/DevPluginClient.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/pluginclient/DevPluginClient.java rename to app/src/main/java/org/autojs/autojs/pluginclient/DevPluginClient.java index 32429fe44..6087b8835 100644 --- a/app/src/main/java/com/stardust/scriptdroid/pluginclient/DevPluginClient.java +++ b/app/src/main/java/org/autojs/autojs/pluginclient/DevPluginClient.java @@ -1,11 +1,11 @@ -package com.stardust.scriptdroid.pluginclient; +package org.autojs.autojs.pluginclient; import android.os.Build; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParser; -import com.stardust.scriptdroid.tool.SimpleObserver; +import org.autojs.autojs.tool.SimpleObserver; import java.io.BufferedReader; import java.io.IOException; diff --git a/app/src/main/java/com/stardust/scriptdroid/pluginclient/DevPluginResponseHandler.java b/app/src/main/java/org/autojs/autojs/pluginclient/DevPluginResponseHandler.java similarity index 92% rename from app/src/main/java/com/stardust/scriptdroid/pluginclient/DevPluginResponseHandler.java rename to app/src/main/java/org/autojs/autojs/pluginclient/DevPluginResponseHandler.java index 890d97474..b2e9db62c 100644 --- a/app/src/main/java/com/stardust/scriptdroid/pluginclient/DevPluginResponseHandler.java +++ b/app/src/main/java/org/autojs/autojs/pluginclient/DevPluginResponseHandler.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.pluginclient; +package org.autojs.autojs.pluginclient; import android.text.TextUtils; @@ -9,11 +9,11 @@ import com.stardust.autojs.execution.ScriptExecution; import com.stardust.autojs.script.StringScriptSource; import com.stardust.pio.PFiles; -import com.stardust.scriptdroid.App; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.autojs.AutoJs; -import com.stardust.scriptdroid.model.script.Scripts; -import com.stardust.scriptdroid.storage.file.StorageFileProvider; +import org.autojs.autojs.App; +import org.autojs.autojs.R; +import org.autojs.autojs.autojs.AutoJs; +import org.autojs.autojs.model.script.Scripts; +import org.autojs.autojs.storage.file.StorageFileProvider; import java.util.HashMap; diff --git a/app/src/main/java/com/stardust/scriptdroid/pluginclient/DevPluginService.java b/app/src/main/java/org/autojs/autojs/pluginclient/DevPluginService.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/pluginclient/DevPluginService.java rename to app/src/main/java/org/autojs/autojs/pluginclient/DevPluginService.java index dadff420a..01a53af3e 100644 --- a/app/src/main/java/com/stardust/scriptdroid/pluginclient/DevPluginService.java +++ b/app/src/main/java/org/autojs/autojs/pluginclient/DevPluginService.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.pluginclient; +package org.autojs.autojs.pluginclient; import com.google.gson.JsonObject; diff --git a/app/src/main/java/com/stardust/scriptdroid/pluginclient/Handler.java b/app/src/main/java/org/autojs/autojs/pluginclient/Handler.java similarity index 76% rename from app/src/main/java/com/stardust/scriptdroid/pluginclient/Handler.java rename to app/src/main/java/org/autojs/autojs/pluginclient/Handler.java index b00615c77..b3543a97c 100644 --- a/app/src/main/java/com/stardust/scriptdroid/pluginclient/Handler.java +++ b/app/src/main/java/org/autojs/autojs/pluginclient/Handler.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.pluginclient; +package org.autojs.autojs.pluginclient; import com.google.gson.JsonObject; diff --git a/app/src/main/java/com/stardust/scriptdroid/pluginclient/Router.java b/app/src/main/java/org/autojs/autojs/pluginclient/Router.java similarity index 93% rename from app/src/main/java/com/stardust/scriptdroid/pluginclient/Router.java rename to app/src/main/java/org/autojs/autojs/pluginclient/Router.java index 57d8ea7e0..644e2b39c 100644 --- a/app/src/main/java/com/stardust/scriptdroid/pluginclient/Router.java +++ b/app/src/main/java/org/autojs/autojs/pluginclient/Router.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.pluginclient; +package org.autojs.autojs.pluginclient; import com.google.gson.JsonObject; diff --git a/app/src/main/java/com/stardust/scriptdroid/storage/database/ModelChange.java b/app/src/main/java/org/autojs/autojs/storage/database/ModelChange.java similarity index 92% rename from app/src/main/java/com/stardust/scriptdroid/storage/database/ModelChange.java rename to app/src/main/java/org/autojs/autojs/storage/database/ModelChange.java index f2d90ceb1..2f8c9ff2b 100644 --- a/app/src/main/java/com/stardust/scriptdroid/storage/database/ModelChange.java +++ b/app/src/main/java/org/autojs/autojs/storage/database/ModelChange.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.storage.database; +package org.autojs.autojs.storage.database; import com.raizlabs.android.dbflow.structure.BaseModel; diff --git a/app/src/main/java/com/stardust/scriptdroid/storage/database/TimedTaskDatabase.java b/app/src/main/java/org/autojs/autojs/storage/database/TimedTaskDatabase.java similarity index 76% rename from app/src/main/java/com/stardust/scriptdroid/storage/database/TimedTaskDatabase.java rename to app/src/main/java/org/autojs/autojs/storage/database/TimedTaskDatabase.java index 101b5fe22..b3798e32a 100644 --- a/app/src/main/java/com/stardust/scriptdroid/storage/database/TimedTaskDatabase.java +++ b/app/src/main/java/org/autojs/autojs/storage/database/TimedTaskDatabase.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.storage.database; +package org.autojs.autojs.storage.database; import com.raizlabs.android.dbflow.annotation.Database; diff --git a/app/src/main/java/com/stardust/scriptdroid/storage/file/SampleFileProvider.java b/app/src/main/java/org/autojs/autojs/storage/file/SampleFileProvider.java similarity index 94% rename from app/src/main/java/com/stardust/scriptdroid/storage/file/SampleFileProvider.java rename to app/src/main/java/org/autojs/autojs/storage/file/SampleFileProvider.java index 614df1eb7..fc0818d9e 100644 --- a/app/src/main/java/com/stardust/scriptdroid/storage/file/SampleFileProvider.java +++ b/app/src/main/java/org/autojs/autojs/storage/file/SampleFileProvider.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.storage.file; +package org.autojs.autojs.storage.file; import android.content.Context; import android.content.res.AssetManager; @@ -6,7 +6,7 @@ import com.stardust.pio.PFile; import com.stardust.pio.PFiles; -import com.stardust.scriptdroid.model.script.ScriptFile; +import org.autojs.autojs.model.script.ScriptFile; import java.io.File; diff --git a/app/src/main/java/com/stardust/scriptdroid/storage/file/StorageFileProvider.java b/app/src/main/java/org/autojs/autojs/storage/file/StorageFileProvider.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/storage/file/StorageFileProvider.java rename to app/src/main/java/org/autojs/autojs/storage/file/StorageFileProvider.java index c8f97798d..27bc00ec7 100644 --- a/app/src/main/java/com/stardust/scriptdroid/storage/file/StorageFileProvider.java +++ b/app/src/main/java/org/autojs/autojs/storage/file/StorageFileProvider.java @@ -1,11 +1,11 @@ -package com.stardust.scriptdroid.storage.file; +package org.autojs.autojs.storage.file; import android.os.Environment; import com.stardust.app.GlobalAppContext; import com.stardust.pio.PFile; -import com.stardust.scriptdroid.App; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.App; +import org.autojs.autojs.R; import com.stardust.util.LimitedHashMap; import org.greenrobot.eventbus.EventBus; diff --git a/app/src/main/java/com/stardust/scriptdroid/storage/file/TmpScriptFiles.java b/app/src/main/java/org/autojs/autojs/storage/file/TmpScriptFiles.java similarity index 94% rename from app/src/main/java/com/stardust/scriptdroid/storage/file/TmpScriptFiles.java rename to app/src/main/java/org/autojs/autojs/storage/file/TmpScriptFiles.java index 2f84c192c..b5d433e9c 100644 --- a/app/src/main/java/com/stardust/scriptdroid/storage/file/TmpScriptFiles.java +++ b/app/src/main/java/org/autojs/autojs/storage/file/TmpScriptFiles.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.storage.file; +package org.autojs.autojs.storage.file; import android.content.Context; diff --git a/app/src/main/java/com/stardust/theme/ThemeColorManagerCompat.java b/app/src/main/java/org/autojs/autojs/theme/ThemeColorManagerCompat.java similarity index 75% rename from app/src/main/java/com/stardust/theme/ThemeColorManagerCompat.java rename to app/src/main/java/org/autojs/autojs/theme/ThemeColorManagerCompat.java index f53726a0f..23c2bdee0 100644 --- a/app/src/main/java/com/stardust/theme/ThemeColorManagerCompat.java +++ b/app/src/main/java/org/autojs/autojs/theme/ThemeColorManagerCompat.java @@ -1,8 +1,9 @@ -package com.stardust.theme; +package org.autojs.autojs.theme; import com.stardust.app.GlobalAppContext; -import com.stardust.scriptdroid.*; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.*; +import org.autojs.autojs.R; +import com.stardust.theme.ThemeColorManager; /** * Created by Stardust on 2017/3/12. diff --git a/app/src/main/java/com/stardust/theme/widget/ThemeColorImageViewCompat.java b/app/src/main/java/org/autojs/autojs/theme/widget/ThemeColorImageViewCompat.java similarity index 97% rename from app/src/main/java/com/stardust/theme/widget/ThemeColorImageViewCompat.java rename to app/src/main/java/org/autojs/autojs/theme/widget/ThemeColorImageViewCompat.java index 53469058f..5ef27f1fd 100644 --- a/app/src/main/java/com/stardust/theme/widget/ThemeColorImageViewCompat.java +++ b/app/src/main/java/org/autojs/autojs/theme/widget/ThemeColorImageViewCompat.java @@ -1,4 +1,4 @@ -package com.stardust.theme.widget; +package org.autojs.autojs.theme.widget; import android.content.Context; import android.graphics.PorterDuff; diff --git a/app/src/main/java/com/stardust/theme/widget/ThemeColorSwipeRefreshLayout.java b/app/src/main/java/org/autojs/autojs/theme/widget/ThemeColorSwipeRefreshLayout.java similarity index 95% rename from app/src/main/java/com/stardust/theme/widget/ThemeColorSwipeRefreshLayout.java rename to app/src/main/java/org/autojs/autojs/theme/widget/ThemeColorSwipeRefreshLayout.java index 8cfa87414..7ee92daac 100644 --- a/app/src/main/java/com/stardust/theme/widget/ThemeColorSwipeRefreshLayout.java +++ b/app/src/main/java/org/autojs/autojs/theme/widget/ThemeColorSwipeRefreshLayout.java @@ -1,4 +1,4 @@ -package com.stardust.theme.widget; +package org.autojs.autojs.theme.widget; import android.content.Context; import android.support.v4.widget.SwipeRefreshLayout; diff --git a/app/src/main/java/com/stardust/scriptdroid/timing/TaskReceiver.java b/app/src/main/java/org/autojs/autojs/timing/TaskReceiver.java similarity index 82% rename from app/src/main/java/com/stardust/scriptdroid/timing/TaskReceiver.java rename to app/src/main/java/org/autojs/autojs/timing/TaskReceiver.java index be12c3a94..56cf7f31e 100644 --- a/app/src/main/java/com/stardust/scriptdroid/timing/TaskReceiver.java +++ b/app/src/main/java/org/autojs/autojs/timing/TaskReceiver.java @@ -1,12 +1,12 @@ -package com.stardust.scriptdroid.timing; +package org.autojs.autojs.timing; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; -import com.stardust.scriptdroid.App; -import com.stardust.scriptdroid.external.ScriptIntents; +import org.autojs.autojs.App; +import org.autojs.autojs.external.ScriptIntents; /** * Created by Stardust on 2017/11/27. diff --git a/app/src/main/java/com/stardust/scriptdroid/timing/TimedTask.java b/app/src/main/java/org/autojs/autojs/timing/TimedTask.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/timing/TimedTask.java rename to app/src/main/java/org/autojs/autojs/timing/TimedTask.java index bed9f9c2e..44999aee4 100644 --- a/app/src/main/java/com/stardust/scriptdroid/timing/TimedTask.java +++ b/app/src/main/java/org/autojs/autojs/timing/TimedTask.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.timing; +package org.autojs.autojs.timing; import android.app.PendingIntent; import android.content.Context; @@ -8,8 +8,8 @@ import com.raizlabs.android.dbflow.annotation.PrimaryKey; import com.raizlabs.android.dbflow.annotation.Table; import com.stardust.autojs.execution.ExecutionConfig; -import com.stardust.scriptdroid.external.ScriptIntents; -import com.stardust.scriptdroid.storage.database.TimedTaskDatabase; +import org.autojs.autojs.external.ScriptIntents; +import org.autojs.autojs.storage.database.TimedTaskDatabase; import org.joda.time.DateTime; import org.joda.time.DateTimeConstants; diff --git a/app/src/main/java/com/stardust/scriptdroid/timing/TimedTaskManager.java b/app/src/main/java/org/autojs/autojs/timing/TimedTaskManager.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/timing/TimedTaskManager.java rename to app/src/main/java/org/autojs/autojs/timing/TimedTaskManager.java index e287b93b8..8efeee9bb 100644 --- a/app/src/main/java/com/stardust/scriptdroid/timing/TimedTaskManager.java +++ b/app/src/main/java/org/autojs/autojs/timing/TimedTaskManager.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.timing; +package org.autojs.autojs.timing; import android.content.Context; @@ -12,9 +12,9 @@ import com.raizlabs.android.dbflow.structure.BaseModel; import com.raizlabs.android.dbflow.structure.ModelAdapter; import com.stardust.app.GlobalAppContext; -import com.stardust.scriptdroid.App; -import com.stardust.scriptdroid.storage.database.ModelChange; -import com.stardust.scriptdroid.storage.database.TimedTaskDatabase; +import org.autojs.autojs.App; +import org.autojs.autojs.storage.database.ModelChange; +import org.autojs.autojs.storage.database.TimedTaskDatabase; import java.util.List; diff --git a/app/src/main/java/com/stardust/scriptdroid/timing/TimedTaskScheduler.java b/app/src/main/java/org/autojs/autojs/timing/TimedTaskScheduler.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/timing/TimedTaskScheduler.java rename to app/src/main/java/org/autojs/autojs/timing/TimedTaskScheduler.java index 3454bc460..d6eafe625 100644 --- a/app/src/main/java/com/stardust/scriptdroid/timing/TimedTaskScheduler.java +++ b/app/src/main/java/org/autojs/autojs/timing/TimedTaskScheduler.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.timing; +package org.autojs.autojs.timing; import android.app.AlarmManager; import android.app.PendingIntent; diff --git a/app/src/main/java/com/stardust/scriptdroid/tool/AccessibilityServiceTool.java b/app/src/main/java/org/autojs/autojs/tool/AccessibilityServiceTool.java similarity index 93% rename from app/src/main/java/com/stardust/scriptdroid/tool/AccessibilityServiceTool.java rename to app/src/main/java/org/autojs/autojs/tool/AccessibilityServiceTool.java index 780e21a79..fb11cf627 100644 --- a/app/src/main/java/com/stardust/scriptdroid/tool/AccessibilityServiceTool.java +++ b/app/src/main/java/org/autojs/autojs/tool/AccessibilityServiceTool.java @@ -1,15 +1,15 @@ -package com.stardust.scriptdroid.tool; +package org.autojs.autojs.tool; import android.content.ActivityNotFoundException; import android.content.Context; import android.text.TextUtils; import com.stardust.app.GlobalAppContext; -import com.stardust.scriptdroid.Pref; -import com.stardust.scriptdroid.App; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.Pref; +import org.autojs.autojs.App; +import org.autojs.autojs.R; import com.stardust.autojs.core.util.ProcessShell; -import com.stardust.scriptdroid.accessibility.AccessibilityService; +import org.autojs.autojs.accessibility.AccessibilityService; import com.stardust.view.accessibility.AccessibilityServiceUtils; import java.util.Locale; diff --git a/app/src/main/java/com/stardust/scriptdroid/tool/BitmapTool.java b/app/src/main/java/org/autojs/autojs/tool/BitmapTool.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/tool/BitmapTool.java rename to app/src/main/java/org/autojs/autojs/tool/BitmapTool.java index f8673aaac..dccca6dc5 100644 --- a/app/src/main/java/com/stardust/scriptdroid/tool/BitmapTool.java +++ b/app/src/main/java/org/autojs/autojs/tool/BitmapTool.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.tool; +package org.autojs.autojs.tool; import android.graphics.Bitmap; import android.graphics.Canvas; diff --git a/app/src/main/java/com/stardust/scriptdroid/tool/CrashHandler.java b/app/src/main/java/org/autojs/autojs/tool/CrashHandler.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/tool/CrashHandler.java rename to app/src/main/java/org/autojs/autojs/tool/CrashHandler.java index f104e6e48..2f8305b0c 100644 --- a/app/src/main/java/com/stardust/scriptdroid/tool/CrashHandler.java +++ b/app/src/main/java/org/autojs/autojs/tool/CrashHandler.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.tool; +package org.autojs.autojs.tool; /** * Created by Stardust on 2017/2/2. @@ -13,9 +13,9 @@ import android.widget.Toast; import com.stardust.app.GlobalAppContext; -import com.stardust.scriptdroid.App; -import com.stardust.scriptdroid.BuildConfig; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.App; +import org.autojs.autojs.BuildConfig; +import org.autojs.autojs.R; import com.stardust.util.IntentUtil; import com.stardust.view.accessibility.AccessibilityService; diff --git a/app/src/main/java/com/stardust/scriptdroid/tool/GsonUtils.java b/app/src/main/java/org/autojs/autojs/tool/GsonUtils.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/tool/GsonUtils.java rename to app/src/main/java/org/autojs/autojs/tool/GsonUtils.java index a41e9d500..bb0a9f09e 100644 --- a/app/src/main/java/com/stardust/scriptdroid/tool/GsonUtils.java +++ b/app/src/main/java/org/autojs/autojs/tool/GsonUtils.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.tool; +package org.autojs.autojs.tool; import com.google.gson.JsonArray; import com.google.gson.JsonElement; diff --git a/app/src/main/java/com/stardust/scriptdroid/tool/ImageSelector.java b/app/src/main/java/org/autojs/autojs/tool/ImageSelector.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/tool/ImageSelector.java rename to app/src/main/java/org/autojs/autojs/tool/ImageSelector.java index 56ee252e5..1557b7b55 100644 --- a/app/src/main/java/com/stardust/scriptdroid/tool/ImageSelector.java +++ b/app/src/main/java/org/autojs/autojs/tool/ImageSelector.java @@ -1,11 +1,11 @@ -package com.stardust.scriptdroid.tool; +package org.autojs.autojs.tool; import android.app.Activity; import android.content.Intent; import android.net.Uri; import com.stardust.app.OnActivityResultDelegate; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.R; import java.io.FileNotFoundException; import java.io.InputStream; diff --git a/app/src/main/java/com/stardust/scriptdroid/tool/InputMethodTool.java b/app/src/main/java/org/autojs/autojs/tool/InputMethodTool.java similarity index 92% rename from app/src/main/java/com/stardust/scriptdroid/tool/InputMethodTool.java rename to app/src/main/java/org/autojs/autojs/tool/InputMethodTool.java index b0782dd00..7dde5c724 100644 --- a/app/src/main/java/com/stardust/scriptdroid/tool/InputMethodTool.java +++ b/app/src/main/java/org/autojs/autojs/tool/InputMethodTool.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.tool; +package org.autojs.autojs.tool; import android.content.Context; import android.view.View; diff --git a/app/src/main/java/com/stardust/scriptdroid/tool/IntentTool.java b/app/src/main/java/org/autojs/autojs/tool/IntentTool.java similarity index 84% rename from app/src/main/java/com/stardust/scriptdroid/tool/IntentTool.java rename to app/src/main/java/org/autojs/autojs/tool/IntentTool.java index 06f60b19e..bd79622d0 100644 --- a/app/src/main/java/com/stardust/scriptdroid/tool/IntentTool.java +++ b/app/src/main/java/org/autojs/autojs/tool/IntentTool.java @@ -1,9 +1,9 @@ -package com.stardust.scriptdroid.tool; +package org.autojs.autojs.tool; import android.content.Context; import android.widget.Toast; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.R; import com.stardust.util.IntentUtil; /** diff --git a/app/src/main/java/com/stardust/scriptdroid/tool/MaterialDialogFactory.java b/app/src/main/java/org/autojs/autojs/tool/MaterialDialogFactory.java similarity index 89% rename from app/src/main/java/com/stardust/scriptdroid/tool/MaterialDialogFactory.java rename to app/src/main/java/org/autojs/autojs/tool/MaterialDialogFactory.java index fe9f1a2fa..b92673c31 100644 --- a/app/src/main/java/com/stardust/scriptdroid/tool/MaterialDialogFactory.java +++ b/app/src/main/java/org/autojs/autojs/tool/MaterialDialogFactory.java @@ -1,9 +1,9 @@ -package com.stardust.scriptdroid.tool; +package org.autojs.autojs.tool; import android.content.Context; import com.afollestad.materialdialogs.MaterialDialog; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.R; /** * Created by Stardust on 2017/4/18. diff --git a/app/src/main/java/com/stardust/scriptdroid/tool/RootTool.java b/app/src/main/java/org/autojs/autojs/tool/RootTool.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/tool/RootTool.java rename to app/src/main/java/org/autojs/autojs/tool/RootTool.java index 53c438538..37aac3b36 100644 --- a/app/src/main/java/com/stardust/scriptdroid/tool/RootTool.java +++ b/app/src/main/java/org/autojs/autojs/tool/RootTool.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.tool; +package org.autojs.autojs.tool; import com.stardust.autojs.core.util.ProcessShell; import com.stericson.RootShell.RootShell; diff --git a/app/src/main/java/com/stardust/scriptdroid/tool/SimpleObserver.java b/app/src/main/java/org/autojs/autojs/tool/SimpleObserver.java similarity index 92% rename from app/src/main/java/com/stardust/scriptdroid/tool/SimpleObserver.java rename to app/src/main/java/org/autojs/autojs/tool/SimpleObserver.java index afccf92e3..905922c5a 100644 --- a/app/src/main/java/com/stardust/scriptdroid/tool/SimpleObserver.java +++ b/app/src/main/java/org/autojs/autojs/tool/SimpleObserver.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.tool; +package org.autojs.autojs.tool; import io.reactivex.Observer; import io.reactivex.annotations.NonNull; diff --git a/app/src/main/java/com/stardust/scriptdroid/tool/WifiTool.java b/app/src/main/java/org/autojs/autojs/tool/WifiTool.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/tool/WifiTool.java rename to app/src/main/java/org/autojs/autojs/tool/WifiTool.java index fa5261271..1c6a9e5ec 100644 --- a/app/src/main/java/com/stardust/scriptdroid/tool/WifiTool.java +++ b/app/src/main/java/org/autojs/autojs/tool/WifiTool.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.tool; +package org.autojs.autojs.tool; import android.content.Context; import android.net.DhcpInfo; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/BaseActivity.java b/app/src/main/java/org/autojs/autojs/ui/BaseActivity.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/ui/BaseActivity.java rename to app/src/main/java/org/autojs/autojs/ui/BaseActivity.java index 62be27ea1..ec76a8dc9 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/BaseActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/BaseActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui; +package org.autojs.autojs.ui; import android.os.Build; import android.os.Bundle; @@ -11,8 +11,8 @@ import android.view.View; import android.widget.SeekBar; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.network.VersionService; +import org.autojs.autojs.R; +import org.autojs.autojs.network.VersionService; import com.stardust.theme.ThemeColorManager; import com.stardust.util.BackPressedHandler; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/build/BuildActivity.java b/app/src/main/java/org/autojs/autojs/ui/build/BuildActivity.java similarity index 94% rename from app/src/main/java/com/stardust/scriptdroid/ui/build/BuildActivity.java rename to app/src/main/java/org/autojs/autojs/ui/build/BuildActivity.java index 82d029561..a1b796801 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/build/BuildActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/build/BuildActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.build; +package org.autojs.autojs.ui.build; import android.annotation.SuppressLint; import android.content.Intent; @@ -17,25 +17,24 @@ import com.afollestad.materialdialogs.MaterialDialog; import com.google.android.gms.ads.AdRequest; -import com.google.android.gms.ads.AdSize; import com.google.android.gms.ads.MobileAds; import com.google.android.gms.ads.reward.RewardItem; import com.google.android.gms.ads.reward.RewardedVideoAd; import com.google.android.gms.ads.reward.RewardedVideoAdListener; import com.stardust.autojs.project.ProjectConfig; -import com.stardust.scriptdroid.BuildConfig; -import com.stardust.scriptdroid.Constants; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.autojs.build.AutoJsApkBuilder; -import com.stardust.scriptdroid.build.ApkBuilderPluginHelper; -import com.stardust.scriptdroid.storage.file.StorageFileProvider; -import com.stardust.scriptdroid.model.script.ScriptFile; -import com.stardust.scriptdroid.tool.BitmapTool; -import com.stardust.scriptdroid.ui.BaseActivity; -import com.stardust.scriptdroid.ui.filechooser.FileChooserDialogBuilder; -import com.stardust.scriptdroid.ui.shortcut.ShortcutIconSelectActivity; -import com.stardust.scriptdroid.ui.shortcut.ShortcutIconSelectActivity_; -import com.stardust.theme.dialog.ThemeColorMaterialDialogBuilder; +import org.autojs.autojs.BuildConfig; +import org.autojs.autojs.Constants; +import org.autojs.autojs.R; +import org.autojs.autojs.autojs.build.AutoJsApkBuilder; +import org.autojs.autojs.build.ApkBuilderPluginHelper; +import org.autojs.autojs.storage.file.StorageFileProvider; +import org.autojs.autojs.model.script.ScriptFile; +import org.autojs.autojs.tool.BitmapTool; +import org.autojs.autojs.ui.BaseActivity; +import org.autojs.autojs.ui.filechooser.FileChooserDialogBuilder; +import org.autojs.autojs.ui.shortcut.ShortcutIconSelectActivity; +import org.autojs.autojs.ui.shortcut.ShortcutIconSelectActivity_; +import org.autojs.autojs.theme.dialog.ThemeColorMaterialDialogBuilder; import com.stardust.util.IntentUtil; import org.androidannotations.annotations.AfterViews; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/codegeneration/CodeGenerateDialog.java b/app/src/main/java/org/autojs/autojs/ui/codegeneration/CodeGenerateDialog.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/ui/codegeneration/CodeGenerateDialog.java rename to app/src/main/java/org/autojs/autojs/ui/codegeneration/CodeGenerateDialog.java index e76befd01..ce4485440 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/codegeneration/CodeGenerateDialog.java +++ b/app/src/main/java/org/autojs/autojs/ui/codegeneration/CodeGenerateDialog.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.codegeneration; +package org.autojs.autojs.ui.codegeneration; import android.content.Context; import android.support.annotation.NonNull; @@ -18,9 +18,9 @@ import com.bignerdranch.expandablerecyclerview.model.Parent; import com.stardust.app.DialogUtils; import com.stardust.autojs.codegeneration.CodeGenerator; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.widget.CheckBoxCompat; -import com.stardust.theme.dialog.ThemeColorMaterialDialogBuilder; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.widget.CheckBoxCompat; +import org.autojs.autojs.theme.dialog.ThemeColorMaterialDialogBuilder; import com.stardust.theme.util.ListBuilder; import com.stardust.util.ClipboardUtil; import com.stardust.view.accessibility.NodeInfo; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/common/NotAskAgainDialog.java b/app/src/main/java/org/autojs/autojs/ui/common/NotAskAgainDialog.java similarity index 90% rename from app/src/main/java/com/stardust/scriptdroid/ui/common/NotAskAgainDialog.java rename to app/src/main/java/org/autojs/autojs/ui/common/NotAskAgainDialog.java index f2d70a477..0526a2c93 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/common/NotAskAgainDialog.java +++ b/app/src/main/java/org/autojs/autojs/ui/common/NotAskAgainDialog.java @@ -1,14 +1,13 @@ -package com.stardust.scriptdroid.ui.common; +package org.autojs.autojs.ui.common; import android.content.Context; import android.preference.PreferenceManager; import android.support.annotation.NonNull; import android.text.TextUtils; -import android.widget.CompoundButton; import com.afollestad.materialdialogs.MaterialDialog; -import com.stardust.scriptdroid.R; -import com.stardust.theme.dialog.ThemeColorMaterialDialogBuilder; +import org.autojs.autojs.R; +import org.autojs.autojs.theme.dialog.ThemeColorMaterialDialogBuilder; import com.stardust.util.HashUtils; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/common/OperationDialogBuilder.java b/app/src/main/java/org/autojs/autojs/ui/common/OperationDialogBuilder.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/ui/common/OperationDialogBuilder.java rename to app/src/main/java/org/autojs/autojs/ui/common/OperationDialogBuilder.java index 3a42f0fcc..f3aaac1df 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/common/OperationDialogBuilder.java +++ b/app/src/main/java/org/autojs/autojs/ui/common/OperationDialogBuilder.java @@ -11,7 +11,7 @@ import android.widget.TextView; import com.afollestad.materialdialogs.MaterialDialog; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.R; import java.util.ArrayList; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/common/OptionListView.java b/app/src/main/java/org/autojs/autojs/ui/common/OptionListView.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/ui/common/OptionListView.java rename to app/src/main/java/org/autojs/autojs/ui/common/OptionListView.java index 744718f83..17d51b583 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/common/OptionListView.java +++ b/app/src/main/java/org/autojs/autojs/ui/common/OptionListView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.common; +package org.autojs.autojs.ui.common; import android.content.Context; import android.support.annotation.Nullable; @@ -12,7 +12,7 @@ import android.widget.LinearLayout; import android.widget.TextView; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.R; import java.util.ArrayList; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/common/ProgressDialog.java b/app/src/main/java/org/autojs/autojs/ui/common/ProgressDialog.java similarity index 88% rename from app/src/main/java/com/stardust/scriptdroid/ui/common/ProgressDialog.java rename to app/src/main/java/org/autojs/autojs/ui/common/ProgressDialog.java index 4560fa33a..54e2924f2 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/common/ProgressDialog.java +++ b/app/src/main/java/org/autojs/autojs/ui/common/ProgressDialog.java @@ -1,9 +1,9 @@ -package com.stardust.scriptdroid.ui.common; +package org.autojs.autojs.ui.common; import android.content.Context; import com.afollestad.materialdialogs.MaterialDialog; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.R; /** * Created by Stardust on 2017/7/31. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/common/RxDialogs.java b/app/src/main/java/org/autojs/autojs/ui/common/RxDialogs.java similarity index 74% rename from app/src/main/java/com/stardust/scriptdroid/ui/common/RxDialogs.java rename to app/src/main/java/org/autojs/autojs/ui/common/RxDialogs.java index 9a6a54108..6990a32a0 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/common/RxDialogs.java +++ b/app/src/main/java/org/autojs/autojs/ui/common/RxDialogs.java @@ -1,12 +1,9 @@ -package com.stardust.scriptdroid.ui.common; +package org.autojs.autojs.ui.common; import android.content.Context; -import android.support.annotation.NonNull; -import com.afollestad.materialdialogs.DialogAction; -import com.afollestad.materialdialogs.MaterialDialog; -import com.stardust.scriptdroid.R; -import com.stardust.theme.dialog.ThemeColorMaterialDialogBuilder; +import org.autojs.autojs.R; +import org.autojs.autojs.theme.dialog.ThemeColorMaterialDialogBuilder; import io.reactivex.Observable; import io.reactivex.subjects.PublishSubject; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/common/ScriptLoopDialog.java b/app/src/main/java/org/autojs/autojs/ui/common/ScriptLoopDialog.java similarity index 91% rename from app/src/main/java/com/stardust/scriptdroid/ui/common/ScriptLoopDialog.java rename to app/src/main/java/org/autojs/autojs/ui/common/ScriptLoopDialog.java index acab30c8d..81f02d349 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/common/ScriptLoopDialog.java +++ b/app/src/main/java/org/autojs/autojs/ui/common/ScriptLoopDialog.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.common; +package org.autojs.autojs.ui.common; import android.content.Context; import android.support.annotation.NonNull; @@ -10,10 +10,10 @@ import com.afollestad.materialdialogs.MaterialDialog; import com.stardust.app.DialogUtils; import com.stardust.app.GlobalAppContext; -import com.stardust.scriptdroid.App; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.model.script.ScriptFile; -import com.stardust.scriptdroid.model.script.Scripts; +import org.autojs.autojs.App; +import org.autojs.autojs.R; +import org.autojs.autojs.model.script.ScriptFile; +import org.autojs.autojs.model.script.Scripts; import butterknife.BindView; import butterknife.ButterKnife; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/common/ScriptOperations.java b/app/src/main/java/org/autojs/autojs/ui/common/ScriptOperations.java similarity index 93% rename from app/src/main/java/com/stardust/scriptdroid/ui/common/ScriptOperations.java rename to app/src/main/java/org/autojs/autojs/ui/common/ScriptOperations.java index 95ed191b7..dc6977062 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/common/ScriptOperations.java +++ b/app/src/main/java/org/autojs/autojs/ui/common/ScriptOperations.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.common; +package org.autojs.autojs.ui.common; import android.content.Context; import android.content.Intent; @@ -20,20 +20,19 @@ import com.stardust.pio.PFile; import com.stardust.pio.PFiles; import com.stardust.pio.UncheckedIOException; -import com.stardust.scriptdroid.App; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.external.ScriptIntents; -import com.stardust.scriptdroid.storage.file.TmpScriptFiles; -import com.stardust.scriptdroid.model.sample.SampleFile; -import com.stardust.scriptdroid.model.script.ScriptFile; -import com.stardust.scriptdroid.model.script.Scripts; -import com.stardust.scriptdroid.storage.file.StorageFileProvider; -import com.stardust.scriptdroid.network.download.DownloadManager; -import com.stardust.scriptdroid.tool.SimpleObserver; -import com.stardust.scriptdroid.ui.filechooser.FileChooserDialogBuilder; -import com.stardust.scriptdroid.ui.shortcut.ShortcutCreateActivity; -import com.stardust.scriptdroid.ui.timing.TimedTaskSettingActivity_; -import com.stardust.theme.dialog.ThemeColorMaterialDialogBuilder; +import org.autojs.autojs.R; +import org.autojs.autojs.external.ScriptIntents; +import org.autojs.autojs.storage.file.TmpScriptFiles; +import org.autojs.autojs.model.sample.SampleFile; +import org.autojs.autojs.model.script.ScriptFile; +import org.autojs.autojs.model.script.Scripts; +import org.autojs.autojs.storage.file.StorageFileProvider; +import org.autojs.autojs.network.download.DownloadManager; +import org.autojs.autojs.tool.SimpleObserver; +import org.autojs.autojs.ui.filechooser.FileChooserDialogBuilder; +import org.autojs.autojs.ui.shortcut.ShortcutCreateActivity; +import org.autojs.autojs.ui.timing.TimedTaskSettingActivity_; +import org.autojs.autojs.theme.dialog.ThemeColorMaterialDialogBuilder; import org.reactivestreams.Publisher; import org.reactivestreams.Subscriber; @@ -44,7 +43,6 @@ import io.reactivex.Observable; import io.reactivex.android.schedulers.AndroidSchedulers; -import io.reactivex.functions.Consumer; import io.reactivex.schedulers.Schedulers; import io.reactivex.subjects.PublishSubject; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/doc/DocsFragment.java b/app/src/main/java/org/autojs/autojs/ui/doc/DocsFragment.java similarity index 91% rename from app/src/main/java/com/stardust/scriptdroid/ui/doc/DocsFragment.java rename to app/src/main/java/org/autojs/autojs/ui/doc/DocsFragment.java index ee6f3a546..759889970 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/doc/DocsFragment.java +++ b/app/src/main/java/org/autojs/autojs/ui/doc/DocsFragment.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.doc; +package org.autojs.autojs.ui.doc; import android.app.Activity; import android.os.Bundle; @@ -6,12 +6,12 @@ import android.support.design.widget.FloatingActionButton; import android.webkit.WebView; -import com.stardust.scriptdroid.Pref; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.main.QueryEvent; -import com.stardust.scriptdroid.ui.main.ViewPagerFragment; +import org.autojs.autojs.Pref; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.main.QueryEvent; +import org.autojs.autojs.ui.main.ViewPagerFragment; import com.stardust.util.BackPressedHandler; -import com.stardust.scriptdroid.ui.widget.EWebView; +import org.autojs.autojs.ui.widget.EWebView; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.EFragment; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/doc/DocumentationActivity.java b/app/src/main/java/org/autojs/autojs/ui/doc/DocumentationActivity.java similarity index 82% rename from app/src/main/java/com/stardust/scriptdroid/ui/doc/DocumentationActivity.java rename to app/src/main/java/org/autojs/autojs/ui/doc/DocumentationActivity.java index 25ccd5720..bb8fe51a7 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/doc/DocumentationActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/doc/DocumentationActivity.java @@ -1,11 +1,11 @@ -package com.stardust.scriptdroid.ui.doc; +package org.autojs.autojs.ui.doc; import android.webkit.WebView; -import com.stardust.scriptdroid.Pref; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.BaseActivity; -import com.stardust.scriptdroid.ui.widget.EWebView; +import org.autojs.autojs.Pref; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.BaseActivity; +import org.autojs.autojs.ui.widget.EWebView; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.EActivity; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/doc/ManualDialog.java b/app/src/main/java/org/autojs/autojs/ui/doc/ManualDialog.java similarity index 93% rename from app/src/main/java/com/stardust/scriptdroid/ui/doc/ManualDialog.java rename to app/src/main/java/org/autojs/autojs/ui/doc/ManualDialog.java index 39acedf05..87b698ebd 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/doc/ManualDialog.java +++ b/app/src/main/java/org/autojs/autojs/ui/doc/ManualDialog.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.doc; +package org.autojs.autojs.ui.doc; import android.app.Dialog; import android.content.Context; @@ -8,8 +8,8 @@ import android.widget.TextView; import com.afollestad.materialdialogs.MaterialDialog; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.widget.EWebView; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.widget.EWebView; import butterknife.BindView; import butterknife.ButterKnife; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/EditActivity.java b/app/src/main/java/org/autojs/autojs/ui/edit/EditActivity.java similarity index 90% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/EditActivity.java rename to app/src/main/java/org/autojs/autojs/ui/edit/EditActivity.java index c00670889..c791a377c 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/EditActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/EditActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.edit; +package org.autojs.autojs.ui.edit; import android.content.Context; import android.content.Intent; @@ -10,11 +10,10 @@ import com.stardust.app.OnActivityResultDelegate; import com.stardust.pio.PFiles; -import com.stardust.scriptdroid.BuildConfig; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.storage.file.TmpScriptFiles; -import com.stardust.scriptdroid.ui.BaseActivity; -import com.stardust.theme.dialog.ThemeColorMaterialDialogBuilder; +import org.autojs.autojs.R; +import org.autojs.autojs.storage.file.TmpScriptFiles; +import org.autojs.autojs.ui.BaseActivity; +import org.autojs.autojs.theme.dialog.ThemeColorMaterialDialogBuilder; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.EActivity; @@ -27,10 +26,10 @@ import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.schedulers.Schedulers; -import static com.stardust.scriptdroid.ui.edit.EditorView.EXTRA_CONTENT; -import static com.stardust.scriptdroid.ui.edit.EditorView.EXTRA_NAME; -import static com.stardust.scriptdroid.ui.edit.EditorView.EXTRA_PATH; -import static com.stardust.scriptdroid.ui.edit.EditorView.EXTRA_READ_ONLY; +import static org.autojs.autojs.ui.edit.EditorView.EXTRA_CONTENT; +import static org.autojs.autojs.ui.edit.EditorView.EXTRA_NAME; +import static org.autojs.autojs.ui.edit.EditorView.EXTRA_PATH; +import static org.autojs.autojs.ui.edit.EditorView.EXTRA_READ_ONLY; /** * Created by Stardust on 2017/1/29. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/EditorMenu.java b/app/src/main/java/org/autojs/autojs/ui/edit/EditorMenu.java similarity index 93% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/EditorMenu.java rename to app/src/main/java/org/autojs/autojs/ui/edit/EditorMenu.java index 7d4a6106f..26d6710b7 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/EditorMenu.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/EditorMenu.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.edit; +package org.autojs.autojs.ui.edit; import android.content.Context; import android.support.design.widget.Snackbar; @@ -6,20 +6,18 @@ import android.view.MenuItem; import com.stardust.pio.PFiles; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.build.BuildActivity; -import com.stardust.scriptdroid.ui.build.BuildActivity_; -import com.stardust.scriptdroid.ui.edit.editor.CodeEditor; -import com.stardust.scriptdroid.ui.log.LogActivity_; -import com.stardust.theme.dialog.ThemeColorMaterialDialogBuilder; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.build.BuildActivity; +import org.autojs.autojs.ui.build.BuildActivity_; +import org.autojs.autojs.ui.edit.editor.CodeEditor; +import org.autojs.autojs.ui.log.LogActivity_; +import org.autojs.autojs.theme.dialog.ThemeColorMaterialDialogBuilder; import com.stardust.util.ClipboardUtil; import java.util.Locale; import io.reactivex.Observable; import io.reactivex.android.schedulers.AndroidSchedulers; -import io.reactivex.annotations.NonNull; -import io.reactivex.functions.Consumer; /** * Created by Stardust on 2017/9/28. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/EditorView.java b/app/src/main/java/org/autojs/autojs/ui/edit/EditorView.java similarity index 92% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/EditorView.java rename to app/src/main/java/org/autojs/autojs/ui/edit/EditorView.java index 74c8fd9bd..8a0242c2b 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/EditorView.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/EditorView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.edit; +package org.autojs.autojs.ui.edit; import android.app.Activity; import android.content.BroadcastReceiver; @@ -20,26 +20,26 @@ import com.stardust.autojs.engine.JavaScriptEngine; import com.stardust.autojs.execution.ScriptExecution; import com.stardust.pio.PFiles; -import com.stardust.scriptdroid.Pref; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.model.autocomplete.AutoCompletion; -import com.stardust.scriptdroid.model.autocomplete.CodeCompletion; -import com.stardust.scriptdroid.model.indices.Module; -import com.stardust.scriptdroid.model.indices.Property; -import com.stardust.scriptdroid.model.script.Scripts; -import com.stardust.scriptdroid.ui.doc.ManualDialog; -import com.stardust.scriptdroid.model.autocomplete.CodeCompletions; -import com.stardust.scriptdroid.ui.edit.completion.CodeCompletionBar; -import com.stardust.scriptdroid.model.autocomplete.Symbols; -import com.stardust.scriptdroid.ui.edit.editor.CodeEditor; -import com.stardust.scriptdroid.ui.edit.keyboard.FunctionsKeyboardHelper; -import com.stardust.scriptdroid.ui.edit.keyboard.FunctionsKeyboardView; -import com.stardust.scriptdroid.ui.edit.theme.Theme; -import com.stardust.scriptdroid.ui.edit.theme.Themes; -import com.stardust.scriptdroid.ui.log.LogActivity_; -import com.stardust.scriptdroid.ui.widget.EWebView; -import com.stardust.scriptdroid.ui.widget.SimpleTextWatcher; -import com.stardust.scriptdroid.ui.widget.ToolbarMenuItem; +import org.autojs.autojs.Pref; +import org.autojs.autojs.R; +import org.autojs.autojs.model.autocomplete.AutoCompletion; +import org.autojs.autojs.model.autocomplete.CodeCompletion; +import org.autojs.autojs.model.indices.Module; +import org.autojs.autojs.model.indices.Property; +import org.autojs.autojs.model.script.Scripts; +import org.autojs.autojs.ui.doc.ManualDialog; +import org.autojs.autojs.model.autocomplete.CodeCompletions; +import org.autojs.autojs.ui.edit.completion.CodeCompletionBar; +import org.autojs.autojs.model.autocomplete.Symbols; +import org.autojs.autojs.ui.edit.editor.CodeEditor; +import org.autojs.autojs.ui.edit.keyboard.FunctionsKeyboardHelper; +import org.autojs.autojs.ui.edit.keyboard.FunctionsKeyboardView; +import org.autojs.autojs.ui.edit.theme.Theme; +import org.autojs.autojs.ui.edit.theme.Themes; +import org.autojs.autojs.ui.log.LogActivity_; +import org.autojs.autojs.ui.widget.EWebView; +import org.autojs.autojs.ui.widget.SimpleTextWatcher; +import org.autojs.autojs.ui.widget.ToolbarMenuItem; import com.stardust.util.BackPressedHandler; import com.stardust.util.ViewUtils; import com.stardust.widget.ViewSwitcher; @@ -56,7 +56,7 @@ import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.schedulers.Schedulers; -import static com.stardust.scriptdroid.model.script.Scripts.ACTION_ON_EXECUTION_FINISHED; +import static org.autojs.autojs.model.script.Scripts.ACTION_ON_EXECUTION_FINISHED; /** * Created by Stardust on 2017/9/28. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/FindOrReplaceDialogBuilder.java b/app/src/main/java/org/autojs/autojs/ui/edit/FindOrReplaceDialogBuilder.java similarity index 89% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/FindOrReplaceDialogBuilder.java rename to app/src/main/java/org/autojs/autojs/ui/edit/FindOrReplaceDialogBuilder.java index 5f61a60f7..7cf9c8767 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/FindOrReplaceDialogBuilder.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/FindOrReplaceDialogBuilder.java @@ -1,23 +1,17 @@ -package com.stardust.scriptdroid.ui.edit; +package org.autojs.autojs.ui.edit; -import android.animation.ValueAnimator; import android.content.Context; -import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.support.annotation.NonNull; import android.support.design.widget.TextInputEditText; import android.text.TextUtils; import android.view.View; -import android.view.ViewGroup; import android.widget.CheckBox; -import android.widget.CompoundButton; -import android.widget.LinearLayout; import com.afollestad.materialdialogs.DialogAction; import com.afollestad.materialdialogs.MaterialDialog; -import com.github.aakira.expandablelayout.ExpandableRelativeLayout; -import com.stardust.scriptdroid.R; -import com.stardust.theme.dialog.ThemeColorMaterialDialogBuilder; +import org.autojs.autojs.R; +import org.autojs.autojs.theme.dialog.ThemeColorMaterialDialogBuilder; import butterknife.BindView; import butterknife.ButterKnife; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/TextSizeSettingDialogBuilder.java b/app/src/main/java/org/autojs/autojs/ui/edit/TextSizeSettingDialogBuilder.java similarity index 94% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/TextSizeSettingDialogBuilder.java rename to app/src/main/java/org/autojs/autojs/ui/edit/TextSizeSettingDialogBuilder.java index 017f7db76..9440d5fc0 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/TextSizeSettingDialogBuilder.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/TextSizeSettingDialogBuilder.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.edit; +package org.autojs.autojs.ui.edit; import android.content.Context; import android.support.annotation.NonNull; @@ -7,8 +7,8 @@ import android.widget.TextView; import com.afollestad.materialdialogs.MaterialDialog; -import com.stardust.scriptdroid.R; -import com.stardust.theme.dialog.ThemeColorMaterialDialogBuilder; +import org.autojs.autojs.R; +import org.autojs.autojs.theme.dialog.ThemeColorMaterialDialogBuilder; import butterknife.BindView; import butterknife.ButterKnife; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/ViewSampleActivity.java b/app/src/main/java/org/autojs/autojs/ui/edit/ViewSampleActivity.java similarity index 91% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/ViewSampleActivity.java rename to app/src/main/java/org/autojs/autojs/ui/edit/ViewSampleActivity.java index a9f4056a6..e553e15c0 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/ViewSampleActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/ViewSampleActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.edit; +package org.autojs.autojs.ui.edit; import android.content.BroadcastReceiver; import android.content.Context; @@ -15,15 +15,15 @@ import com.stardust.app.OnActivityResultDelegate; import com.stardust.autojs.engine.JavaScriptEngine; import com.stardust.autojs.execution.ScriptExecution; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.autojs.AutoJs; -import com.stardust.scriptdroid.model.sample.SampleFile; -import com.stardust.scriptdroid.ui.BaseActivity; -import com.stardust.scriptdroid.ui.common.ScriptOperations; +import org.autojs.autojs.R; +import org.autojs.autojs.autojs.AutoJs; +import org.autojs.autojs.model.sample.SampleFile; +import org.autojs.autojs.ui.BaseActivity; +import org.autojs.autojs.ui.common.ScriptOperations; import com.stardust.theme.ThemeColorManager; import com.stardust.util.AssetsCache; import com.stardust.util.SparseArrayEntries; -import com.stardust.scriptdroid.ui.widget.ToolbarMenuItem; +import org.autojs.autojs.ui.widget.ToolbarMenuItem; import butterknife.ButterKnife; import butterknife.OnClick; @@ -31,8 +31,8 @@ import io.reactivex.annotations.NonNull; import io.reactivex.functions.Consumer; -import static com.stardust.scriptdroid.model.script.Scripts.ACTION_ON_EXECUTION_FINISHED; -import static com.stardust.scriptdroid.model.script.Scripts.EXTRA_EXCEPTION_MESSAGE; +import static org.autojs.autojs.model.script.Scripts.ACTION_ON_EXECUTION_FINISHED; +import static org.autojs.autojs.model.script.Scripts.EXTRA_EXCEPTION_MESSAGE; /** diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/completion/CodeCompletionBar.java b/app/src/main/java/org/autojs/autojs/ui/edit/completion/CodeCompletionBar.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/completion/CodeCompletionBar.java rename to app/src/main/java/org/autojs/autojs/ui/edit/completion/CodeCompletionBar.java index 210b25648..65547f61a 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/completion/CodeCompletionBar.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/completion/CodeCompletionBar.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.edit.completion; +package org.autojs.autojs.ui.edit.completion; import android.content.Context; import android.os.Looper; @@ -11,8 +11,8 @@ import android.widget.TextView; import com.stardust.autojs.workground.WrapContentLinearLayoutManager; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.model.autocomplete.CodeCompletions; +import org.autojs.autojs.R; +import org.autojs.autojs.model.autocomplete.CodeCompletions; /** * Created by Stardust on 2017/2/17. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/AutoIndent.java b/app/src/main/java/org/autojs/autojs/ui/edit/editor/AutoIndent.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/AutoIndent.java rename to app/src/main/java/org/autojs/autojs/ui/edit/editor/AutoIndent.java index 2a2a997d5..96c0a1668 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/AutoIndent.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/editor/AutoIndent.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.edit.editor; +package org.autojs.autojs.ui.edit.editor; import android.text.Editable; import android.text.TextWatcher; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/BracketMatching.java b/app/src/main/java/org/autojs/autojs/ui/edit/editor/BracketMatching.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/BracketMatching.java rename to app/src/main/java/org/autojs/autojs/ui/edit/editor/BracketMatching.java index 0757d45ec..26a881247 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/BracketMatching.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/editor/BracketMatching.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.edit.editor; +package org.autojs.autojs.ui.edit.editor; /** * Created by Stardust on 2018/2/25. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/CodeEditText.java b/app/src/main/java/org/autojs/autojs/ui/edit/editor/CodeEditText.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/CodeEditText.java rename to app/src/main/java/org/autojs/autojs/ui/edit/editor/CodeEditText.java index 5a630e804..79602b909 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/CodeEditText.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/editor/CodeEditText.java @@ -15,7 +15,7 @@ *

* Modified by project: https://github.com/980008027/JsDroidEditor */ -package com.stardust.scriptdroid.ui.edit.editor; +package org.autojs.autojs.ui.edit.editor; import android.content.Context; import android.graphics.Canvas; @@ -31,15 +31,15 @@ import android.util.TimingLogger; import android.view.Gravity; -import com.stardust.scriptdroid.BuildConfig; -import com.stardust.scriptdroid.ui.edit.theme.Theme; -import com.stardust.scriptdroid.ui.edit.theme.TokenMapping; +import org.autojs.autojs.BuildConfig; +import org.autojs.autojs.ui.edit.theme.Theme; +import org.autojs.autojs.ui.edit.theme.TokenMapping; import com.stardust.util.ClipboardUtil; import com.stardust.util.TextUtils; import org.mozilla.javascript.Token; -import static com.stardust.scriptdroid.ui.edit.editor.BracketMatching.UNMATCHED_BRACKET; +import static org.autojs.autojs.ui.edit.editor.BracketMatching.UNMATCHED_BRACKET; /** * Created by Administrator on 2018/2/11. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/CodeEditor.java b/app/src/main/java/org/autojs/autojs/ui/edit/editor/CodeEditor.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/CodeEditor.java rename to app/src/main/java/org/autojs/autojs/ui/edit/editor/CodeEditor.java index 65aa55f42..5f894d708 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/CodeEditor.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/editor/CodeEditor.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.edit.editor; +package org.autojs.autojs.ui.edit.editor; import android.content.Context; import android.graphics.Canvas; @@ -9,8 +9,8 @@ import com.afollestad.materialdialogs.MaterialDialog; import com.android.dx.util.IntList; import com.stardust.autojs.script.JsBeautifier; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.edit.theme.Theme; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.edit.theme.Theme; import com.stardust.util.ClipboardUtil; import com.stardust.util.TextUtils; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/HVScrollView.java b/app/src/main/java/org/autojs/autojs/ui/edit/editor/HVScrollView.java similarity index 99% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/HVScrollView.java rename to app/src/main/java/org/autojs/autojs/ui/edit/editor/HVScrollView.java index ad5062f29..1c0036c1d 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/HVScrollView.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/editor/HVScrollView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.edit.editor; +package org.autojs.autojs.ui.edit.editor; import java.util.List; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/JavaScriptHighlighter.java b/app/src/main/java/org/autojs/autojs/ui/edit/editor/JavaScriptHighlighter.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/JavaScriptHighlighter.java rename to app/src/main/java/org/autojs/autojs/ui/edit/editor/JavaScriptHighlighter.java index d622a46a7..9ecfb2515 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/JavaScriptHighlighter.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/editor/JavaScriptHighlighter.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.edit.editor; +package org.autojs.autojs.ui.edit.editor; import android.text.Editable; @@ -6,8 +6,8 @@ import com.stardust.autojs.rhino.TokenStream; import com.stardust.pio.UncheckedIOException; -import com.stardust.scriptdroid.ui.edit.theme.Theme; -import com.stardust.scriptdroid.ui.widget.SimpleTextWatcher; +import org.autojs.autojs.ui.edit.theme.Theme; +import org.autojs.autojs.ui.widget.SimpleTextWatcher; import org.mozilla.javascript.Token; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/LayoutHelper.java b/app/src/main/java/org/autojs/autojs/ui/edit/editor/LayoutHelper.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/LayoutHelper.java rename to app/src/main/java/org/autojs/autojs/ui/edit/editor/LayoutHelper.java index ba7cda56a..26d03919f 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/LayoutHelper.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/editor/LayoutHelper.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.edit.editor; +package org.autojs.autojs.ui.edit.editor; import android.content.pm.PackageManager; import android.graphics.Canvas; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/TextViewRedoUndo.java b/app/src/main/java/org/autojs/autojs/ui/edit/editor/TextViewRedoUndo.java similarity index 99% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/TextViewRedoUndo.java rename to app/src/main/java/org/autojs/autojs/ui/edit/editor/TextViewRedoUndo.java index c19f1cee5..8d24fd4ed 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/editor/TextViewRedoUndo.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/editor/TextViewRedoUndo.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.edit.editor; +package org.autojs.autojs.ui.edit.editor; /* * Copyright 2016. SHENQINCI(沈钦赐)<946736079@qq.com> * diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/keyboard/FunctionsKeyboardHelper.java b/app/src/main/java/org/autojs/autojs/ui/edit/keyboard/FunctionsKeyboardHelper.java similarity index 99% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/keyboard/FunctionsKeyboardHelper.java rename to app/src/main/java/org/autojs/autojs/ui/edit/keyboard/FunctionsKeyboardHelper.java index 162607a84..fce0c9d64 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/keyboard/FunctionsKeyboardHelper.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/keyboard/FunctionsKeyboardHelper.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.edit.keyboard; +package org.autojs.autojs.ui.edit.keyboard; /** * Created by Stardust on 2017/12/9. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/keyboard/FunctionsKeyboardView.java b/app/src/main/java/org/autojs/autojs/ui/edit/keyboard/FunctionsKeyboardView.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/keyboard/FunctionsKeyboardView.java rename to app/src/main/java/org/autojs/autojs/ui/edit/keyboard/FunctionsKeyboardView.java index 83e6f70fc..14bf33eec 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/keyboard/FunctionsKeyboardView.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/keyboard/FunctionsKeyboardView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.edit.keyboard; +package org.autojs.autojs.ui.edit.keyboard; import android.content.Context; import android.graphics.Paint; @@ -22,11 +22,11 @@ import android.widget.LinearLayout; import android.widget.TextView; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.model.indices.Module; -import com.stardust.scriptdroid.model.indices.Modules; -import com.stardust.scriptdroid.model.indices.Property; -import com.stardust.scriptdroid.ui.widget.GridDividerDecoration; +import org.autojs.autojs.R; +import org.autojs.autojs.model.indices.Module; +import org.autojs.autojs.model.indices.Modules; +import org.autojs.autojs.model.indices.Property; +import org.autojs.autojs.ui.widget.GridDividerDecoration; import java.util.ArrayList; import java.util.HashMap; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/theme/Theme.java b/app/src/main/java/org/autojs/autojs/ui/edit/theme/Theme.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/theme/Theme.java rename to app/src/main/java/org/autojs/autojs/ui/edit/theme/Theme.java index c999d4d8e..2c05413e1 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/theme/Theme.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/theme/Theme.java @@ -1,10 +1,10 @@ -package com.stardust.scriptdroid.ui.edit.theme; +package org.autojs.autojs.ui.edit.theme; import android.graphics.Color; import android.util.SparseIntArray; -import com.stardust.scriptdroid.model.editor.EditorTheme; -import com.stardust.scriptdroid.model.editor.TokenColor; +import org.autojs.autojs.model.editor.EditorTheme; +import org.autojs.autojs.model.editor.TokenColor; import java.io.IOException; import java.io.InputStreamReader; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/theme/Themes.java b/app/src/main/java/org/autojs/autojs/ui/edit/theme/Themes.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/theme/Themes.java rename to app/src/main/java/org/autojs/autojs/ui/edit/theme/Themes.java index ecae3d5de..2ae6590dc 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/theme/Themes.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/theme/Themes.java @@ -1,9 +1,9 @@ -package com.stardust.scriptdroid.ui.edit.theme; +package org.autojs.autojs.ui.edit.theme; import android.content.Context; import com.stardust.pio.UncheckedIOException; -import com.stardust.scriptdroid.Pref; +import org.autojs.autojs.Pref; import java.io.IOException; import java.io.InputStreamReader; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/edit/theme/TokenMapping.java b/app/src/main/java/org/autojs/autojs/ui/edit/theme/TokenMapping.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/ui/edit/theme/TokenMapping.java rename to app/src/main/java/org/autojs/autojs/ui/edit/theme/TokenMapping.java index 61b1a02de..44c729359 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/edit/theme/TokenMapping.java +++ b/app/src/main/java/org/autojs/autojs/ui/edit/theme/TokenMapping.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.edit.theme; +package org.autojs.autojs.ui.edit.theme; import org.mozilla.javascript.Token; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/error/AbstractIssueReporterActivity.java b/app/src/main/java/org/autojs/autojs/ui/error/AbstractIssueReporterActivity.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/ui/error/AbstractIssueReporterActivity.java rename to app/src/main/java/org/autojs/autojs/ui/error/AbstractIssueReporterActivity.java index 6f67acaaa..69936c896 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/error/AbstractIssueReporterActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/error/AbstractIssueReporterActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.error; +package org.autojs.autojs.ui.error; import android.app.Activity; import android.app.Dialog; @@ -57,7 +57,7 @@ import static android.util.Patterns.EMAIL_ADDRESS; import com.heinrichreimersoftware.androidissuereporter.R; -import com.stardust.scriptdroid.BuildConfig; +import org.autojs.autojs.BuildConfig; import com.stardust.theme.ThemeColorManager; /** @@ -112,7 +112,7 @@ protected void onCreate(Bundle savedInstanceState) { if (TextUtils.isEmpty(getTitle())) setTitle(R.string.air_title_report_issue); - setContentView(com.stardust.scriptdroid.R.layout.air_activity_issue_reporter); + setContentView(org.autojs.autojs.R.layout.air_activity_issue_reporter); findViews(); //noinspection deprecation @@ -180,7 +180,7 @@ private void initViews() { ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { actionBar.setDisplayHomeAsUpEnabled(true); - actionBar.setTitle(com.stardust.scriptdroid.R.string.text_issue_report); + actionBar.setTitle(org.autojs.autojs.R.string.text_issue_report); } toolbar.setBackgroundColor(ThemeColorManager.getColorPrimary()); @@ -435,9 +435,9 @@ protected final void setGuestToken(String token) { public void finish() { if (mCrash) { if (!mReportFailed) { - Toast.makeText(this, com.stardust.scriptdroid.R.string.text_report_succeed, Toast.LENGTH_SHORT).show(); + Toast.makeText(this, org.autojs.autojs.R.string.text_report_succeed, Toast.LENGTH_SHORT).show(); } else { - Toast.makeText(this, com.stardust.scriptdroid.R.string.text_report_fail, Toast.LENGTH_SHORT).show(); + Toast.makeText(this, org.autojs.autojs.R.string.text_report_fail, Toast.LENGTH_SHORT).show(); } finishAffinity(); } else { diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/error/ErrorReportActivity.java b/app/src/main/java/org/autojs/autojs/ui/error/ErrorReportActivity.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/ui/error/ErrorReportActivity.java rename to app/src/main/java/org/autojs/autojs/ui/error/ErrorReportActivity.java index 589020fe7..f8be404a5 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/error/ErrorReportActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/error/ErrorReportActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.error; +package org.autojs.autojs.ui.error; import android.content.ClipData; import android.content.ClipboardManager; @@ -15,10 +15,10 @@ import com.afollestad.materialdialogs.DialogAction; import com.afollestad.materialdialogs.MaterialDialog; -import com.stardust.scriptdroid.BuildConfig; -import com.stardust.scriptdroid.ui.BaseActivity; -import com.stardust.theme.dialog.ThemeColorMaterialDialogBuilder; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.BuildConfig; +import org.autojs.autojs.ui.BaseActivity; +import org.autojs.autojs.theme.dialog.ThemeColorMaterialDialogBuilder; +import org.autojs.autojs.R; import java.util.Locale; import java.util.Timer; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/error/IssueReporterActivity.java b/app/src/main/java/org/autojs/autojs/ui/error/IssueReporterActivity.java similarity index 94% rename from app/src/main/java/com/stardust/scriptdroid/ui/error/IssueReporterActivity.java rename to app/src/main/java/org/autojs/autojs/ui/error/IssueReporterActivity.java index 97c6d2321..645a9cfa7 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/error/IssueReporterActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/error/IssueReporterActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.error; +package org.autojs.autojs.ui.error; import android.os.Bundle; import android.util.Base64; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/filechooser/FileChooseListView.java b/app/src/main/java/org/autojs/autojs/ui/filechooser/FileChooseListView.java similarity index 94% rename from app/src/main/java/com/stardust/scriptdroid/ui/filechooser/FileChooseListView.java rename to app/src/main/java/org/autojs/autojs/ui/filechooser/FileChooseListView.java index 51f7e1060..bfbf530f4 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/filechooser/FileChooseListView.java +++ b/app/src/main/java/org/autojs/autojs/ui/filechooser/FileChooseListView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.filechooser; +package org.autojs.autojs.ui.filechooser; import android.content.Context; import android.graphics.drawable.GradientDrawable; @@ -13,11 +13,11 @@ import com.stardust.pio.PFile; import com.stardust.pio.PFiles; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.model.script.ScriptFile; -import com.stardust.scriptdroid.ui.main.scripts.ScriptListView; -import com.stardust.scriptdroid.ui.widget.BindableViewHolder; -import com.stardust.scriptdroid.ui.widget.CheckBoxCompat; +import org.autojs.autojs.R; +import org.autojs.autojs.model.script.ScriptFile; +import org.autojs.autojs.ui.main.scripts.ScriptListView; +import org.autojs.autojs.ui.widget.BindableViewHolder; +import org.autojs.autojs.ui.widget.CheckBoxCompat; import java.util.ArrayList; import java.util.LinkedHashMap; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/filechooser/FileChooserDialogBuilder.java b/app/src/main/java/org/autojs/autojs/ui/filechooser/FileChooserDialogBuilder.java similarity index 93% rename from app/src/main/java/com/stardust/scriptdroid/ui/filechooser/FileChooserDialogBuilder.java rename to app/src/main/java/org/autojs/autojs/ui/filechooser/FileChooserDialogBuilder.java index ea733d770..b2c439409 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/filechooser/FileChooserDialogBuilder.java +++ b/app/src/main/java/org/autojs/autojs/ui/filechooser/FileChooserDialogBuilder.java @@ -1,14 +1,14 @@ -package com.stardust.scriptdroid.ui.filechooser; +package org.autojs.autojs.ui.filechooser; import android.content.Context; import android.support.annotation.NonNull; import android.support.annotation.StringRes; import com.stardust.pio.PFile; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.model.script.ScriptFile; -import com.stardust.scriptdroid.storage.file.StorageFileProvider; -import com.stardust.theme.dialog.ThemeColorMaterialDialogBuilder; +import org.autojs.autojs.R; +import org.autojs.autojs.model.script.ScriptFile; +import org.autojs.autojs.storage.file.StorageFileProvider; +import org.autojs.autojs.theme.dialog.ThemeColorMaterialDialogBuilder; import java.io.File; import java.util.Collections; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/floating/CircularMenu.java b/app/src/main/java/org/autojs/autojs/ui/floating/CircularMenu.java similarity index 91% rename from app/src/main/java/com/stardust/scriptdroid/ui/floating/CircularMenu.java rename to app/src/main/java/org/autojs/autojs/ui/floating/CircularMenu.java index 67a13013d..67e91a8e9 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/floating/CircularMenu.java +++ b/app/src/main/java/org/autojs/autojs/ui/floating/CircularMenu.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.floating; +package org.autojs.autojs.ui.floating; import android.content.Context; import android.content.Intent; @@ -15,25 +15,22 @@ import com.stardust.enhancedfloaty.FloatyService; import com.stardust.enhancedfloaty.FloatyWindow; import com.stardust.floatingcircularactionmenu.CircularActionMenu; -import com.stardust.floatingcircularactionmenu.CircularActionMenuFloatingWindow; -import com.stardust.floatingcircularactionmenu.CircularActionMenuFloaty; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.accessibility.AccessibilityService; -import com.stardust.scriptdroid.autojs.AutoJs; -import com.stardust.scriptdroid.autojs.record.GlobalActionRecorder; -import com.stardust.scriptdroid.model.script.Scripts; -import com.stardust.scriptdroid.storage.file.StorageFileProvider; -import com.stardust.scriptdroid.tool.AccessibilityServiceTool; -import com.stardust.scriptdroid.tool.RootTool; -import com.stardust.scriptdroid.ui.common.NotAskAgainDialog; -import com.stardust.scriptdroid.ui.floating.layoutinspector.LayoutBoundsFloatyWindow; -import com.stardust.scriptdroid.ui.floating.layoutinspector.LayoutHierarchyFloatyWindow; -import com.stardust.scriptdroid.ui.main.MainActivity_; -import com.stardust.scriptdroid.ui.main.scripts.ScriptListView; -import com.stardust.theme.dialog.ThemeColorMaterialDialogBuilder; +import org.autojs.autojs.R; +import org.autojs.autojs.accessibility.AccessibilityService; +import org.autojs.autojs.autojs.AutoJs; +import org.autojs.autojs.autojs.record.GlobalActionRecorder; +import org.autojs.autojs.model.script.Scripts; +import org.autojs.autojs.storage.file.StorageFileProvider; +import org.autojs.autojs.tool.AccessibilityServiceTool; +import org.autojs.autojs.tool.RootTool; +import org.autojs.autojs.ui.common.NotAskAgainDialog; +import org.autojs.autojs.ui.floating.layoutinspector.LayoutBoundsFloatyWindow; +import org.autojs.autojs.ui.floating.layoutinspector.LayoutHierarchyFloatyWindow; +import org.autojs.autojs.ui.main.MainActivity_; +import org.autojs.autojs.ui.main.scripts.ScriptListView; +import org.autojs.autojs.theme.dialog.ThemeColorMaterialDialogBuilder; import com.stardust.util.ClipboardUtil; import com.stardust.util.Func1; -import com.stardust.util.Supplier; import com.stardust.view.accessibility.LayoutInspector; import com.stardust.view.accessibility.NodeInfo; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/floating/CircularMenuFloaty.java b/app/src/main/java/org/autojs/autojs/ui/floating/CircularMenuFloaty.java similarity index 88% rename from app/src/main/java/com/stardust/scriptdroid/ui/floating/CircularMenuFloaty.java rename to app/src/main/java/org/autojs/autojs/ui/floating/CircularMenuFloaty.java index 96fa9b5a9..5982acebe 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/floating/CircularMenuFloaty.java +++ b/app/src/main/java/org/autojs/autojs/ui/floating/CircularMenuFloaty.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.floating; +package org.autojs.autojs.ui.floating; import android.view.View; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/floating/CircularMenuWindow.java b/app/src/main/java/org/autojs/autojs/ui/floating/CircularMenuWindow.java similarity index 99% rename from app/src/main/java/com/stardust/scriptdroid/ui/floating/CircularMenuWindow.java rename to app/src/main/java/org/autojs/autojs/ui/floating/CircularMenuWindow.java index 657f7a0e5..f11c139ce 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/floating/CircularMenuWindow.java +++ b/app/src/main/java/org/autojs/autojs/ui/floating/CircularMenuWindow.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.floating; +package org.autojs.autojs.ui.floating; import android.content.Context; import android.hardware.Sensor; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/floating/FloatyWindowManger.java b/app/src/main/java/org/autojs/autojs/ui/floating/FloatyWindowManger.java similarity index 93% rename from app/src/main/java/com/stardust/scriptdroid/ui/floating/FloatyWindowManger.java rename to app/src/main/java/org/autojs/autojs/ui/floating/FloatyWindowManger.java index bdb4f1873..f2be6c8c1 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/floating/FloatyWindowManger.java +++ b/app/src/main/java/org/autojs/autojs/ui/floating/FloatyWindowManger.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.floating; +package org.autojs.autojs.ui.floating; import android.content.Context; import android.content.Intent; @@ -9,9 +9,9 @@ import com.stardust.enhancedfloaty.FloatyService; import com.stardust.enhancedfloaty.FloatyWindow; import com.stardust.enhancedfloaty.util.FloatingWindowPermissionUtil; -import com.stardust.scriptdroid.App; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.floating.CircularMenu; +import org.autojs.autojs.App; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.floating.CircularMenu; import com.stardust.util.IntentUtil; import java.lang.ref.WeakReference; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/floating/FullScreenFloatyWindow.java b/app/src/main/java/org/autojs/autojs/ui/floating/FullScreenFloatyWindow.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/ui/floating/FullScreenFloatyWindow.java rename to app/src/main/java/org/autojs/autojs/ui/floating/FullScreenFloatyWindow.java index 5c8d62d18..4950c8450 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/floating/FullScreenFloatyWindow.java +++ b/app/src/main/java/org/autojs/autojs/ui/floating/FullScreenFloatyWindow.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.floating; +package org.autojs.autojs.ui.floating; import android.graphics.PixelFormat; import android.view.View; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/floating/OrientationAwareWindowBridge.java b/app/src/main/java/org/autojs/autojs/ui/floating/OrientationAwareWindowBridge.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/ui/floating/OrientationAwareWindowBridge.java rename to app/src/main/java/org/autojs/autojs/ui/floating/OrientationAwareWindowBridge.java index 23e604a96..c810575d5 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/floating/OrientationAwareWindowBridge.java +++ b/app/src/main/java/org/autojs/autojs/ui/floating/OrientationAwareWindowBridge.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.floating; +package org.autojs.autojs.ui.floating; import android.content.Context; import android.content.res.Configuration; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/LayoutBoundsFloatyWindow.java b/app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/LayoutBoundsFloatyWindow.java similarity index 93% rename from app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/LayoutBoundsFloatyWindow.java rename to app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/LayoutBoundsFloatyWindow.java index b05503855..80ee1ff0c 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/LayoutBoundsFloatyWindow.java +++ b/app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/LayoutBoundsFloatyWindow.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.floating.layoutinspector; +package org.autojs.autojs.ui.floating.layoutinspector; import android.content.Context; import android.view.ContextThemeWrapper; @@ -11,11 +11,11 @@ import com.afollestad.materialdialogs.Theme; import com.stardust.app.DialogUtils; import com.stardust.enhancedfloaty.FloatyService; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.codegeneration.CodeGenerateDialog; -import com.stardust.scriptdroid.ui.floating.FullScreenFloatyWindow; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.codegeneration.CodeGenerateDialog; +import org.autojs.autojs.ui.floating.FullScreenFloatyWindow; import com.stardust.view.accessibility.NodeInfo; -import com.stardust.scriptdroid.ui.widget.BubblePopupMenu; +import org.autojs.autojs.ui.widget.BubblePopupMenu; import java.util.Arrays; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/LayoutBoundsView.java b/app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/LayoutBoundsView.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/LayoutBoundsView.java rename to app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/LayoutBoundsView.java index 049b89a20..ee9f547bb 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/LayoutBoundsView.java +++ b/app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/LayoutBoundsView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.floating.layoutinspector; +package org.autojs.autojs.ui.floating.layoutinspector; import android.content.Context; import android.graphics.Canvas; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/LayoutHierarchyFloatyWindow.java b/app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/LayoutHierarchyFloatyWindow.java similarity index 93% rename from app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/LayoutHierarchyFloatyWindow.java rename to app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/LayoutHierarchyFloatyWindow.java index 41f7e697e..e2519d919 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/LayoutHierarchyFloatyWindow.java +++ b/app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/LayoutHierarchyFloatyWindow.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.floating.layoutinspector; +package org.autojs.autojs.ui.floating.layoutinspector; import android.content.Context; import android.support.annotation.NonNull; @@ -12,11 +12,11 @@ import com.afollestad.materialdialogs.Theme; import com.stardust.app.DialogUtils; import com.stardust.enhancedfloaty.FloatyService; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.codegeneration.CodeGenerateDialog; -import com.stardust.scriptdroid.ui.floating.FullScreenFloatyWindow; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.codegeneration.CodeGenerateDialog; +import org.autojs.autojs.ui.floating.FullScreenFloatyWindow; import com.stardust.view.accessibility.NodeInfo; -import com.stardust.scriptdroid.ui.widget.BubblePopupMenu; +import org.autojs.autojs.ui.widget.BubblePopupMenu; import java.util.Arrays; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/LayoutHierarchyView.java b/app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/LayoutHierarchyView.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/LayoutHierarchyView.java rename to app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/LayoutHierarchyView.java index b35ae0ff9..24d3523d6 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/LayoutHierarchyView.java +++ b/app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/LayoutHierarchyView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.floating.layoutinspector; +package org.autojs.autojs.ui.floating.layoutinspector; import android.content.Context; import android.graphics.Canvas; @@ -13,10 +13,10 @@ import android.widget.ListView; import android.widget.TextView; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.R; import com.stardust.view.accessibility.NodeInfo; import com.stardust.util.ViewUtil; -import com.stardust.scriptdroid.ui.widget.LevelBeamView; +import org.autojs.autojs.ui.widget.LevelBeamView; import java.util.Collections; import java.util.HashSet; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/NodeInfoView.java b/app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/NodeInfoView.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/NodeInfoView.java rename to app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/NodeInfoView.java index a6ab85208..eb46ff029 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/NodeInfoView.java +++ b/app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/NodeInfoView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.floating.layoutinspector; +package org.autojs.autojs.ui.floating.layoutinspector; import android.content.Context; import android.support.annotation.Nullable; @@ -11,7 +11,7 @@ import android.widget.TextView; import android.widget.Toast; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.R; import com.stardust.view.accessibility.NodeInfo; import com.stardust.util.ClipboardUtil; import com.yqritc.recyclerviewflexibledivider.HorizontalDividerItemDecoration; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/OnNodeInfoSelectListener.java b/app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/OnNodeInfoSelectListener.java similarity index 74% rename from app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/OnNodeInfoSelectListener.java rename to app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/OnNodeInfoSelectListener.java index be787a54d..6ce11fad2 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/floating/layoutinspector/OnNodeInfoSelectListener.java +++ b/app/src/main/java/org/autojs/autojs/ui/floating/layoutinspector/OnNodeInfoSelectListener.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.floating.layoutinspector; +package org.autojs.autojs.ui.floating.layoutinspector; import com.stardust.view.accessibility.NodeInfo; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/log/LogActivity.java b/app/src/main/java/org/autojs/autojs/ui/log/LogActivity.java similarity index 87% rename from app/src/main/java/com/stardust/scriptdroid/ui/log/LogActivity.java rename to app/src/main/java/org/autojs/autojs/ui/log/LogActivity.java index 5fec53aec..26257c118 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/log/LogActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/log/LogActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.log; +package org.autojs.autojs.ui.log; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; @@ -9,9 +9,9 @@ import com.stardust.autojs.core.console.ConsoleView; import com.stardust.autojs.core.console.StardustConsole; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.autojs.AutoJs; -import com.stardust.scriptdroid.ui.BaseActivity; +import org.autojs.autojs.R; +import org.autojs.autojs.autojs.AutoJs; +import org.autojs.autojs.ui.BaseActivity; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.Click; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/FloatingActionMenu.java b/app/src/main/java/org/autojs/autojs/ui/main/FloatingActionMenu.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/FloatingActionMenu.java rename to app/src/main/java/org/autojs/autojs/ui/main/FloatingActionMenu.java index 530bac413..0644083ef 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/FloatingActionMenu.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/FloatingActionMenu.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.main; +package org.autojs.autojs.ui.main; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; @@ -15,8 +15,8 @@ import android.widget.FrameLayout; import android.widget.TextView; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.common.ScriptOperations; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.common.ScriptOperations; import io.reactivex.Observable; import io.reactivex.subjects.PublishSubject; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/MainActivity.java b/app/src/main/java/org/autojs/autojs/ui/main/MainActivity.java similarity index 90% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/MainActivity.java rename to app/src/main/java/org/autojs/autojs/ui/main/MainActivity.java index d4b64ac9e..415d4d8b3 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/MainActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/MainActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.main; +package org.autojs.autojs.ui.main; import android.Manifest; import android.content.Intent; @@ -22,28 +22,28 @@ import com.stardust.app.OnActivityResultDelegate; import com.stardust.enhancedfloaty.FloatyService; import com.stardust.pio.PFiles; -import com.stardust.scriptdroid.BuildConfig; -import com.stardust.scriptdroid.Pref; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.autojs.AutoJs; -import com.stardust.scriptdroid.storage.file.StorageFileProvider; -import com.stardust.scriptdroid.tool.AccessibilityServiceTool; -import com.stardust.scriptdroid.ui.BaseActivity; -import com.stardust.scriptdroid.ui.common.NotAskAgainDialog; -import com.stardust.scriptdroid.ui.doc.DocsFragment_; -import com.stardust.scriptdroid.ui.floating.FloatyWindowManger; -import com.stardust.scriptdroid.ui.log.LogActivity_; -import com.stardust.scriptdroid.ui.main.community.CommunityFragment; -import com.stardust.scriptdroid.ui.main.community.CommunityFragment_; -import com.stardust.scriptdroid.ui.main.sample.SampleListFragment_; -import com.stardust.scriptdroid.ui.main.scripts.MyScriptListFragment_; -import com.stardust.scriptdroid.ui.main.task.TaskManagerFragment_; -import com.stardust.scriptdroid.ui.settings.SettingsActivity_; -import com.stardust.scriptdroid.ui.update.VersionGuard; -import com.stardust.scriptdroid.ui.widget.CommonMarkdownView; -import com.stardust.scriptdroid.ui.widget.SearchViewItem; +import org.autojs.autojs.BuildConfig; +import org.autojs.autojs.Pref; +import org.autojs.autojs.R; +import org.autojs.autojs.autojs.AutoJs; +import org.autojs.autojs.storage.file.StorageFileProvider; +import org.autojs.autojs.tool.AccessibilityServiceTool; +import org.autojs.autojs.ui.BaseActivity; +import org.autojs.autojs.ui.common.NotAskAgainDialog; +import org.autojs.autojs.ui.doc.DocsFragment_; +import org.autojs.autojs.ui.floating.FloatyWindowManger; +import org.autojs.autojs.ui.log.LogActivity_; +import org.autojs.autojs.ui.main.community.CommunityFragment; +import org.autojs.autojs.ui.main.community.CommunityFragment_; +import org.autojs.autojs.ui.main.sample.SampleListFragment_; +import org.autojs.autojs.ui.main.scripts.MyScriptListFragment_; +import org.autojs.autojs.ui.main.task.TaskManagerFragment_; +import org.autojs.autojs.ui.settings.SettingsActivity_; +import org.autojs.autojs.ui.update.VersionGuard; +import org.autojs.autojs.ui.widget.CommonMarkdownView; +import org.autojs.autojs.ui.widget.SearchViewItem; import com.stardust.theme.ThemeColorManager; -import com.stardust.theme.dialog.ThemeColorMaterialDialogBuilder; +import org.autojs.autojs.theme.dialog.ThemeColorMaterialDialogBuilder; import com.stardust.util.BackPressedHandler; import com.stardust.util.DeveloperUtils; import com.stardust.util.DrawerAutoClose; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/QueryEvent.java b/app/src/main/java/org/autojs/autojs/ui/main/QueryEvent.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/QueryEvent.java rename to app/src/main/java/org/autojs/autojs/ui/main/QueryEvent.java index ba35be50a..efe20d430 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/QueryEvent.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/QueryEvent.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.main; +package org.autojs.autojs.ui.main; /** * Created by Stardust on 2017/10/25. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/ViewPagerFragment.java b/app/src/main/java/org/autojs/autojs/ui/main/ViewPagerFragment.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/ViewPagerFragment.java rename to app/src/main/java/org/autojs/autojs/ui/main/ViewPagerFragment.java index e573c630e..4649dc027 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/ViewPagerFragment.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/ViewPagerFragment.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.main; +package org.autojs.autojs.ui.main; import android.support.annotation.CallSuper; import android.support.design.widget.FloatingActionButton; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/community/CommunityFragment.java b/app/src/main/java/org/autojs/autojs/ui/main/community/CommunityFragment.java similarity index 94% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/community/CommunityFragment.java rename to app/src/main/java/org/autojs/autojs/ui/main/community/CommunityFragment.java index 113bbbcd1..203180e1d 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/community/CommunityFragment.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/community/CommunityFragment.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.main.community; +package org.autojs.autojs.ui.main.community; import android.app.Activity; import android.os.Bundle; @@ -6,10 +6,10 @@ import android.support.design.widget.FloatingActionButton; import android.webkit.WebView; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.network.NodeBB; -import com.stardust.scriptdroid.ui.main.QueryEvent; -import com.stardust.scriptdroid.ui.main.ViewPagerFragment; +import org.autojs.autojs.R; +import org.autojs.autojs.network.NodeBB; +import org.autojs.autojs.ui.main.QueryEvent; +import org.autojs.autojs.ui.main.ViewPagerFragment; import com.stardust.util.BackPressedHandler; import org.androidannotations.annotations.AfterViews; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/community/CommunityWebView.java b/app/src/main/java/org/autojs/autojs/ui/main/community/CommunityWebView.java similarity index 88% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/community/CommunityWebView.java rename to app/src/main/java/org/autojs/autojs/ui/main/community/CommunityWebView.java index 886c09d5a..c910532a6 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/community/CommunityWebView.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/community/CommunityWebView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.main.community; +package org.autojs.autojs.ui.main.community; import android.content.Context; import android.net.Uri; @@ -9,15 +9,15 @@ import android.webkit.ValueCallback; import android.webkit.WebView; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.network.NodeBB; -import com.stardust.scriptdroid.storage.file.StorageFileProvider; -import com.stardust.scriptdroid.model.script.Scripts; -import com.stardust.scriptdroid.network.download.DownloadManager; -import com.stardust.scriptdroid.ui.common.OptionListView; -import com.stardust.scriptdroid.ui.common.ScriptOperations; -import com.stardust.scriptdroid.ui.filechooser.FileChooserDialogBuilder; -import com.stardust.scriptdroid.ui.widget.EWebView; +import org.autojs.autojs.R; +import org.autojs.autojs.network.NodeBB; +import org.autojs.autojs.storage.file.StorageFileProvider; +import org.autojs.autojs.model.script.Scripts; +import org.autojs.autojs.network.download.DownloadManager; +import org.autojs.autojs.ui.common.OptionListView; +import org.autojs.autojs.ui.common.ScriptOperations; +import org.autojs.autojs.ui.filechooser.FileChooserDialogBuilder; +import org.autojs.autojs.ui.widget.EWebView; import java.util.regex.Pattern; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/CommunityDrawerMenu.java b/app/src/main/java/org/autojs/autojs/ui/main/drawer/CommunityDrawerMenu.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/CommunityDrawerMenu.java rename to app/src/main/java/org/autojs/autojs/ui/main/drawer/CommunityDrawerMenu.java index 210eca240..66f543421 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/CommunityDrawerMenu.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/drawer/CommunityDrawerMenu.java @@ -1,9 +1,9 @@ -package com.stardust.scriptdroid.ui.main.drawer; +package org.autojs.autojs.ui.main.drawer; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.network.UserService; -import com.stardust.scriptdroid.network.entity.notification.Notification; -import com.stardust.scriptdroid.ui.main.community.CommunityFragment; +import org.autojs.autojs.R; +import org.autojs.autojs.network.UserService; +import org.autojs.autojs.network.entity.notification.Notification; +import org.autojs.autojs.ui.main.community.CommunityFragment; import org.greenrobot.eventbus.EventBus; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerFragment.java b/app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerFragment.java similarity index 91% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerFragment.java rename to app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerFragment.java index 454442df3..595de0a2c 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerFragment.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerFragment.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.main.drawer; +package org.autojs.autojs.ui.main.drawer; import android.content.Intent; import android.graphics.drawable.Drawable; @@ -9,7 +9,6 @@ import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.text.TextUtils; -import android.util.Log; import android.view.View; import android.widget.TextView; import android.widget.Toast; @@ -20,35 +19,34 @@ import com.bumptech.glide.request.transition.Transition; import com.stardust.app.GlobalAppContext; import com.stardust.notification.NotificationListenerService; -import com.stardust.scriptdroid.App; -import com.stardust.scriptdroid.Pref; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.network.GlideApp; -import com.stardust.scriptdroid.network.UserService; -import com.stardust.scriptdroid.pluginclient.DevPluginClient; -import com.stardust.scriptdroid.ui.common.NotAskAgainDialog; -import com.stardust.scriptdroid.ui.floating.CircularMenu; -import com.stardust.scriptdroid.ui.floating.FloatyWindowManger; -import com.stardust.scriptdroid.network.NodeBB; -import com.stardust.scriptdroid.network.VersionService; -import com.stardust.scriptdroid.network.api.UserApi; -import com.stardust.scriptdroid.network.entity.user.User; -import com.stardust.scriptdroid.network.entity.VersionInfo; -import com.stardust.scriptdroid.tool.SimpleObserver; -import com.stardust.scriptdroid.ui.main.MainActivity; -import com.stardust.scriptdroid.ui.main.community.CommunityFragment; -import com.stardust.scriptdroid.ui.user.LoginActivity_; -import com.stardust.scriptdroid.ui.settings.SettingsActivity; -import com.stardust.scriptdroid.ui.update.UpdateInfoDialogBuilder; -import com.stardust.scriptdroid.ui.user.WebActivity; -import com.stardust.scriptdroid.ui.user.WebActivity_; -import com.stardust.scriptdroid.ui.widget.AvatarView; +import org.autojs.autojs.Pref; +import org.autojs.autojs.R; +import org.autojs.autojs.network.GlideApp; +import org.autojs.autojs.network.UserService; +import org.autojs.autojs.pluginclient.DevPluginClient; +import org.autojs.autojs.ui.common.NotAskAgainDialog; +import org.autojs.autojs.ui.floating.CircularMenu; +import org.autojs.autojs.ui.floating.FloatyWindowManger; +import org.autojs.autojs.network.NodeBB; +import org.autojs.autojs.network.VersionService; +import org.autojs.autojs.network.api.UserApi; +import org.autojs.autojs.network.entity.user.User; +import org.autojs.autojs.network.entity.VersionInfo; +import org.autojs.autojs.tool.SimpleObserver; +import org.autojs.autojs.ui.main.MainActivity; +import org.autojs.autojs.ui.main.community.CommunityFragment; +import org.autojs.autojs.ui.user.LoginActivity_; +import org.autojs.autojs.ui.settings.SettingsActivity; +import org.autojs.autojs.ui.update.UpdateInfoDialogBuilder; +import org.autojs.autojs.ui.user.WebActivity; +import org.autojs.autojs.ui.user.WebActivity_; +import org.autojs.autojs.ui.widget.AvatarView; import com.stardust.theme.ThemeColorManager; -import com.stardust.theme.ThemeColorManagerCompat; +import org.autojs.autojs.theme.ThemeColorManagerCompat; import com.stardust.view.accessibility.AccessibilityService; -import com.stardust.scriptdroid.pluginclient.DevPluginService; -import com.stardust.scriptdroid.tool.AccessibilityServiceTool; -import com.stardust.scriptdroid.tool.WifiTool; +import org.autojs.autojs.pluginclient.DevPluginService; +import org.autojs.autojs.tool.AccessibilityServiceTool; +import org.autojs.autojs.tool.WifiTool; import com.stardust.util.IntentUtil; import org.androidannotations.annotations.AfterViews; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerMenuAdapter.java b/app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerMenuAdapter.java similarity index 92% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerMenuAdapter.java rename to app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerMenuAdapter.java index 06ede40ce..c8e0c4ad6 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerMenuAdapter.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerMenuAdapter.java @@ -1,11 +1,11 @@ -package com.stardust.scriptdroid.ui.main.drawer; +package org.autojs.autojs.ui.main.drawer; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.ViewGroup; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.widget.BindableViewHolder; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.widget.BindableViewHolder; import java.util.ArrayList; import java.util.List; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerMenuGroup.java b/app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerMenuGroup.java similarity index 78% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerMenuGroup.java rename to app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerMenuGroup.java index a8f162924..b9cbd879e 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerMenuGroup.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerMenuGroup.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.main.drawer; +package org.autojs.autojs.ui.main.drawer; /** * Created by Stardust on 2017/8/25. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerMenuGroupViewHolder.java b/app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerMenuGroupViewHolder.java similarity index 83% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerMenuGroupViewHolder.java rename to app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerMenuGroupViewHolder.java index e984580d7..71530dcfa 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerMenuGroupViewHolder.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerMenuGroupViewHolder.java @@ -1,11 +1,11 @@ -package com.stardust.scriptdroid.ui.main.drawer; +package org.autojs.autojs.ui.main.drawer; import android.support.v7.widget.RecyclerView; import android.view.View; import android.widget.TextView; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.widget.BindableViewHolder; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.widget.BindableViewHolder; /** * Created by Stardust on 2017/12/10. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerMenuItem.java b/app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerMenuItem.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerMenuItem.java rename to app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerMenuItem.java index eeae49f87..05fc5b641 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerMenuItem.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerMenuItem.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.main.drawer; +package org.autojs.autojs.ui.main.drawer; /** * Created by Stardust on 2017/8/25. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerMenuItemViewHolder.java b/app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerMenuItemViewHolder.java similarity index 93% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerMenuItemViewHolder.java rename to app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerMenuItemViewHolder.java index 0fbf9c8dc..3c0146552 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/drawer/DrawerMenuItemViewHolder.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/drawer/DrawerMenuItemViewHolder.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.main.drawer; +package org.autojs.autojs.ui.main.drawer; import android.content.pm.PackageManager; import android.view.View; @@ -7,10 +7,10 @@ import android.widget.TextView; import android.widget.Toast; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.widget.BindableViewHolder; -import com.stardust.scriptdroid.ui.widget.PrefSwitch; -import com.stardust.scriptdroid.ui.widget.SwitchCompat; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.widget.BindableViewHolder; +import org.autojs.autojs.ui.widget.PrefSwitch; +import org.autojs.autojs.ui.widget.SwitchCompat; import butterknife.BindView; import butterknife.ButterKnife; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/sample/SampleListFragment.java b/app/src/main/java/org/autojs/autojs/ui/main/sample/SampleListFragment.java similarity index 86% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/sample/SampleListFragment.java rename to app/src/main/java/org/autojs/autojs/ui/main/sample/SampleListFragment.java index e3178ce38..7a550b51b 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/sample/SampleListFragment.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/sample/SampleListFragment.java @@ -1,16 +1,16 @@ -package com.stardust.scriptdroid.ui.main.sample; +package org.autojs.autojs.ui.main.sample; import android.app.Activity; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.design.widget.FloatingActionButton; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.storage.file.SampleFileProvider; -import com.stardust.scriptdroid.model.script.Scripts; -import com.stardust.scriptdroid.ui.main.QueryEvent; -import com.stardust.scriptdroid.ui.main.ViewPagerFragment; -import com.stardust.scriptdroid.ui.main.scripts.ScriptListView; +import org.autojs.autojs.R; +import org.autojs.autojs.storage.file.SampleFileProvider; +import org.autojs.autojs.model.script.Scripts; +import org.autojs.autojs.ui.main.QueryEvent; +import org.autojs.autojs.ui.main.ViewPagerFragment; +import org.autojs.autojs.ui.main.scripts.ScriptListView; import com.stardust.util.BackPressedHandler; import org.androidannotations.annotations.AfterViews; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/sample/SampleListView.java b/app/src/main/java/org/autojs/autojs/ui/main/sample/SampleListView.java similarity index 91% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/sample/SampleListView.java rename to app/src/main/java/org/autojs/autojs/ui/main/sample/SampleListView.java index d4d3997cc..09647c569 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/sample/SampleListView.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/sample/SampleListView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.main.sample; +package org.autojs.autojs.ui.main.sample; import android.content.Context; import android.graphics.drawable.GradientDrawable; @@ -14,13 +14,13 @@ import android.widget.TextView; import com.stardust.pio.PFiles; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.storage.file.SampleFileProvider; -import com.stardust.scriptdroid.model.script.ScriptFile; -import com.stardust.scriptdroid.model.script.Scripts; -import com.stardust.scriptdroid.ui.common.ScriptOperations; -import com.stardust.scriptdroid.ui.main.scripts.ScriptListView; -import com.stardust.scriptdroid.ui.widget.BindableViewHolder; +import org.autojs.autojs.R; +import org.autojs.autojs.storage.file.SampleFileProvider; +import org.autojs.autojs.model.script.ScriptFile; +import org.autojs.autojs.model.script.Scripts; +import org.autojs.autojs.ui.common.ScriptOperations; +import org.autojs.autojs.ui.main.scripts.ScriptListView; +import org.autojs.autojs.ui.widget.BindableViewHolder; import java.io.File; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/scripts/MyScriptListFragment.java b/app/src/main/java/org/autojs/autojs/ui/main/scripts/MyScriptListFragment.java similarity index 90% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/scripts/MyScriptListFragment.java rename to app/src/main/java/org/autojs/autojs/ui/main/scripts/MyScriptListFragment.java index cb0183b0d..4b2e69da8 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/scripts/MyScriptListFragment.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/scripts/MyScriptListFragment.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.main.scripts; +package org.autojs.autojs.ui.main.scripts; import android.app.Activity; import android.os.Bundle; @@ -7,16 +7,16 @@ import android.support.design.widget.FloatingActionButton; import com.stardust.autojs.script.AutoFileSource; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.model.script.ScriptFile; -import com.stardust.scriptdroid.model.script.Scripts; -import com.stardust.scriptdroid.storage.file.StorageFileProvider; -import com.stardust.scriptdroid.tool.SimpleObserver; -import com.stardust.scriptdroid.ui.common.ScriptOperations; -import com.stardust.scriptdroid.ui.main.FloatingActionMenu; -import com.stardust.scriptdroid.ui.main.QueryEvent; -import com.stardust.scriptdroid.ui.main.ViewPagerFragment; -import com.stardust.scriptdroid.ui.viewmodel.ScriptList; +import org.autojs.autojs.R; +import org.autojs.autojs.model.script.ScriptFile; +import org.autojs.autojs.model.script.Scripts; +import org.autojs.autojs.storage.file.StorageFileProvider; +import org.autojs.autojs.tool.SimpleObserver; +import org.autojs.autojs.ui.common.ScriptOperations; +import org.autojs.autojs.ui.main.FloatingActionMenu; +import org.autojs.autojs.ui.main.QueryEvent; +import org.autojs.autojs.ui.main.ViewPagerFragment; +import org.autojs.autojs.ui.viewmodel.ScriptList; import com.stardust.util.BackPressedHandler; import org.androidannotations.annotations.AfterViews; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/scripts/ScriptListView.java b/app/src/main/java/org/autojs/autojs/ui/main/scripts/ScriptListView.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/scripts/ScriptListView.java rename to app/src/main/java/org/autojs/autojs/ui/main/scripts/ScriptListView.java index e35046717..3d1bba9d4 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/scripts/ScriptListView.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/scripts/ScriptListView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.main.scripts; +package org.autojs.autojs.ui.main.scripts; import android.content.Context; import android.graphics.drawable.GradientDrawable; @@ -18,17 +18,17 @@ import com.stardust.pio.PFile; import com.stardust.pio.PFiles; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.model.script.ScriptFile; -import com.stardust.scriptdroid.model.script.Scripts; -import com.stardust.scriptdroid.storage.file.StorageFileProvider; -import com.stardust.scriptdroid.ui.build.BuildActivity; -import com.stardust.scriptdroid.ui.build.BuildActivity_; -import com.stardust.scriptdroid.ui.common.ScriptLoopDialog; -import com.stardust.scriptdroid.ui.common.ScriptOperations; -import com.stardust.scriptdroid.ui.viewmodel.ScriptList; -import com.stardust.scriptdroid.ui.widget.BindableViewHolder; -import com.stardust.theme.widget.ThemeColorSwipeRefreshLayout; +import org.autojs.autojs.R; +import org.autojs.autojs.model.script.ScriptFile; +import org.autojs.autojs.model.script.Scripts; +import org.autojs.autojs.storage.file.StorageFileProvider; +import org.autojs.autojs.ui.build.BuildActivity; +import org.autojs.autojs.ui.build.BuildActivity_; +import org.autojs.autojs.ui.common.ScriptLoopDialog; +import org.autojs.autojs.ui.common.ScriptOperations; +import org.autojs.autojs.ui.viewmodel.ScriptList; +import org.autojs.autojs.ui.widget.BindableViewHolder; +import org.autojs.autojs.theme.widget.ThemeColorSwipeRefreshLayout; import org.greenrobot.eventbus.Subscribe; @@ -341,7 +341,7 @@ public void onBindViewHolder(BindableViewHolder holder, int position) { int positionOfCategoryFile = positionOfCategoryFile(); BindableViewHolder bindableViewHolder = (BindableViewHolder) holder; if (position == positionOfCategoryDir || position == positionOfCategoryFile) { - // FIXME: 2017/10/20 java.lang.ClassCastException: java.lang.Boolean cannot be cast to com.stardust.scriptdroid.model.script.ScriptFile + // FIXME: 2017/10/20 java.lang.ClassCastException: java.lang.Boolean cannot be cast to org.autojs.autojs.model.script.ScriptFile bindableViewHolder.bind(position == positionOfCategoryDir, position); return; } diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/task/Task.java b/app/src/main/java/org/autojs/autojs/ui/main/task/Task.java similarity index 93% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/task/Task.java rename to app/src/main/java/org/autojs/autojs/ui/main/task/Task.java index c6f86a7dd..9e59665cf 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/task/Task.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/task/Task.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.main.task; +package org.autojs.autojs.ui.main.task; import android.os.Parcel; import android.os.Parcelable; @@ -12,10 +12,10 @@ import com.stardust.autojs.script.ScriptSource; import com.stardust.pio.PFile; import com.stardust.pio.PFiles; -import com.stardust.scriptdroid.App; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.timing.TimedTask; -import com.stardust.scriptdroid.timing.TimedTaskManager; +import org.autojs.autojs.App; +import org.autojs.autojs.R; +import org.autojs.autojs.timing.TimedTask; +import org.autojs.autojs.timing.TimedTaskManager; import org.joda.time.format.DateTimeFormat; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/task/TaskGroup.java b/app/src/main/java/org/autojs/autojs/ui/main/task/TaskGroup.java similarity index 93% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/task/TaskGroup.java rename to app/src/main/java/org/autojs/autojs/ui/main/task/TaskGroup.java index f3e853183..2ff280011 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/task/TaskGroup.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/task/TaskGroup.java @@ -1,13 +1,13 @@ -package com.stardust.scriptdroid.ui.main.task; +package org.autojs.autojs.ui.main.task; import android.content.Context; import com.bignerdranch.expandablerecyclerview.model.Parent; import com.stardust.autojs.engine.ScriptEngine; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.autojs.AutoJs; -import com.stardust.scriptdroid.timing.TimedTask; -import com.stardust.scriptdroid.timing.TimedTaskManager; +import org.autojs.autojs.R; +import org.autojs.autojs.autojs.AutoJs; +import org.autojs.autojs.timing.TimedTask; +import org.autojs.autojs.timing.TimedTaskManager; import java.util.ArrayList; import java.util.List; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/task/TaskListRecyclerView.java b/app/src/main/java/org/autojs/autojs/ui/main/task/TaskListRecyclerView.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/task/TaskListRecyclerView.java rename to app/src/main/java/org/autojs/autojs/ui/main/task/TaskListRecyclerView.java index 96152dacd..b716490f8 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/task/TaskListRecyclerView.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/task/TaskListRecyclerView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.main.task; +package org.autojs.autojs.ui.main.task; import android.content.Context; import android.graphics.drawable.GradientDrawable; @@ -25,13 +25,13 @@ import com.stardust.autojs.execution.SimpleScriptExecutionListener; import com.stardust.autojs.engine.ScriptEngine; import com.stardust.autojs.script.AutoFileSource; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.autojs.AutoJs; -import com.stardust.scriptdroid.storage.database.ModelChange; -import com.stardust.scriptdroid.timing.TaskReceiver; -import com.stardust.scriptdroid.timing.TimedTask; -import com.stardust.scriptdroid.timing.TimedTaskManager; -import com.stardust.scriptdroid.ui.timing.TimedTaskSettingActivity_; +import org.autojs.autojs.R; +import org.autojs.autojs.autojs.AutoJs; +import org.autojs.autojs.storage.database.ModelChange; +import org.autojs.autojs.timing.TaskReceiver; +import org.autojs.autojs.timing.TimedTask; +import org.autojs.autojs.timing.TimedTaskManager; +import org.autojs.autojs.ui.timing.TimedTaskSettingActivity_; import com.yqritc.recyclerviewflexibledivider.HorizontalDividerItemDecoration; import java.util.ArrayList; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/main/task/TaskManagerFragment.java b/app/src/main/java/org/autojs/autojs/ui/main/task/TaskManagerFragment.java similarity index 89% rename from app/src/main/java/com/stardust/scriptdroid/ui/main/task/TaskManagerFragment.java rename to app/src/main/java/org/autojs/autojs/ui/main/task/TaskManagerFragment.java index 494ca5fdc..e0e8f293d 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/main/task/TaskManagerFragment.java +++ b/app/src/main/java/org/autojs/autojs/ui/main/task/TaskManagerFragment.java @@ -1,14 +1,14 @@ -package com.stardust.scriptdroid.ui.main.task; +package org.autojs.autojs.ui.main.task; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.v4.widget.SwipeRefreshLayout; import android.view.View; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.autojs.AutoJs; -import com.stardust.scriptdroid.ui.main.ViewPagerFragment; -import com.stardust.scriptdroid.ui.widget.SimpleAdapterDataObserver; +import org.autojs.autojs.R; +import org.autojs.autojs.autojs.AutoJs; +import org.autojs.autojs.ui.main.ViewPagerFragment; +import org.autojs.autojs.ui.widget.SimpleAdapterDataObserver; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.EFragment; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/settings/AboutActivity.java b/app/src/main/java/org/autojs/autojs/ui/settings/AboutActivity.java similarity index 80% rename from app/src/main/java/com/stardust/scriptdroid/ui/settings/AboutActivity.java rename to app/src/main/java/org/autojs/autojs/ui/settings/AboutActivity.java index 997e71085..a3e6cbfdd 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/settings/AboutActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/settings/AboutActivity.java @@ -1,23 +1,16 @@ -package com.stardust.scriptdroid.ui.settings; +package org.autojs.autojs.ui.settings; import android.annotation.SuppressLint; -import android.support.annotation.NonNull; -import android.util.Log; -import android.view.View; -import android.view.accessibility.AccessibilityNodeInfo; import android.widget.TextView; import android.widget.Toast; -import com.afollestad.materialdialogs.DialogAction; import com.afollestad.materialdialogs.MaterialDialog; -import com.stardust.automator.UiObject; -import com.stardust.view.accessibility.AccessibilityService; -import com.stardust.scriptdroid.tool.IntentTool; -import com.stardust.scriptdroid.ui.BaseActivity; -import com.stardust.theme.dialog.ThemeColorMaterialDialogBuilder; +import org.autojs.autojs.tool.IntentTool; +import org.autojs.autojs.ui.BaseActivity; +import org.autojs.autojs.theme.dialog.ThemeColorMaterialDialogBuilder; import com.stardust.util.IntentUtil; -import com.stardust.scriptdroid.BuildConfig; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.BuildConfig; +import org.autojs.autojs.R; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.Click; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/settings/SettingsActivity.java b/app/src/main/java/org/autojs/autojs/ui/settings/SettingsActivity.java similarity index 94% rename from app/src/main/java/com/stardust/scriptdroid/ui/settings/SettingsActivity.java rename to app/src/main/java/org/autojs/autojs/ui/settings/SettingsActivity.java index d10518fed..0d1b15b2e 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/settings/SettingsActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/settings/SettingsActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.settings; +package org.autojs.autojs.ui.settings; import android.content.Context; import android.content.Intent; @@ -10,16 +10,16 @@ import android.view.View; import android.widget.Toast; -import com.stardust.scriptdroid.network.VersionService; -import com.stardust.scriptdroid.ui.BaseActivity; -import com.stardust.scriptdroid.ui.error.IssueReporterActivity; -import com.stardust.scriptdroid.ui.splash.SplashActivity; -import com.stardust.scriptdroid.ui.splash.SplashActivity_; -import com.stardust.scriptdroid.ui.update.UpdateCheckDialog; +import org.autojs.autojs.network.VersionService; +import org.autojs.autojs.ui.BaseActivity; +import org.autojs.autojs.ui.error.IssueReporterActivity; +import org.autojs.autojs.ui.splash.SplashActivity; +import org.autojs.autojs.ui.splash.SplashActivity_; +import org.autojs.autojs.ui.update.UpdateCheckDialog; import com.stardust.theme.preference.ThemeColorPreferenceFragment; import com.stardust.util.IntentUtil; import com.stardust.util.MapEntries; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.R; import com.stardust.theme.app.ColorSelectActivity; import com.stardust.theme.util.ListBuilder; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/settings/TestSurfaceView.java b/app/src/main/java/org/autojs/autojs/ui/settings/TestSurfaceView.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/ui/settings/TestSurfaceView.java rename to app/src/main/java/org/autojs/autojs/ui/settings/TestSurfaceView.java index d926d56a4..fbd49a635 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/settings/TestSurfaceView.java +++ b/app/src/main/java/org/autojs/autojs/ui/settings/TestSurfaceView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.settings; +package org.autojs.autojs.ui.settings; import android.content.Context; import android.graphics.Canvas; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/shortcut/ShortcutCreateActivity.java b/app/src/main/java/org/autojs/autojs/ui/shortcut/ShortcutCreateActivity.java similarity index 90% rename from app/src/main/java/com/stardust/scriptdroid/ui/shortcut/ShortcutCreateActivity.java rename to app/src/main/java/org/autojs/autojs/ui/shortcut/ShortcutCreateActivity.java index 0f44ce1cf..b7a3bc08d 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/shortcut/ShortcutCreateActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/shortcut/ShortcutCreateActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.shortcut; +package org.autojs.autojs.ui.shortcut; import android.content.Intent; import android.content.pm.PackageManager; @@ -17,14 +17,14 @@ import android.widget.ImageView; import android.widget.TextView; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.external.ScriptIntents; -import com.stardust.scriptdroid.external.shortcut.Shortcut; -import com.stardust.scriptdroid.external.shortcut.ShortcutActivity; -import com.stardust.scriptdroid.external.shortcut.ShortcutManager; -import com.stardust.scriptdroid.model.script.ScriptFile; -import com.stardust.scriptdroid.tool.BitmapTool; -import com.stardust.theme.dialog.ThemeColorMaterialDialogBuilder; +import org.autojs.autojs.R; +import org.autojs.autojs.external.ScriptIntents; +import org.autojs.autojs.external.shortcut.Shortcut; +import org.autojs.autojs.external.shortcut.ShortcutActivity; +import org.autojs.autojs.external.shortcut.ShortcutManager; +import org.autojs.autojs.model.script.ScriptFile; +import org.autojs.autojs.tool.BitmapTool; +import org.autojs.autojs.theme.dialog.ThemeColorMaterialDialogBuilder; import butterknife.BindView; import butterknife.ButterKnife; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/shortcut/ShortcutIconSelectActivity.java b/app/src/main/java/org/autojs/autojs/ui/shortcut/ShortcutIconSelectActivity.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/ui/shortcut/ShortcutIconSelectActivity.java rename to app/src/main/java/org/autojs/autojs/ui/shortcut/ShortcutIconSelectActivity.java index f521a6fad..0cb1968f8 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/shortcut/ShortcutIconSelectActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/shortcut/ShortcutIconSelectActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.shortcut; +package org.autojs.autojs.ui.shortcut; import android.content.Context; import android.content.Intent; @@ -15,8 +15,8 @@ import android.view.ViewGroup; import android.widget.ImageView; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.BaseActivity; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.BaseActivity; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.EActivity; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/splash/SplashActivity.java b/app/src/main/java/org/autojs/autojs/ui/splash/SplashActivity.java similarity index 93% rename from app/src/main/java/com/stardust/scriptdroid/ui/splash/SplashActivity.java rename to app/src/main/java/org/autojs/autojs/ui/splash/SplashActivity.java index a5ab70ae9..c1ca441a5 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/splash/SplashActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/splash/SplashActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.splash; +package org.autojs.autojs.ui.splash; import android.os.Bundle; import android.support.annotation.NonNull; @@ -14,12 +14,12 @@ import com.google.android.gms.ads.AdSize; import com.google.android.gms.ads.AdView; import com.google.android.gms.ads.InterstitialAd; -import com.stardust.scriptdroid.BuildConfig; -import com.stardust.scriptdroid.Constants; -import com.stardust.scriptdroid.Pref; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.BaseActivity; -import com.stardust.scriptdroid.ui.main.MainActivity_; +import org.autojs.autojs.BuildConfig; +import org.autojs.autojs.Constants; +import org.autojs.autojs.Pref; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.BaseActivity; +import org.autojs.autojs.ui.main.MainActivity_; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.Click; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/timing/TimedTaskSettingActivity.java b/app/src/main/java/org/autojs/autojs/ui/timing/TimedTaskSettingActivity.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/ui/timing/TimedTaskSettingActivity.java rename to app/src/main/java/org/autojs/autojs/ui/timing/TimedTaskSettingActivity.java index ebdf393fe..03b69a60d 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/timing/TimedTaskSettingActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/timing/TimedTaskSettingActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.timing; +package org.autojs.autojs.ui.timing; import android.app.DatePickerDialog; import android.app.TimePickerDialog; @@ -22,13 +22,13 @@ import com.github.aakira.expandablelayout.ExpandableRelativeLayout; import com.stardust.autojs.execution.ExecutionConfig; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.external.ScriptIntents; -import com.stardust.scriptdroid.model.script.ScriptFile; -import com.stardust.scriptdroid.timing.TaskReceiver; -import com.stardust.scriptdroid.timing.TimedTask; -import com.stardust.scriptdroid.timing.TimedTaskManager; -import com.stardust.scriptdroid.ui.BaseActivity; +import org.autojs.autojs.R; +import org.autojs.autojs.external.ScriptIntents; +import org.autojs.autojs.model.script.ScriptFile; +import org.autojs.autojs.timing.TaskReceiver; +import org.autojs.autojs.timing.TimedTask; +import org.autojs.autojs.timing.TimedTaskManager; +import org.autojs.autojs.ui.BaseActivity; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.CheckedChange; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/update/UpdateCheckDialog.java b/app/src/main/java/org/autojs/autojs/ui/update/UpdateCheckDialog.java similarity index 86% rename from app/src/main/java/com/stardust/scriptdroid/ui/update/UpdateCheckDialog.java rename to app/src/main/java/org/autojs/autojs/ui/update/UpdateCheckDialog.java index c815513ba..85951aef3 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/update/UpdateCheckDialog.java +++ b/app/src/main/java/org/autojs/autojs/ui/update/UpdateCheckDialog.java @@ -1,15 +1,15 @@ -package com.stardust.scriptdroid.ui.update; +package org.autojs.autojs.ui.update; import android.content.Context; import android.widget.Toast; import com.afollestad.materialdialogs.MaterialDialog; import com.stardust.app.GlobalAppContext; -import com.stardust.scriptdroid.App; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.network.VersionService; -import com.stardust.scriptdroid.network.entity.VersionInfo; -import com.stardust.scriptdroid.tool.SimpleObserver; +import org.autojs.autojs.App; +import org.autojs.autojs.R; +import org.autojs.autojs.network.VersionService; +import org.autojs.autojs.network.entity.VersionInfo; +import org.autojs.autojs.tool.SimpleObserver; import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.annotations.NonNull; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/update/UpdateInfoDialogBuilder.java b/app/src/main/java/org/autojs/autojs/ui/update/UpdateInfoDialogBuilder.java similarity index 93% rename from app/src/main/java/com/stardust/scriptdroid/ui/update/UpdateInfoDialogBuilder.java rename to app/src/main/java/org/autojs/autojs/ui/update/UpdateInfoDialogBuilder.java index 172110285..d3d477726 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/update/UpdateInfoDialogBuilder.java +++ b/app/src/main/java/org/autojs/autojs/ui/update/UpdateInfoDialogBuilder.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.update; +package org.autojs.autojs.ui.update; import android.content.Context; import android.content.SharedPreferences; @@ -14,14 +14,14 @@ import android.widget.Toast; import com.afollestad.materialdialogs.MaterialDialog; -import com.stardust.scriptdroid.BuildConfig; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.network.entity.VersionInfo; -import com.stardust.scriptdroid.storage.file.StorageFileProvider; -import com.stardust.scriptdroid.tool.IntentTool; +import org.autojs.autojs.BuildConfig; +import org.autojs.autojs.R; +import org.autojs.autojs.network.entity.VersionInfo; +import org.autojs.autojs.storage.file.StorageFileProvider; +import org.autojs.autojs.tool.IntentTool; import com.stardust.util.DownloadTask; import com.stardust.util.IntentUtil; -import com.stardust.scriptdroid.ui.widget.CommonMarkdownView; +import org.autojs.autojs.ui.widget.CommonMarkdownView; /** * Created by Stardust on 2017/4/9. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/update/VersionGuard.java b/app/src/main/java/org/autojs/autojs/ui/update/VersionGuard.java similarity index 89% rename from app/src/main/java/com/stardust/scriptdroid/ui/update/VersionGuard.java rename to app/src/main/java/org/autojs/autojs/ui/update/VersionGuard.java index 5fc8480fb..ac5529c03 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/update/VersionGuard.java +++ b/app/src/main/java/org/autojs/autojs/ui/update/VersionGuard.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.update; +package org.autojs.autojs.ui.update; import android.app.Activity; import android.content.DialogInterface; @@ -6,11 +6,11 @@ import com.afollestad.materialdialogs.DialogAction; import com.afollestad.materialdialogs.MaterialDialog; -import com.stardust.scriptdroid.BuildConfig; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.network.VersionService; -import com.stardust.scriptdroid.network.entity.VersionInfo; -import com.stardust.scriptdroid.tool.SimpleObserver; +import org.autojs.autojs.BuildConfig; +import org.autojs.autojs.R; +import org.autojs.autojs.network.VersionService; +import org.autojs.autojs.network.entity.VersionInfo; +import org.autojs.autojs.tool.SimpleObserver; import io.reactivex.functions.Consumer; @@ -53,7 +53,7 @@ public void onNext(@io.reactivex.annotations.NonNull VersionInfo versionInfo) { }); } - private void showUpdateInfoIfNeeded(com.stardust.scriptdroid.network.entity.VersionInfo info) { + private void showUpdateInfoIfNeeded(org.autojs.autojs.network.entity.VersionInfo info) { if (BuildConfig.VERSION_CODE < info.versionCode) { new UpdateInfoDialogBuilder(mActivity, info) .showDoNotAskAgain() diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/user/LoginActivity.java b/app/src/main/java/org/autojs/autojs/ui/user/LoginActivity.java similarity index 93% rename from app/src/main/java/com/stardust/scriptdroid/ui/user/LoginActivity.java rename to app/src/main/java/org/autojs/autojs/ui/user/LoginActivity.java index 4c7a228a5..d811567e0 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/user/LoginActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/user/LoginActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.user; +package org.autojs.autojs.ui.user; import android.content.Intent; import android.view.Menu; @@ -8,10 +8,10 @@ import android.widget.Toast; import com.afollestad.materialdialogs.MaterialDialog; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.network.NodeBB; -import com.stardust.scriptdroid.network.UserService; -import com.stardust.scriptdroid.ui.BaseActivity; +import org.autojs.autojs.R; +import org.autojs.autojs.network.NodeBB; +import org.autojs.autojs.network.UserService; +import org.autojs.autojs.ui.BaseActivity; import com.stardust.theme.ThemeColorManager; import org.androidannotations.annotations.AfterViews; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/user/RegisterActivity.java b/app/src/main/java/org/autojs/autojs/ui/user/RegisterActivity.java similarity index 93% rename from app/src/main/java/com/stardust/scriptdroid/ui/user/RegisterActivity.java rename to app/src/main/java/org/autojs/autojs/ui/user/RegisterActivity.java index 8cf78d34e..2f09aa567 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/user/RegisterActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/user/RegisterActivity.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.user; +package org.autojs.autojs.ui.user; import android.util.Log; import android.util.Patterns; @@ -7,10 +7,10 @@ import android.widget.Toast; import com.afollestad.materialdialogs.MaterialDialog; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.network.NodeBB; -import com.stardust.scriptdroid.network.UserService; -import com.stardust.scriptdroid.ui.BaseActivity; +import org.autojs.autojs.R; +import org.autojs.autojs.network.NodeBB; +import org.autojs.autojs.network.UserService; +import org.autojs.autojs.ui.BaseActivity; import com.stardust.theme.ThemeColorManager; import org.androidannotations.annotations.AfterViews; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/user/UserDetailActivity.java b/app/src/main/java/org/autojs/autojs/ui/user/UserDetailActivity.java similarity index 53% rename from app/src/main/java/com/stardust/scriptdroid/ui/user/UserDetailActivity.java rename to app/src/main/java/org/autojs/autojs/ui/user/UserDetailActivity.java index 248014779..3dbba999b 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/user/UserDetailActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/user/UserDetailActivity.java @@ -1,6 +1,6 @@ -package com.stardust.scriptdroid.ui.user; +package org.autojs.autojs.ui.user; -import com.stardust.scriptdroid.ui.BaseActivity; +import org.autojs.autojs.ui.BaseActivity; /** * Created by Stardust on 2017/10/26. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/user/WebActivity.java b/app/src/main/java/org/autojs/autojs/ui/user/WebActivity.java similarity index 86% rename from app/src/main/java/com/stardust/scriptdroid/ui/user/WebActivity.java rename to app/src/main/java/org/autojs/autojs/ui/user/WebActivity.java index d7f5905d2..4cd4d7205 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/user/WebActivity.java +++ b/app/src/main/java/org/autojs/autojs/ui/user/WebActivity.java @@ -1,12 +1,12 @@ -package com.stardust.scriptdroid.ui.user; +package org.autojs.autojs.ui.user; import android.content.Intent; import android.support.annotation.NonNull; import com.stardust.app.OnActivityResultDelegate; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.ui.BaseActivity; -import com.stardust.scriptdroid.ui.widget.EWebView; +import org.autojs.autojs.R; +import org.autojs.autojs.ui.BaseActivity; +import org.autojs.autojs.ui.widget.EWebView; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.EActivity; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/viewmodel/ScriptList.java b/app/src/main/java/org/autojs/autojs/ui/viewmodel/ScriptList.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/ui/viewmodel/ScriptList.java rename to app/src/main/java/org/autojs/autojs/ui/viewmodel/ScriptList.java index e67b603f5..da6862148 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/viewmodel/ScriptList.java +++ b/app/src/main/java/org/autojs/autojs/ui/viewmodel/ScriptList.java @@ -1,9 +1,9 @@ -package com.stardust.scriptdroid.ui.viewmodel; +package org.autojs.autojs.ui.viewmodel; import android.content.SharedPreferences; -import com.stardust.scriptdroid.model.script.ScriptFile; -import com.stardust.scriptdroid.ui.main.scripts.ScriptListView; +import org.autojs.autojs.model.script.ScriptFile; +import org.autojs.autojs.ui.main.scripts.ScriptListView; import com.stardust.util.FileSorter; import java.io.File; @@ -18,7 +18,7 @@ public class ScriptList { public static class SortConfig { - private static final String CLASS_NAME = "com.stardust.scriptdroid.ui.viewmodel.ScriptList.SortConfig"; + private static final String CLASS_NAME = "org.autojs.autojs.ui.viewmodel.ScriptList.SortConfig"; private int mDirSortType = SORT_TYPE_NAME; private boolean mDirSortedAscending; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/AppWithStatusBarLayout.java b/app/src/main/java/org/autojs/autojs/ui/widget/AppWithStatusBarLayout.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/AppWithStatusBarLayout.java rename to app/src/main/java/org/autojs/autojs/ui/widget/AppWithStatusBarLayout.java index ab35f03ee..237e73bf8 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/AppWithStatusBarLayout.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/AppWithStatusBarLayout.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.app.Activity; import android.content.Context; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/AutoAdapter.java b/app/src/main/java/org/autojs/autojs/ui/widget/AutoAdapter.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/AutoAdapter.java rename to app/src/main/java/org/autojs/autojs/ui/widget/AutoAdapter.java index 49778a3c8..1cef10244 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/AutoAdapter.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/AutoAdapter.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.support.v7.widget.RecyclerView; import android.view.ViewGroup; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/AvatarView.java b/app/src/main/java/org/autojs/autojs/ui/widget/AvatarView.java similarity index 89% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/AvatarView.java rename to app/src/main/java/org/autojs/autojs/ui/widget/AvatarView.java index f1dc39b78..62fbedc13 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/AvatarView.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/AvatarView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.content.Context; import android.graphics.Color; @@ -18,11 +18,11 @@ import com.bumptech.glide.Glide; import com.bumptech.glide.load.engine.DiskCacheStrategy; import com.makeramen.roundedimageview.RoundedImageView; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.network.GlideApp; -import com.stardust.scriptdroid.network.Glides; -import com.stardust.scriptdroid.network.NodeBB; -import com.stardust.scriptdroid.network.entity.user.User; +import org.autojs.autojs.R; +import org.autojs.autojs.network.GlideApp; +import org.autojs.autojs.network.Glides; +import org.autojs.autojs.network.NodeBB; +import org.autojs.autojs.network.entity.user.User; import butterknife.BindView; import butterknife.ButterKnife; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/BindableViewHolder.java b/app/src/main/java/org/autojs/autojs/ui/widget/BindableViewHolder.java similarity index 88% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/BindableViewHolder.java rename to app/src/main/java/org/autojs/autojs/ui/widget/BindableViewHolder.java index c1305d963..d2c3e667c 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/BindableViewHolder.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/BindableViewHolder.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.support.v7.widget.RecyclerView; import android.view.View; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/BubblePopupMenu.java b/app/src/main/java/org/autojs/autojs/ui/widget/BubblePopupMenu.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/BubblePopupMenu.java rename to app/src/main/java/org/autojs/autojs/ui/widget/BubblePopupMenu.java index 35ae6dc59..a65d392e1 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/BubblePopupMenu.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/BubblePopupMenu.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.content.Context; import android.graphics.Color; @@ -10,7 +10,7 @@ import android.widget.PopupWindow; import android.widget.TextView; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.R; import java.util.List; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/CheckBoxCompat.java b/app/src/main/java/org/autojs/autojs/ui/widget/CheckBoxCompat.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/CheckBoxCompat.java rename to app/src/main/java/org/autojs/autojs/ui/widget/CheckBoxCompat.java index 212f3c01a..aaf0160d9 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/CheckBoxCompat.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/CheckBoxCompat.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.content.Context; import android.support.v7.widget.AppCompatCheckBox; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/CommonMarkdownView.java b/app/src/main/java/org/autojs/autojs/ui/widget/CommonMarkdownView.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/CommonMarkdownView.java rename to app/src/main/java/org/autojs/autojs/ui/widget/CommonMarkdownView.java index d87bbfad4..05b8709f0 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/CommonMarkdownView.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/CommonMarkdownView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.content.Context; import android.content.Intent; @@ -12,7 +12,7 @@ import android.webkit.WebViewClient; import android.widget.FrameLayout; -import com.stardust.theme.dialog.ThemeColorMaterialDialogBuilder; +import org.autojs.autojs.theme.dialog.ThemeColorMaterialDialogBuilder; import org.commonmark.ext.heading.anchor.HeadingAnchorExtension; import org.commonmark.node.Node; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/EWebView.java b/app/src/main/java/org/autojs/autojs/ui/widget/EWebView.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/EWebView.java rename to app/src/main/java/org/autojs/autojs/ui/widget/EWebView.java index ea1eb26da..7dbc24e94 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/EWebView.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/EWebView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.annotation.SuppressLint; import android.app.Activity; @@ -21,8 +21,8 @@ import android.widget.ProgressBar; import com.stardust.app.OnActivityResultDelegate; -import com.stardust.scriptdroid.R; -import com.stardust.scriptdroid.tool.ImageSelector; +import org.autojs.autojs.R; +import org.autojs.autojs.tool.ImageSelector; import com.stardust.util.IntentUtil; import org.androidannotations.annotations.OnActivityResult; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/ExpandableRecyclerView.java b/app/src/main/java/org/autojs/autojs/ui/widget/ExpandableRecyclerView.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/ExpandableRecyclerView.java rename to app/src/main/java/org/autojs/autojs/ui/widget/ExpandableRecyclerView.java index ae11a8c08..2b973343d 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/ExpandableRecyclerView.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/ExpandableRecyclerView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.content.Context; import android.support.annotation.Nullable; @@ -11,7 +11,7 @@ import android.widget.ImageView; import android.widget.TextView; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.R; /** * Created by Stardust on 2017/2/4. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/GridDividerDecoration.java b/app/src/main/java/org/autojs/autojs/ui/widget/GridDividerDecoration.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/GridDividerDecoration.java rename to app/src/main/java/org/autojs/autojs/ui/widget/GridDividerDecoration.java index 455996ea4..0d383c6ad 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/GridDividerDecoration.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/GridDividerDecoration.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; /** * Created by Stardust on 2017/12/9. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/ItemTouchHelperSimpleCallback.java b/app/src/main/java/org/autojs/autojs/ui/widget/ItemTouchHelperSimpleCallback.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/ItemTouchHelperSimpleCallback.java rename to app/src/main/java/org/autojs/autojs/ui/widget/ItemTouchHelperSimpleCallback.java index 4be0c29b1..d74ace072 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/ItemTouchHelperSimpleCallback.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/ItemTouchHelperSimpleCallback.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.helper.ItemTouchHelper; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/LevelBeamView.java b/app/src/main/java/org/autojs/autojs/ui/widget/LevelBeamView.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/LevelBeamView.java rename to app/src/main/java/org/autojs/autojs/ui/widget/LevelBeamView.java index daabbf49d..84978bd34 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/LevelBeamView.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/LevelBeamView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.content.Context; import android.graphics.Canvas; @@ -8,7 +8,7 @@ import android.util.Log; import android.view.View; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.R; /** * Created by Stardust on 2017/3/10. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/NestedWebView.java b/app/src/main/java/org/autojs/autojs/ui/widget/NestedWebView.java similarity index 99% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/NestedWebView.java rename to app/src/main/java/org/autojs/autojs/ui/widget/NestedWebView.java index b8e7bfc75..7197d4f17 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/NestedWebView.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/NestedWebView.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget;/* +package org.autojs.autojs.ui.widget;/* * Copyright (C) 2015 takahirom * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/OnItemClickListener.java b/app/src/main/java/org/autojs/autojs/ui/widget/OnItemClickListener.java similarity index 84% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/OnItemClickListener.java rename to app/src/main/java/org/autojs/autojs/ui/widget/OnItemClickListener.java index 834369d75..3f81384a7 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/OnItemClickListener.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/OnItemClickListener.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.support.v7.widget.RecyclerView; import android.view.View; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/PrefSwitch.java b/app/src/main/java/org/autojs/autojs/ui/widget/PrefSwitch.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/PrefSwitch.java rename to app/src/main/java/org/autojs/autojs/ui/widget/PrefSwitch.java index 370ef7827..c8396a892 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/PrefSwitch.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/PrefSwitch.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.content.Context; import android.content.SharedPreferences; @@ -6,7 +6,7 @@ import android.preference.PreferenceManager; import android.util.AttributeSet; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.R; /** * Created by Stardust on 2017/8/6. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/ScrollAwareFABBehavior.java b/app/src/main/java/org/autojs/autojs/ui/widget/ScrollAwareFABBehavior.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/ScrollAwareFABBehavior.java rename to app/src/main/java/org/autojs/autojs/ui/widget/ScrollAwareFABBehavior.java index fed1fde4d..b5cce217e 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/ScrollAwareFABBehavior.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/ScrollAwareFABBehavior.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/SearchViewItem.java b/app/src/main/java/org/autojs/autojs/ui/widget/SearchViewItem.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/SearchViewItem.java rename to app/src/main/java/org/autojs/autojs/ui/widget/SearchViewItem.java index 31661666d..76e2329b5 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/SearchViewItem.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/SearchViewItem.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.app.Activity; import android.app.SearchManager; @@ -7,7 +7,7 @@ import android.support.v7.widget.SearchView; import android.view.MenuItem; -import com.stardust.scriptdroid.ui.main.MainActivity; +import org.autojs.autojs.ui.main.MainActivity; /** * Created by Stardust on 2017/10/25. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/SimpleAdapterDataObserver.java b/app/src/main/java/org/autojs/autojs/ui/widget/SimpleAdapterDataObserver.java similarity index 94% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/SimpleAdapterDataObserver.java rename to app/src/main/java/org/autojs/autojs/ui/widget/SimpleAdapterDataObserver.java index f5439cd17..65e013474 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/SimpleAdapterDataObserver.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/SimpleAdapterDataObserver.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.support.v7.widget.RecyclerView; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/SimpleRecyclerViewAdapter.java b/app/src/main/java/org/autojs/autojs/ui/widget/SimpleRecyclerViewAdapter.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/SimpleRecyclerViewAdapter.java rename to app/src/main/java/org/autojs/autojs/ui/widget/SimpleRecyclerViewAdapter.java index 3873f7c99..03ddbab2e 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/SimpleRecyclerViewAdapter.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/SimpleRecyclerViewAdapter.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/SimpleTextWatcher.java b/app/src/main/java/org/autojs/autojs/ui/widget/SimpleTextWatcher.java similarity index 98% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/SimpleTextWatcher.java rename to app/src/main/java/org/autojs/autojs/ui/widget/SimpleTextWatcher.java index f648d81d8..1fba7a314 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/SimpleTextWatcher.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/SimpleTextWatcher.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.text.Editable; import android.text.TextWatcher; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/SlidingUpPanel.java b/app/src/main/java/org/autojs/autojs/ui/widget/SlidingUpPanel.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/SlidingUpPanel.java rename to app/src/main/java/org/autojs/autojs/ui/widget/SlidingUpPanel.java index f617125a5..d13ffb39d 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/SlidingUpPanel.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/SlidingUpPanel.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.annotation.TargetApi; import android.content.Context; @@ -12,7 +12,7 @@ import android.view.animation.AnimationUtils; import android.widget.FrameLayout; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.R; /** * Created by Stardust on 2017/1/24. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/SwitchCompat.java b/app/src/main/java/org/autojs/autojs/ui/widget/SwitchCompat.java similarity index 96% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/SwitchCompat.java rename to app/src/main/java/org/autojs/autojs/ui/widget/SwitchCompat.java index 56c6097e6..55528fb72 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/SwitchCompat.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/SwitchCompat.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.content.Context; import android.util.AttributeSet; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/ToolbarMenuItem.java b/app/src/main/java/org/autojs/autojs/ui/widget/ToolbarMenuItem.java similarity index 97% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/ToolbarMenuItem.java rename to app/src/main/java/org/autojs/autojs/ui/widget/ToolbarMenuItem.java index 749a91e0f..4d813ab60 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/ToolbarMenuItem.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/ToolbarMenuItem.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.annotation.TargetApi; import android.content.Context; @@ -12,7 +12,7 @@ import android.widget.LinearLayout; import android.widget.TextView; -import com.stardust.scriptdroid.R; +import org.autojs.autojs.R; /** * Created by Stardust on 2017/1/29. diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/ViewHolderMutableAdapter.java b/app/src/main/java/org/autojs/autojs/ui/widget/ViewHolderMutableAdapter.java similarity index 94% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/ViewHolderMutableAdapter.java rename to app/src/main/java/org/autojs/autojs/ui/widget/ViewHolderMutableAdapter.java index a9617831e..073178725 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/ViewHolderMutableAdapter.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/ViewHolderMutableAdapter.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.support.v7.widget.RecyclerView; import android.view.ViewGroup; diff --git a/app/src/main/java/com/stardust/scriptdroid/ui/widget/ViewHolderSupplier.java b/app/src/main/java/org/autojs/autojs/ui/widget/ViewHolderSupplier.java similarity index 95% rename from app/src/main/java/com/stardust/scriptdroid/ui/widget/ViewHolderSupplier.java rename to app/src/main/java/org/autojs/autojs/ui/widget/ViewHolderSupplier.java index 780d682df..df55553d8 100644 --- a/app/src/main/java/com/stardust/scriptdroid/ui/widget/ViewHolderSupplier.java +++ b/app/src/main/java/org/autojs/autojs/ui/widget/ViewHolderSupplier.java @@ -1,4 +1,4 @@ -package com.stardust.scriptdroid.ui.widget; +package org.autojs.autojs.ui.widget; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; diff --git a/app/src/main/res/layout/activity_documentation.xml b/app/src/main/res/layout/activity_documentation.xml index d0627b085..1aa5bf926 100644 --- a/app/src/main/res/layout/activity_documentation.xml +++ b/app/src/main/res/layout/activity_documentation.xml @@ -20,7 +20,7 @@ - diff --git a/app/src/main/res/layout/activity_edit.xml b/app/src/main/res/layout/activity_edit.xml index cfce38e91..7f5b52911 100644 --- a/app/src/main/res/layout/activity_edit.xml +++ b/app/src/main/res/layout/activity_edit.xml @@ -1,5 +1,5 @@ - + tools:context="org.autojs.autojs.ui.main.MainActivity"> + app:layout_behavior="org.autojs.autojs.ui.widget.ScrollAwareFABBehavior"/> - - - - - - + tools:context="org.autojs.autojs.ui.edit.EditActivity"> - - - diff --git a/app/src/main/res/layout/code_editor.xml b/app/src/main/res/layout/code_editor.xml index 893f0268a..85c204116 100644 --- a/app/src/main/res/layout/code_editor.xml +++ b/app/src/main/res/layout/code_editor.xml @@ -1,5 +1,5 @@ - - diff --git a/app/src/main/res/layout/dialog_update_info.xml b/app/src/main/res/layout/dialog_update_info.xml index f77e07319..714972b5c 100644 --- a/app/src/main/res/layout/dialog_update_info.xml +++ b/app/src/main/res/layout/dialog_update_info.xml @@ -27,7 +27,7 @@ android:textColor="@android:color/primary_text_light" android:textSize="18sp"/> - diff --git a/app/src/main/res/layout/drawer_menu_item.xml b/app/src/main/res/layout/drawer_menu_item.xml index f655f3a27..d9e610be2 100644 --- a/app/src/main/res/layout/drawer_menu_item.xml +++ b/app/src/main/res/layout/drawer_menu_item.xml @@ -57,7 +57,7 @@ tools:text="2" tools:visibility="visible"/> - - - - - - - - - - - - - - - - - + - - - - - diff --git a/app/src/main/res/layout/fragment_community.xml b/app/src/main/res/layout/fragment_community.xml index 56dbe71c6..57aa969fa 100644 --- a/app/src/main/res/layout/fragment_community.xml +++ b/app/src/main/res/layout/fragment_community.xml @@ -1,5 +1,5 @@ - - - diff --git a/app/src/main/res/layout/fragment_online_docs.xml b/app/src/main/res/layout/fragment_online_docs.xml index b350f7f1f..c7c1a7165 100644 --- a/app/src/main/res/layout/fragment_online_docs.xml +++ b/app/src/main/res/layout/fragment_online_docs.xml @@ -1,5 +1,5 @@ - - diff --git a/app/src/main/res/layout/fragment_task_manager.xml b/app/src/main/res/layout/fragment_task_manager.xml index 8a3627bea..8c03fb7a9 100644 --- a/app/src/main/res/layout/fragment_task_manager.xml +++ b/app/src/main/res/layout/fragment_task_manager.xml @@ -5,17 +5,17 @@ android:background="@android:color/white"> - - - + - diff --git a/app/src/main/res/layout/option_list_view.xml b/app/src/main/res/layout/option_list_view.xml index 2e6ff2099..d4a9ee696 100644 --- a/app/src/main/res/layout/option_list_view.xml +++ b/app/src/main/res/layout/option_list_view.xml @@ -1,5 +1,5 @@ - - \ No newline at end of file + \ No newline at end of file diff --git a/app/src/main/res/layout/paint_layout.xml b/app/src/main/res/layout/paint_layout.xml index b64b4f46b..084095206 100644 --- a/app/src/main/res/layout/paint_layout.xml +++ b/app/src/main/res/layout/paint_layout.xml @@ -3,7 +3,7 @@ android:layout_width="600dp" android:layout_height="600dp"> - diff --git a/app/src/main/res/values-en/strings.xml b/app/src/main/res/values-en/strings.xml index 82d3982e0..f0b33cb38 100644 --- a/app/src/main/res/values-en/strings.xml +++ b/app/src/main/res/values-en/strings.xml @@ -34,7 +34,7 @@ Copied Donate https://github.com/hyb1996/NoRootScriptDroid - [UiAutomator]Download:http://www.coolapk.com/apk/com.stardust.scriptdroid + [UiAutomator]Download:http://www.coolapk.com/apk/org.autojs.autojs Floating Window Bug Report Press again to exit diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2dc0c60c0..b04bd714a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -35,7 +35,7 @@ 已复制到剪贴板 打赏作者 https://github.com/hyb1996/NoRootScriptDroid - [AutoJs]下载地址:http://www.coolapk.com/apk/com.stardust.scriptdroid + [AutoJs]下载地址:http://www.coolapk.com/apk/org.autojs.autojs 悬浮窗 错误报告 再按一次退出程序 diff --git a/app/src/main/res/xml/script_widget_config.xml b/app/src/main/res/xml/script_widget_config.xml index 4c7bec47d..dfc6c4272 100644 --- a/app/src/main/res/xml/script_widget_config.xml +++ b/app/src/main/res/xml/script_widget_config.xml @@ -1,6 +1,6 @@