deeke-script-app 1.6.3 → 1.6.5

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 (93) 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/Device.d.ts +88 -88
  7. package/@deekeScript/@type/interface/Encrypt.d.ts +58 -58
  8. package/@deekeScript/@type/interface/Engines.d.ts +39 -39
  9. package/@deekeScript/@type/interface/FloatDialogs.d.ts +35 -35
  10. package/@deekeScript/@type/interface/ForegroundServiceBridge.d.ts +31 -31
  11. package/@deekeScript/@type/interface/Hid.d.ts +342 -342
  12. package/@deekeScript/@type/interface/Http.d.ts +41 -41
  13. package/@deekeScript/@type/interface/Images.d.ts +71 -71
  14. package/@deekeScript/@type/interface/Java.d.ts +7 -7
  15. package/@deekeScript/@type/interface/KeyBoards.d.ts +27 -27
  16. package/@deekeScript/@type/interface/Log.d.ts +16 -16
  17. package/@deekeScript/@type/interface/NotificationBridge.d.ts +28 -28
  18. package/@deekeScript/@type/interface/{SocketIOClient.d.ts → SocketIoClient.d.ts} +76 -76
  19. package/@deekeScript/@type/interface/System.d.ts +114 -114
  20. package/@deekeScript/@type/interface/UiObject.d.ts +192 -290
  21. package/README.md +67 -67
  22. package/deekeScript.json +669 -669
  23. package/deekeScriptZipBuild +48 -48
  24. package/gulpfile +17 -17
  25. package/init +32 -32
  26. package/jsconfig.json +11 -11
  27. package/package.json +42 -42
  28. package/script/9/common/util.js +19 -19
  29. package/script/9/dy/common/common.js +9 -9
  30. package/script/9/dy/common/version.js +3 -3
  31. package/script/9/dy/common/video.js +7 -7
  32. package/script/9/dy/task/taskOne.js +6 -6
  33. package/script/9/dy/version/310701.js +6 -6
  34. package/script/statistics/statistics.js +120 -120
  35. package/script/task/douyin_zan.js +37 -37
  36. package/script/task/dy.js +6 -6
  37. package/script/task/dyApp.js +6 -6
  38. package/script/task/tool.js +9 -9
  39. package/script/task.html +4 -4
  40. package/script/test/5.js +2 -2
  41. package/script/test/8.js +16 -16
  42. package/src/12/main.js +40 -40
  43. package/src/12/task.js +10 -10
  44. package/src/9/common/util.js +28 -28
  45. package/src/9/dy/common/common.js +12 -12
  46. package/src/9/dy/common/version.js +11 -11
  47. package/src/9/dy/common/video.js +14 -14
  48. package/src/9/dy/task/taskOne.js +13 -13
  49. package/src/9/dy/version/310701.js +7 -7
  50. package/src/statistics/statistics.js +120 -120
  51. package/src/task/douyin_zan.js +89 -89
  52. package/src/task/dy.js +14 -14
  53. package/src/task/dyApp.js +7 -7
  54. package/src/task/tool.js +19 -19
  55. package/src/task.html +4 -4
  56. package/src/test/2.js +2 -2
  57. package/src/test/5.js +4 -4
  58. package/src/test/8.js +36 -36
  59. package/test/2.0/engines/enginesSimple.js +72 -72
  60. package/test/2.js +6 -6
  61. package/test/Access.js +9 -9
  62. package/test/SocketIOClient.js +39 -39
  63. package/test/SocketIOServer.js +49 -49
  64. package/test/Storage.js +3 -3
  65. package/test/console.js +5 -5
  66. package/test/deekeScriptJson.js +5 -5
  67. package/test/device.js +11 -11
  68. package/test/encrypt.js +3 -3
  69. package/test/engines/1.js +4 -4
  70. package/test/engines/eng/1.js +8 -8
  71. package/test/engines/engines.js +6 -6
  72. package/test/engines/relative.dir.js +8 -8
  73. package/test/engines/relative.js +1 -1
  74. package/test/engines/test.js +6 -6
  75. package/test/engines.js +5 -5
  76. package/test/extension.js +27 -27
  77. package/test/files.js +7 -7
  78. package/test/foreground.js +23 -23
  79. package/test/http.js +19 -19
  80. package/test/images/findColor.js +15 -15
  81. package/test/java.js +28 -28
  82. package/test/log.js +10 -10
  83. package/test/module/module.js +4 -4
  84. package/test/notification.js +26 -26
  85. package/test/package.js +3 -3
  86. package/test/permise.js +29 -29
  87. package/test/thread.js +11 -11
  88. package/test/timer.close.js +27 -27
  89. package/test/timer.js +25 -25
  90. package/test/timer.stop.js +28 -28
  91. package/test/webSocket.js +22 -22
  92. package/uglify-config.json +15 -15
  93. package/images/test/statistics.png +0 -0
@@ -1,114 +1,114 @@
1
- declare global {
2
- var System: System;
3
- }
4
-
5
- interface System {
6
- /**
7
- * 休眠
8
- * @param milliSecond 毫秒
9
- */
10
- public sleep(milliSecond: number): void;
11
-
12
- /**
13
- * 释放内存
14
- */
15
- public gc(): void;
16
-
17
- /**
18
- * 获取当前时间 yyyy-MM-dd HH:mm:ss.SSS 格式
19
- */
20
- public time(): string;
21
-
22
- /**
23
- * 获取当前Activity
24
- */
25
- public currentActivity(): string;
26
-
27
- /**
28
- * 获取当前包名
29
- */
30
- public currentPackage(): string;
31
-
32
- /**
33
- * 将内容设置到剪切板中
34
- * @param text 剪切板内容
35
- */
36
- public setClip(text: string): void;
37
-
38
- /**
39
- * 获取剪切板内容
40
- */
41
- public getClip(): string;
42
-
43
- /**
44
- * 吐司
45
- * @param text 显示文本
46
- */
47
- public toast(text: string): void;
48
-
49
- /**
50
- * 吐司(显示时间较长)
51
- * @param text 显示文本
52
- */
53
- public toastLong(text: string): void;
54
-
55
- /**
56
- *
57
- * @param activity 等待的Activity
58
- * @param period 每次时间间隔
59
- * @param timeout 等待的总时间
60
- */
61
- public waitForActivity(activity: string, period: number, timeout: number): boolean;
62
-
63
- /**
64
- *
65
- * @param activity 等待的PackageName的App启动
66
- * @param period 每次时间间隔
67
- * @param timeout 等待的总时间
68
- */
69
- public waitForPackage(packageName: string, period: number, timeout: number): boolean;
70
-
71
- /**
72
- * 停止所有脚本
73
- */
74
- public exit(): void;
75
-
76
- /**
77
- * 缓存清理
78
- */
79
- public cleanUp(): void;
80
-
81
- /**
82
- * 获取智能话术token
83
- * @param key 智能话术key
84
- * @param secret 智能话术secret
85
- */
86
- public AiSpeechToken(key: string, secret: string): string;
87
-
88
- /**
89
- * 生成窗口元素,使用App的上传日志,可以拿到文件
90
- */
91
- public generateWindowElements(): void;
92
-
93
- /**
94
- * 获取接口返回的内容
95
- * @param key
96
- * @param dataForm
97
- * @param content
98
- */
99
- public getDataFrom(key: string, dataForm: string, content: string): string | null;
100
-
101
- /**
102
- * 是否显示时间悬浮窗窗口
103
- * @param show 是否显示
104
- */
105
- public setTimeWindowShow(show: boolean);
106
-
107
- /**
108
- * 切换无障碍模式,快速模式下,将自动过滤非重要控件。注意通过id或者text方式获取控件不受此模式影响;
109
- * @param mode 快速模式mode为fast,非快速模式为!fast
110
- */
111
- public setAccessibilityMode(mode: string);
112
- }
113
-
114
- export { };
1
+ declare global {
2
+ var System: System;
3
+ }
4
+
5
+ interface System {
6
+ /**
7
+ * 休眠
8
+ * @param milliSecond 毫秒
9
+ */
10
+ public sleep(milliSecond: number): void;
11
+
12
+ /**
13
+ * 释放内存
14
+ */
15
+ public gc(): void;
16
+
17
+ /**
18
+ * 获取当前时间 yyyy-MM-dd HH:mm:ss.SSS 格式
19
+ */
20
+ public time(): string;
21
+
22
+ /**
23
+ * 获取当前Activity
24
+ */
25
+ public currentActivity(): string;
26
+
27
+ /**
28
+ * 获取当前包名
29
+ */
30
+ public currentPackage(): string;
31
+
32
+ /**
33
+ * 将内容设置到剪切板中
34
+ * @param text 剪切板内容
35
+ */
36
+ public setClip(text: string): void;
37
+
38
+ /**
39
+ * 获取剪切板内容
40
+ */
41
+ public getClip(): string;
42
+
43
+ /**
44
+ * 吐司
45
+ * @param text 显示文本
46
+ */
47
+ public toast(text: string): void;
48
+
49
+ /**
50
+ * 吐司(显示时间较长)
51
+ * @param text 显示文本
52
+ */
53
+ public toastLong(text: string): void;
54
+
55
+ /**
56
+ *
57
+ * @param activity 等待的Activity
58
+ * @param period 每次时间间隔
59
+ * @param timeout 等待的总时间
60
+ */
61
+ public waitForActivity(activity: string, period: number, timeout: number): boolean;
62
+
63
+ /**
64
+ *
65
+ * @param activity 等待的PackageName的App启动
66
+ * @param period 每次时间间隔
67
+ * @param timeout 等待的总时间
68
+ */
69
+ public waitForPackage(packageName: string, period: number, timeout: number): boolean;
70
+
71
+ /**
72
+ * 停止所有脚本
73
+ */
74
+ public exit(): void;
75
+
76
+ /**
77
+ * 缓存清理
78
+ */
79
+ public cleanUp(): void;
80
+
81
+ /**
82
+ * 获取智能话术token
83
+ * @param key 智能话术key
84
+ * @param secret 智能话术secret
85
+ */
86
+ public AiSpeechToken(key: string, secret: string): string;
87
+
88
+ /**
89
+ * 生成窗口元素,使用App的上传日志,可以拿到文件
90
+ */
91
+ public generateWindowElements(): void;
92
+
93
+ /**
94
+ * 获取接口返回的内容
95
+ * @param key
96
+ * @param dataForm
97
+ * @param content
98
+ */
99
+ public getDataFrom(key: string, dataForm: string, content: string): string | null;
100
+
101
+ /**
102
+ * 是否显示时间悬浮窗窗口
103
+ * @param show 是否显示
104
+ */
105
+ public setTimeWindowShow(show: boolean);
106
+
107
+ /**
108
+ * 切换无障碍模式,快速模式下,将自动过滤非重要控件。注意通过id或者text方式获取控件不受此模式影响;
109
+ * @param mode 快速模式mode为fast,非快速模式为!fast
110
+ */
111
+ public setAccessibilityMode(mode: string);
112
+ }
113
+
114
+ export { };