diff --git a/app/build.gradle b/app/build.gradle index 7bc80ffe..21302120 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "com.stardust.scriptdroid" minSdkVersion 19 targetSdkVersion 23 - versionCode 118 - versionName "2.0.8Alpha" + versionCode 119 + versionName "2.0.8 Beta" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" multiDexEnabled true } @@ -68,14 +68,13 @@ dependencies { compile group: "pl.openrnd.android", name: "multi-level-listview", version: "1.0.1" compile 'de.psdev.licensesdialog:licensesdialog:1.8.1' compile 'io.mattcarroll.hover:hover:0.9.7' - compile 'org.greenrobot:eventbus:3.0.0' compile 'com.bignerdranch.android:expandablerecyclerview:3.0.0-RC1' compile 'com.ashokvarma.android:bottom-navigation-bar:1.4.1' compile 'com.yqritc:recyclerview-flexibledivider:1.4.0' compile 'me.zhanghai.android.materialprogressbar:library:1.3.0' compile group:'com.twofortyfouram', name:'android-plugin-client-sdk-for-locale', version:'[4.0.2, 5.0[' compile 'com.android.volley:volley:1.0.0' - compile 'com.github.hyb1996:EnhancedFloaty:0.11' + compile 'com.github.hyb1996:EnhancedFloaty:0.12' compile 'com.android.support:multidex:1.0.1' compile(name: 'libtermexec-release', ext: 'aar') compile(name: 'emulatorview-release', ext: 'aar') diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b69ce066..75bc3bac 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -84,7 +84,7 @@ android:theme="@style/IssueReporterTheme"/> - + diff --git a/app/src/main/assets/help/catalogue.json b/app/src/main/assets/help/catalogue.json index 55a9d639..f14a7793 100644 --- a/app/src/main/assets/help/catalogue.json +++ b/app/src/main/assets/help/catalogue.json @@ -40,7 +40,7 @@ "path":"documentation" }, { - "title": "驻留模式与无障碍服务委托", + "title": "模块与第三方jar", "type": "markdown", "path":"documentation" }, diff --git a/app/src/main/assets/help/documentation/模块与第三方jar.md b/app/src/main/assets/help/documentation/模块与第三方jar.md new file mode 100644 index 00000000..251329fe --- /dev/null +++ b/app/src/main/assets/help/documentation/模块与第三方jar.md @@ -0,0 +1,23 @@ +### loadJar(path) +* path \ jar文件路径 + +载入jar文件。之后改文件的所有类均可直接使用。这在使用第三方库时十分方便。 + +### require(path) +* path \ js文件的相对路径 + +载入js文件并返回该模块。模块文件应该有module.exports语句指定模块的输出对象。 + +例如test.js: +``` +function sayHello(name){ + print("Hello, " + name); +} +module.exports = sayHello; +``` +同一个目录下的test_module.js: +``` +var sayHello = require("test"); +sayHello("AutoJs"); +``` +运行这个脚本将在控制台输出"Hello, AutoJs" \ No newline at end of file diff --git a/app/src/main/assets/modules/ui.js b/app/src/main/assets/modules/ui.js index ba2b627b..9c8f2059 100644 --- a/app/src/main/assets/modules/ui.js +++ b/app/src/main/assets/modules/ui.js @@ -14,20 +14,34 @@ gravity weight +var ui = { + +}; + +ui.layout = function(xml){ + +} + + + ui.layout( - - + +