Skip to content

Commit

Permalink
refactor: rename package name to 'org.autojs.autojs'
Browse files Browse the repository at this point in the history
  • Loading branch information
hyb1996 committed May 25, 2018
1 parent b81db30 commit 7839bc6
Show file tree
Hide file tree
Showing 244 changed files with 787 additions and 843 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stardust.scriptdroid.statics;
package org.autojs.autojs.statics;

import org.junit.Test;
import org.mozilla.javascript.Context;
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.stardust.scriptdroid">
package="org.autojs.autojs">


<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
Expand Down Expand Up @@ -47,7 +47,7 @@
</activity>
<activity
android:name=".external.shortcut.ShortcutActivity"
android:taskAffinity="com.stardust.scriptdroid.external.shortcut.ShortcutActivity"
android:taskAffinity="org.autojs.autojs.external.shortcut.ShortcutActivity"
android:theme="@android:style/Theme.NoDisplay">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
Expand All @@ -58,7 +58,7 @@

<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="com.stardust.scriptdroid.fileprovider"
android:authorities="org.autojs.autojs.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
Expand Down Expand Up @@ -153,7 +153,7 @@
android:name=".external.open.RunIntentActivity"
android:icon="@drawable/autojs_material"
android:label="@string/text_run_script"
android:taskAffinity="com.stardust.scriptdroid.external.open.RunIntentActivity"
android:taskAffinity="org.autojs.autojs.external.open.RunIntentActivity"
android:theme="@android:style/Theme.NoDisplay">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stardust.scriptdroid;
package org.autojs.autojs;

import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stardust.scriptdroid;
package org.autojs.autojs;

/**
* Created by Stardust on 2017/7/7.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stardust.scriptdroid;
package org.autojs.autojs;

import org.mozilla.javascript.Context;
import org.mozilla.javascript.ContextAction;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.stardust.scriptdroid;
package org.autojs.autojs;

import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stardust.scriptdroid.autojs;
package org.autojs.autojs.autojs;

import android.app.Application;
import android.content.Context;
Expand All @@ -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;


/**
Expand Down Expand Up @@ -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();
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stardust.scriptdroid.autojs.build;
package org.autojs.autojs.autojs.build;

import android.graphics.Bitmap;

Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stardust.scriptdroid.autojs.key;
package org.autojs.autojs.autojs.key;

import android.util.Log;
import android.view.KeyEvent;
Expand All @@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stardust.scriptdroid.autojs.record;
package org.autojs.autojs.autojs.record;

import android.content.Context;
import android.os.Looper;
Expand All @@ -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;


Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.stardust.scriptdroid.build;
package org.autojs.autojs.build;

import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stardust.scriptdroid.external;
package org.autojs.autojs.external;

import android.app.IntentService;
import android.content.Intent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stardust.scriptdroid.external;
package org.autojs.autojs.external;

import android.content.Context;
import android.content.Intent;
Expand All @@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.stardust.scriptdroid.external.open;
package org.autojs.autojs.external.open;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stardust.scriptdroid.external.open;
package org.autojs.autojs.external.open;

import android.content.Intent;
import android.net.Uri;
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stardust.scriptdroid.external.open;
package org.autojs.autojs.external.open;

import android.app.Activity;
import android.content.Intent;
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Loading

0 comments on commit 7839bc6

Please sign in to comment.