deeke-script-app 1.6.7 → 1.6.8

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.
Files changed (41) hide show
  1. package/@deekeScript/@type/Class/Global.d.ts +1 -1
  2. package/@deekeScript/@type/Class/Rect.d.ts +16 -16
  3. package/@deekeScript/@type/Class/UiSelector.d.ts +201 -201
  4. package/@deekeScript/@type/Class/WebSocket.d.ts +49 -49
  5. package/@deekeScript/@type/interface/Access.d.ts +71 -71
  6. package/@deekeScript/@type/interface/App.d.ts +101 -93
  7. package/@deekeScript/@type/interface/DeekeScriptJson.d.ts +13 -13
  8. package/@deekeScript/@type/interface/Device.d.ts +88 -88
  9. package/@deekeScript/@type/interface/Encrypt.d.ts +58 -58
  10. package/@deekeScript/@type/interface/Engines.d.ts +39 -39
  11. package/@deekeScript/@type/interface/Files.d.ts +283 -0
  12. package/@deekeScript/@type/interface/FloatDialogs.d.ts +41 -35
  13. package/@deekeScript/@type/interface/ForegroundServiceBridge.d.ts +31 -31
  14. package/@deekeScript/@type/interface/Hid.d.ts +342 -342
  15. package/@deekeScript/@type/interface/Http.d.ts +41 -41
  16. package/@deekeScript/@type/interface/Images.d.ts +71 -71
  17. package/@deekeScript/@type/interface/Java.d.ts +7 -7
  18. package/@deekeScript/@type/interface/KeyBoards.d.ts +27 -27
  19. package/@deekeScript/@type/interface/Log.d.ts +16 -16
  20. package/@deekeScript/@type/interface/NotificationBridge.d.ts +28 -28
  21. package/@deekeScript/@type/interface/{SocketIOClient.d.ts → SocketIoClient.d.ts} +76 -76
  22. package/@deekeScript/@type/interface/Storage.d.ts +119 -110
  23. package/@deekeScript/@type/interface/System.d.ts +114 -114
  24. package/@deekeScript/@type/interface/UiObject.d.ts +197 -197
  25. package/README.md +67 -67
  26. package/deekeScript.json +669 -669
  27. package/deekeScriptZipBuild +48 -48
  28. package/gulpfile +17 -17
  29. package/images/test/statistics.png +0 -0
  30. package/init +32 -32
  31. package/jsconfig.json +11 -11
  32. package/package.json +43 -43
  33. package/script/statistics/statistics.js +120 -120
  34. package/script/task.html +4 -4
  35. package/src/statistics/statistics.js +120 -120
  36. package/src/task/douyin_zan.js +89 -89
  37. package/src/task/dy.js +14 -14
  38. package/src/task/dyApp.js +7 -7
  39. package/src/task/tool.js +19 -19
  40. package/src/task.html +4 -4
  41. package/uglify-config.json +15 -15
@@ -1,93 +1,101 @@
1
- declare global {
2
- var App: App;
3
-
4
- interface App {
5
- /**
6
- * 获取当前包名
7
- */
8
- public currentPackageName(): string;
9
-
10
- /**
11
- * 获取当前版本号
12
- */
13
- public currentVersionCode(): number;
14
-
15
- /**
16
- * 获取当前版本名称
17
- */
18
- public currentVersionName(): string;
19
-
20
- /**
21
- * 获取包信息
22
- */
23
- public packageInfo(): any;//这里是返回的PackageInfo(Android对象)
24
-
25
- /**
26
- * 创建一个Intent对象
27
- * @param i Intent对象
28
- */
29
- public intent(i: Intent): Intent;
30
-
31
- /**
32
- * 调整到某个Activity
33
- * @param uri 跳转的uri
34
- */
35
- public gotoIntent(uri: string): void;
36
-
37
- /**
38
- * 启动Activity
39
- * @param intent Intent对象
40
- */
41
- public startActivity(intent: Intent): void;
42
-
43
- /**
44
- * 返回到App
45
- */
46
- public backApp(): void;
47
-
48
- /**
49
- * 启动服务
50
- * @param service Intent对象
51
- */
52
- public startService(service: Intent): any;//这里的参数和返回都是ComponentName(Android对象)
53
-
54
- /**
55
- * 发送广播
56
- * @param intent Intent对象
57
- */
58
- public sendBroadcast(intent: Intent): void;
59
-
60
- /**
61
- * 通过包名,打开某个App
62
- * @param packageName 包名
63
- */
64
- public launch(packageName: string): void;
65
-
66
- /**
67
- * 通知
68
- * @param title 标题
69
- * @param content 内容
70
- */
71
- public notifySuccess(title: string, content: string): void;
72
-
73
- /**
74
- * 通过包名,获取某个App的版本名称
75
- * @param packageName 包名
76
- */
77
- public getAppVersionName(packageName: string): string;
78
-
79
- /**
80
- * 通过包名,获取某个App版本号
81
- * @param packageName 包名
82
- */
83
- public getAppVersionCode(packageName: string): number;
84
-
85
- /**
86
- * 通过包名,进入某个App设置界面
87
- * @param packageName 包名
88
- */
89
- public openAppSettings(packageName: string): void;
90
- }
91
- }
92
-
93
- export { };
1
+ declare global {
2
+ var App: App;
3
+
4
+ interface App {
5
+ /**
6
+ * 获取当前包名
7
+ */
8
+ public currentPackageName(): string;
9
+
10
+ /**
11
+ * 获取当前版本号
12
+ */
13
+ public currentVersionCode(): number;
14
+
15
+ /**
16
+ * 获取当前版本名称
17
+ */
18
+ public currentVersionName(): string;
19
+
20
+ /**
21
+ * 获取包信息
22
+ * @param packageName 包名
23
+ */
24
+ public packageInfo(packageName: string): any;//这里是返回的PackageInfo(Android对象)
25
+
26
+ /**
27
+ * 调整到某个Activity
28
+ * @param uri 跳转的uri
29
+ */
30
+ public gotoIntent(uri: string): void;
31
+
32
+ /**
33
+ * 启动Activity
34
+ * @param intent Intent对象
35
+ */
36
+ public startActivity(intent: Intent): void;
37
+
38
+ /**
39
+ * 返回到App
40
+ */
41
+ public backApp(): void;
42
+
43
+ /**
44
+ * 启动服务
45
+ * @param service Intent对象
46
+ */
47
+ public startService(service: Intent): any;//这里的参数和返回都是ComponentName(Android对象)
48
+
49
+ /**
50
+ * 发送广播
51
+ * @param intent Intent对象
52
+ */
53
+ public sendBroadcast(intent: Intent): void;
54
+
55
+ /**
56
+ * 通过包名,打开某个App
57
+ * @param packageName 包名
58
+ */
59
+ public launch(packageName: string): void;
60
+
61
+ /**
62
+ * 通知
63
+ * @param title 标题
64
+ * @param content 内容
65
+ */
66
+ public notifySuccess(title: string, content: string): void;
67
+
68
+ /**
69
+ * 通过包名,获取某个App的版本名称
70
+ * @param packageName 包名
71
+ */
72
+ public getAppVersionName(packageName: string): string;
73
+
74
+ /**
75
+ * 通过包名,获取某个App版本号
76
+ * @param packageName 包名
77
+ */
78
+ public getAppVersionCode(packageName: string): number;
79
+
80
+ /**
81
+ * 通过包名,进入某个App设置界面
82
+ * @param packageName 包名
83
+ */
84
+ public openAppSetting(packageName: string): void;
85
+
86
+ /**
87
+ * 判断应用是否已安装
88
+ * @param packageName 包名
89
+ */
90
+ public isAppInstalled(packageName: string): boolean;
91
+
92
+ /**
93
+ * 通过指定应用打开URL,如果应用未安装则使用浏览器打开
94
+ * @param url URL地址
95
+ * @param packageName 包名(可选,用于指定打开URL的应用)
96
+ */
97
+ public openUrl(url: string, packageName: string): void;
98
+ }
99
+ }
100
+
101
+ export { };
@@ -1,13 +1,13 @@
1
- declare global {
2
- var DeekeScriptJson: DeekeScriptJson;
3
- }
4
-
5
- interface DeekeScriptJson {
6
- public setDeekeScriptJsonGroup(str:string): void;
7
-
8
- public setSettingLists(str:string): void;
9
-
10
- public toJson(): object;
11
- }
12
-
13
- export { }
1
+ declare global {
2
+ var DeekeScriptJson: DeekeScriptJson;
3
+ }
4
+
5
+ interface DeekeScriptJson {
6
+ public setDeekeScriptJsonGroup(str:string): void;
7
+
8
+ public setSettingLists(str:string): void;
9
+
10
+ public toJson(): object;
11
+ }
12
+
13
+ export { }
@@ -1,88 +1,88 @@
1
- declare global {
2
- var Device: Device;
3
- }
4
-
5
- interface Device {
6
- /**
7
- * 息屏后,保持 CPU 唤醒,延时释放
8
- * @param second 保持 CPU 唤醒,延时释放,单位秒
9
- */
10
- public keepCpuAwake(second: number): void;
11
-
12
- /**
13
- * 关闭CPU唤醒状态
14
- */
15
- public releaseCpuWakeLock(): void;
16
-
17
- /**
18
- * 获取屏幕宽度
19
- */
20
- public width(): number;
21
-
22
- /**
23
- * 获取屏幕高度
24
- */
25
- public height(): number;
26
-
27
- /**
28
- * 获取设备版本,如 26
29
- */
30
- public sdkInt(): number;
31
-
32
- /**
33
- * 获取设备
34
- */
35
- public device(): string;
36
-
37
- /**
38
- * 获取设备版本,如 "8.1.0"
39
- */
40
- public androidVersion(): string;
41
-
42
- /**
43
- * 生成设备唯一标识符, 卸载App前,可以通过getUuid获取,卸载后丢失
44
- */
45
- public createUuid(): string;
46
-
47
- /**
48
- * 获取设备唯一标识符
49
- */
50
- public getUuid(): string;
51
-
52
- /**
53
- * 获取设备卡密
54
- */
55
- public getToken(): string;
56
-
57
- /**
58
- * 获取设备其他信息(此方法可以取代getToken和getUuid)
59
- */
60
- public getAttr(key: string): string;
61
-
62
- /**
63
- * 判断屏幕是否亮着
64
- */
65
- public isScreenOn(): boolean;
66
-
67
- /**
68
- * 获取设备品牌, 如 "HUAWEI" 或 "Xiaomi"
69
- */
70
- public brand(): string;
71
-
72
- /**
73
- * 获取设备操作系统名称, 如 "Android"
74
- */
75
- public os(): string;
76
-
77
- /**
78
- * 获取设备型号名称, 如 "Honor V30" 或类似的字符串
79
- */
80
- public model(): string;
81
-
82
- /**
83
- * 获取设备代号, 例如 "REL" 表示正式发布的版本
84
- */
85
- public codename(): string;
86
- }
87
-
88
- export { };
1
+ declare global {
2
+ var Device: Device;
3
+ }
4
+
5
+ interface Device {
6
+ /**
7
+ * 息屏后,保持 CPU 唤醒,延时释放
8
+ * @param second 保持 CPU 唤醒,延时释放,单位秒
9
+ */
10
+ public keepCpuAwake(second: number): void;
11
+
12
+ /**
13
+ * 关闭CPU唤醒状态
14
+ */
15
+ public releaseCpuWakeLock(): void;
16
+
17
+ /**
18
+ * 获取屏幕宽度
19
+ */
20
+ public width(): number;
21
+
22
+ /**
23
+ * 获取屏幕高度
24
+ */
25
+ public height(): number;
26
+
27
+ /**
28
+ * 获取设备版本,如 26
29
+ */
30
+ public sdkInt(): number;
31
+
32
+ /**
33
+ * 获取设备
34
+ */
35
+ public device(): string;
36
+
37
+ /**
38
+ * 获取设备版本,如 "8.1.0"
39
+ */
40
+ public androidVersion(): string;
41
+
42
+ /**
43
+ * 生成设备唯一标识符, 卸载App前,可以通过getUuid获取,卸载后丢失
44
+ */
45
+ public createUuid(): string;
46
+
47
+ /**
48
+ * 获取设备唯一标识符
49
+ */
50
+ public getUuid(): string;
51
+
52
+ /**
53
+ * 获取设备卡密
54
+ */
55
+ public getToken(): string;
56
+
57
+ /**
58
+ * 获取设备其他信息(此方法可以取代getToken和getUuid)
59
+ */
60
+ public getAttr(key: string): string;
61
+
62
+ /**
63
+ * 判断屏幕是否亮着
64
+ */
65
+ public isScreenOn(): boolean;
66
+
67
+ /**
68
+ * 获取设备品牌, 如 "HUAWEI" 或 "Xiaomi"
69
+ */
70
+ public brand(): string;
71
+
72
+ /**
73
+ * 获取设备操作系统名称, 如 "Android"
74
+ */
75
+ public os(): string;
76
+
77
+ /**
78
+ * 获取设备型号名称, 如 "Honor V30" 或类似的字符串
79
+ */
80
+ public model(): string;
81
+
82
+ /**
83
+ * 获取设备代号, 例如 "REL" 表示正式发布的版本
84
+ */
85
+ public codename(): string;
86
+ }
87
+
88
+ export { };
@@ -1,58 +1,58 @@
1
- declare global {
2
- var Encrypt: Encrypt;
3
- }
4
-
5
- interface Encrypt {
6
- /**
7
- * md5加密
8
- * @param input
9
- */
10
- public md5(input: string): string;
11
-
12
- /**
13
- * sha1加密
14
- * @param input
15
- */
16
- public sha1(input: string): string;
17
-
18
- /**
19
- * sha256加密
20
- * @param input
21
- */
22
- public sha256(input: string): string;
23
-
24
- /**
25
- * base64 encode
26
- * @param input
27
- */
28
- public base64Encode(input: string|byte[]): string;
29
-
30
- /**
31
- * base64 decode
32
- * @param input
33
- */
34
- public base64Decode(input: string): string;
35
-
36
- /**
37
- * 生成iv
38
- */
39
- public generateIv(): string;
40
-
41
- /**
42
- * aescbc加密
43
- * @param key
44
- * @param iv
45
- * @param input
46
- */
47
- public aesCbcEncrypt(key: string, iv: string, input: string): string;
48
-
49
- /**
50
- * aescbc解密
51
- * @param key
52
- * @param iv
53
- * @param input
54
- */
55
- public aesCbcDecrypt(key: string, iv: string, input: string): string;
56
- }
57
-
58
- export { };
1
+ declare global {
2
+ var Encrypt: Encrypt;
3
+ }
4
+
5
+ interface Encrypt {
6
+ /**
7
+ * md5加密
8
+ * @param input
9
+ */
10
+ public md5(input: string): string;
11
+
12
+ /**
13
+ * sha1加密
14
+ * @param input
15
+ */
16
+ public sha1(input: string): string;
17
+
18
+ /**
19
+ * sha256加密
20
+ * @param input
21
+ */
22
+ public sha256(input: string): string;
23
+
24
+ /**
25
+ * base64 encode
26
+ * @param input
27
+ */
28
+ public base64Encode(input: string|byte[]): string;
29
+
30
+ /**
31
+ * base64 decode
32
+ * @param input
33
+ */
34
+ public base64Decode(input: string): string;
35
+
36
+ /**
37
+ * 生成iv
38
+ */
39
+ public generateIv(): string;
40
+
41
+ /**
42
+ * aescbc加密
43
+ * @param key
44
+ * @param iv
45
+ * @param input
46
+ */
47
+ public aesCbcEncrypt(key: string, iv: string, input: string): string;
48
+
49
+ /**
50
+ * aescbc解密
51
+ * @param key
52
+ * @param iv
53
+ * @param input
54
+ */
55
+ public aesCbcDecrypt(key: string, iv: string, input: string): string;
56
+ }
57
+
58
+ export { };
@@ -1,39 +1,39 @@
1
- declare global {
2
- var Engines: Engines;
3
- }
4
-
5
- interface Engines {
6
- /**
7
- * 执行脚本
8
- * @param file 文件路径,相对根目录的路径
9
- */
10
- public executeScript(file: string): void;
11
-
12
- /**
13
- * 执行脚本
14
- * @param content 脚本内容
15
- */
16
- public executeScriptStr(name: string, content: string): void;
17
-
18
- /**
19
- * 关闭当前线程和子线程所有脚本(包含定时器、socket、Hid等;不会关闭hooks脚本)
20
- */
21
- public closeAll(): void;
22
-
23
- /**
24
- * 关闭当前线程之外的其他线程和子线程(包含定时器、socket、Hid等;不会关闭hooks脚本)
25
- */
26
- public closeOther(): void;
27
-
28
- /**
29
- * 关闭hooks脚本
30
- */
31
- public closeHook(): void;
32
-
33
- /**
34
- * 返回所有子脚本的数量
35
- */
36
- public childScriptCount(): number;
37
- }
38
-
39
- export { };
1
+ declare global {
2
+ var Engines: Engines;
3
+ }
4
+
5
+ interface Engines {
6
+ /**
7
+ * 执行脚本
8
+ * @param file 文件路径,相对根目录的路径
9
+ */
10
+ public executeScript(file: string): void;
11
+
12
+ /**
13
+ * 执行脚本
14
+ * @param content 脚本内容
15
+ */
16
+ public executeScriptStr(name: string, content: string): void;
17
+
18
+ /**
19
+ * 关闭当前线程和子线程所有脚本(包含定时器、socket、Hid等;不会关闭hooks脚本)
20
+ */
21
+ public closeAll(): void;
22
+
23
+ /**
24
+ * 关闭当前线程之外的其他线程和子线程(包含定时器、socket、Hid等;不会关闭hooks脚本)
25
+ */
26
+ public closeOther(): void;
27
+
28
+ /**
29
+ * 关闭hooks脚本
30
+ */
31
+ public closeHook(): void;
32
+
33
+ /**
34
+ * 返回所有子脚本的数量
35
+ */
36
+ public childScriptCount(): number;
37
+ }
38
+
39
+ export { };