@midscene/android 0.29.7-beta-20250930035234.0 → 0.30.0
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/dist/es/index.mjs +4 -0
- package/dist/lib/index.js +4 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +4 -4
package/dist/es/index.mjs
CHANGED
|
@@ -935,6 +935,10 @@ class AndroidAgent extends Agent {
|
|
|
935
935
|
const device = this.page;
|
|
936
936
|
await device.launch(uri);
|
|
937
937
|
}
|
|
938
|
+
async runAdbShell(command) {
|
|
939
|
+
const adb = await this.page.getAdb();
|
|
940
|
+
return await adb.shell(command);
|
|
941
|
+
}
|
|
938
942
|
}
|
|
939
943
|
async function agentFromAdbDevice(deviceId, opts) {
|
|
940
944
|
if (!deviceId) {
|
package/dist/lib/index.js
CHANGED
|
@@ -982,6 +982,10 @@ class AndroidAgent extends agent_namespaceObject.Agent {
|
|
|
982
982
|
const device = this.page;
|
|
983
983
|
await device.launch(uri);
|
|
984
984
|
}
|
|
985
|
+
async runAdbShell(command) {
|
|
986
|
+
const adb = await this.page.getAdb();
|
|
987
|
+
return await adb.shell(command);
|
|
988
|
+
}
|
|
985
989
|
}
|
|
986
990
|
async function agentFromAdbDevice(deviceId, opts) {
|
|
987
991
|
if (!deviceId) {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare function agentFromAdbDevice(deviceId?: string, opts?: AndroidAgen
|
|
|
14
14
|
|
|
15
15
|
export declare class AndroidAgent extends Agent<AndroidDevice> {
|
|
16
16
|
launch(uri: string): Promise<void>;
|
|
17
|
+
runAdbShell(command: string): Promise<string>;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
declare type AndroidAgentOpt = AgentOpt;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/android",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "Android automation library for Midscene",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Android UI automation",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"appium-adb": "12.12.1",
|
|
30
|
-
"@midscene/
|
|
31
|
-
"@midscene/
|
|
30
|
+
"@midscene/shared": "0.30.0",
|
|
31
|
+
"@midscene/core": "0.30.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@rslib/core": "^0.11.2",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"typescript": "^5.8.3",
|
|
38
38
|
"tsx": "^4.19.2",
|
|
39
39
|
"vitest": "3.0.5",
|
|
40
|
-
"@midscene/playground": "0.
|
|
40
|
+
"@midscene/playground": "0.30.0"
|
|
41
41
|
},
|
|
42
42
|
"license": "MIT",
|
|
43
43
|
"scripts": {
|