deeke-script-app 1.2.4 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +1 -1
- package/@deekeScript/{@type → type}/Class/UiSelector.d.ts +191 -191
- package/@deekeScript/{@type → type}/interface/Storage.d.ts +110 -110
- package/README.md +35 -35
- package/deekeScript.json +597 -597
- package/deekeScriptZipBuild +48 -48
- package/images/test/statistics.png +0 -0
- package/init +32 -32
- package/jsconfig.json +10 -10
- package/obfuscator.config.json +13 -13
- package/package.json +41 -41
- package/script/common/common.js +7 -0
- package/script/index.js +1 -2
- package/script/statistics/statistics.js +121 -120
- package/script/task/dy.js +15 -55
- package/script/task/dyApp.js +6 -54
- package/script/task/dyCity.js +1 -43
- package/script/task/tool.js +14 -57
- package/script/task.html +4 -4
- package/src/common/common.js +7 -0
- package/src/statistics/statistics.js +121 -120
- package/src/task/dy.js +16 -14
- package/src/task/dyApp.js +7 -7
- package/src/task/tool.js +19 -19
- package/src/task.html +4 -4
- package/test/console.js +5 -5
- package/test/encrypt.js +3 -3
- package/test/engines.js +5 -5
- package/test/error.js +5 -0
- package/test/extension.js +26 -26
- package/test/files.js +7 -7
- package/test/http.js +4 -4
- package/test/log.js +10 -10
- package/test/package.js +3 -3
- package/test/permise.js +14 -14
- package/test/thread.js +11 -11
- package/test/timer.js +25 -25
- /package/@deekeScript/{@type → type}/Class/Rect.d.ts +0 -0
- /package/@deekeScript/{@type → type}/README.md +0 -0
- /package/@deekeScript/{@type → type}/interface/App.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/Console.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/DeekeScript.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/Device.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/Dialogs.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/Encrypt.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/Engines.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/FloatDialogs.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/Gesture.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/Http.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/Intent.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/System.d.ts +0 -0
- /package/@deekeScript/{@type → type}/interface/UiObject.d.ts +0 -0
package/test/files.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
let Files = java.nio.file.Files;
|
|
2
|
-
let Paths = java.nio.file.Paths;
|
|
3
|
-
// console.log(Files.exists(Paths.get("/sdcard/文件夹/2.txt"))); //返回false
|
|
4
|
-
|
|
5
|
-
for(let i in Files){
|
|
6
|
-
console.log(i);
|
|
7
|
-
}
|
|
1
|
+
let Files = java.nio.file.Files;
|
|
2
|
+
let Paths = java.nio.file.Paths;
|
|
3
|
+
// console.log(Files.exists(Paths.get("/sdcard/文件夹/2.txt"))); //返回false
|
|
4
|
+
|
|
5
|
+
for(let i in Files){
|
|
6
|
+
console.log(i);
|
|
7
|
+
}
|
package/test/http.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
let res = Http.getHeaders("https://home.deeke.top/dkee/config", {"content-type": "json"});
|
|
4
|
-
console.log(res);
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
let res = Http.getHeaders("https://home.deeke.top/dkee/config", {"content-type": "json"});
|
|
4
|
+
console.log(res);
|
package/test/log.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Log.log(10);
|
|
4
|
-
// Log.info(11);
|
|
5
|
-
// Log.error(12);
|
|
6
|
-
// Log.warn(13);
|
|
7
|
-
// Log.debug(14);
|
|
8
|
-
|
|
9
|
-
let filename = Log.getFileDir("myfile.log");
|
|
10
|
-
console.log(filename);
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
Log.log(10);
|
|
4
|
+
// Log.info(11);
|
|
5
|
+
// Log.error(12);
|
|
6
|
+
// Log.warn(13);
|
|
7
|
+
// Log.debug(14);
|
|
8
|
+
|
|
9
|
+
let filename = Log.getFileDir("myfile.log");
|
|
10
|
+
console.log(filename);
|
package/test/package.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var Files = Packages.java.nio.file.Files;
|
|
2
|
-
var path = Packages.java.nio.file.Paths.get('example.txt');
|
|
3
|
-
console.log(Files.exists(path));//输出:false
|
|
1
|
+
var Files = Packages.java.nio.file.Files;
|
|
2
|
+
var path = Packages.java.nio.file.Paths.get('example.txt');
|
|
3
|
+
console.log(Files.exists(path));//输出:false
|
package/test/permise.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
let promise = new Promise(function (resolve, reject) {
|
|
4
|
-
setTimeout(function () {
|
|
5
|
-
console.log(234);
|
|
6
|
-
resolve('成功');
|
|
7
|
-
}, 1000);
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
promise.then(resolve => {
|
|
11
|
-
console.log(resolve);//成功
|
|
12
|
-
}, reject => {
|
|
13
|
-
console.log(reject);
|
|
14
|
-
});
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
let promise = new Promise(function (resolve, reject) {
|
|
4
|
+
setTimeout(function () {
|
|
5
|
+
console.log(234);
|
|
6
|
+
resolve('成功');
|
|
7
|
+
}, 1000);
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
promise.then(resolve => {
|
|
11
|
+
console.log(resolve);//成功
|
|
12
|
+
}, reject => {
|
|
13
|
+
console.log(reject);
|
|
14
|
+
});
|
package/test/thread.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
let obj = {
|
|
2
|
-
run: function () {
|
|
3
|
-
console.log('线程');
|
|
4
|
-
}
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
new java.lang.Thread(new java.lang.Runnable(obj)).start();
|
|
8
|
-
for (let i = 0; i < 3; i++) {
|
|
9
|
-
console.log(i);
|
|
10
|
-
System.sleep(2000);
|
|
11
|
-
}
|
|
1
|
+
let obj = {
|
|
2
|
+
run: function () {
|
|
3
|
+
console.log('线程');
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
new java.lang.Thread(new java.lang.Runnable(obj)).start();
|
|
8
|
+
for (let i = 0; i < 3; i++) {
|
|
9
|
+
console.log(i);
|
|
10
|
+
System.sleep(2000);
|
|
11
|
+
}
|
package/test/timer.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function test_timeout() {
|
|
4
|
-
console.log(333);
|
|
5
|
-
setTimeout(() => {
|
|
6
|
-
console.log(a, UiSelector());
|
|
7
|
-
}, 2000);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function test_setInterval() {
|
|
11
|
-
console.log(a);
|
|
12
|
-
let i = 3;
|
|
13
|
-
let t = setInterval(() => {
|
|
14
|
-
console.log(a);
|
|
15
|
-
if (i-- < 0) {
|
|
16
|
-
clearInterval(t);
|
|
17
|
-
}
|
|
18
|
-
}, 2000);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
let a = 123;
|
|
22
|
-
// test_timeout();
|
|
23
|
-
test_setInterval();
|
|
24
|
-
// console.log(clearInterval);
|
|
25
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
function test_timeout() {
|
|
4
|
+
console.log(333);
|
|
5
|
+
setTimeout(() => {
|
|
6
|
+
console.log(a, UiSelector());
|
|
7
|
+
}, 2000);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function test_setInterval() {
|
|
11
|
+
console.log(a);
|
|
12
|
+
let i = 3;
|
|
13
|
+
let t = setInterval(() => {
|
|
14
|
+
console.log(a);
|
|
15
|
+
if (i-- < 0) {
|
|
16
|
+
clearInterval(t);
|
|
17
|
+
}
|
|
18
|
+
}, 2000);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
let a = 123;
|
|
22
|
+
// test_timeout();
|
|
23
|
+
test_setInterval();
|
|
24
|
+
// console.log(clearInterval);
|
|
25
|
+
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|