@skrillex1224/android-toolkit 1.0.3 → 1.0.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.
- package/README.md +7 -8
- package/browser.d.ts +12 -0
- package/dist/browser.js +21 -4
- package/dist/browser.js.map +3 -3
- package/dist/index.cjs +358 -368
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +357 -367
- package/dist/index.js.map +4 -4
- package/index.d.ts +11 -7
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export interface AndroidContext {
|
|
|
4
4
|
serial: string;
|
|
5
5
|
packageName: string;
|
|
6
6
|
adbPath: string;
|
|
7
|
-
fridaPath: string;
|
|
8
7
|
actorKey?: string;
|
|
9
8
|
appVersion?: string;
|
|
10
9
|
slotKey?: string;
|
|
@@ -53,7 +52,7 @@ export namespace Constants {
|
|
|
53
52
|
export const UnicodeIme: {
|
|
54
53
|
packageName: string;
|
|
55
54
|
component: string;
|
|
56
|
-
|
|
55
|
+
inputAction: string;
|
|
57
56
|
};
|
|
58
57
|
export const ActorInfo: Record<string, {
|
|
59
58
|
key: string;
|
|
@@ -99,10 +98,10 @@ export interface AndroidToolkit {
|
|
|
99
98
|
};
|
|
100
99
|
DeviceInput: AndroidToolkitRuntime['DeviceInput'];
|
|
101
100
|
DeviceView: AndroidToolkitRuntime['DeviceView'];
|
|
101
|
+
DeviceSQLite: AndroidToolkitRuntime['DeviceSQLite'];
|
|
102
102
|
Device: AndroidToolkitRuntime['Device'];
|
|
103
103
|
Mutation: AndroidToolkitRuntime['Mutation'];
|
|
104
104
|
Share: AndroidToolkitRuntime['Share'];
|
|
105
|
-
Frida: AndroidToolkitRuntime['Frida'];
|
|
106
105
|
Constants: typeof Constants;
|
|
107
106
|
Errors: typeof Errors;
|
|
108
107
|
Logger: AndroidToolkitRuntime['Logger'];
|
|
@@ -123,6 +122,10 @@ export interface AndroidToolkitRuntime {
|
|
|
123
122
|
hasPushed(): boolean;
|
|
124
123
|
};
|
|
125
124
|
Device: Record<string, (...args: any[]) => Promise<any>>;
|
|
125
|
+
DeviceSQLite: {
|
|
126
|
+
query(ctx: AndroidContext, options: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
127
|
+
health(ctx: AndroidContext, options?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
128
|
+
};
|
|
126
129
|
DeviceInput: {
|
|
127
130
|
click(ctx: AndroidContext, selectorOrPoint: ViewSelector | ViewBounds | {x: number; y: number}, options?: Record<string, unknown>): Promise<unknown>;
|
|
128
131
|
tap(ctx: AndroidContext, selectorOrPoint: ViewSelector | ViewBounds | {x: number; y: number}, options?: Record<string, unknown>): Promise<unknown>;
|
|
@@ -154,11 +157,12 @@ export interface AndroidToolkitRuntime {
|
|
|
154
157
|
captureScreen(ctx: AndroidContext, options?: Record<string, unknown>): Promise<string>;
|
|
155
158
|
captureLink(ctx: AndroidContext, options?: Record<string, unknown>): Promise<{link: string; source: string; payloadSnapshot: string}>;
|
|
156
159
|
};
|
|
157
|
-
Frida: {
|
|
158
|
-
querySQLite(ctx: AndroidContext, options: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
159
|
-
health(ctx: AndroidContext): Promise<Record<string, unknown>>;
|
|
160
|
-
};
|
|
161
160
|
Logger: Record<string, any>;
|
|
162
161
|
}
|
|
163
162
|
|
|
164
163
|
export function useAndroidToolKit(): AndroidToolkit;
|
|
164
|
+
export namespace useAndroidToolKit {
|
|
165
|
+
const Mode: {
|
|
166
|
+
default: 'default';
|
|
167
|
+
};
|
|
168
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skrillex1224/android-toolkit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Native Android automation toolkit for Apify-compatible actors.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"prepublishOnly": "npm run build"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
|
-
"node": ">=
|
|
37
|
+
"node": ">=22.5.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"fast-xml-parser": "^4.5.1",
|