@midscene/android-playground 1.10.7-beta-20260722111246.0 → 1.10.7
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/bin.mjs +1 -1
- package/dist/es/index.mjs +1 -1
- package/dist/lib/bin.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/types/platform.d.ts +2 -0
- package/package.json +5 -5
- package/static/index.html +1 -1
- package/static/static/js/{index.7712c0ff.js → index.c2594a44.js} +23 -23
- package/static/static/js/index.c2594a44.js.map +1 -0
- package/static/static/js/index.7712c0ff.js.map +0 -1
- /package/static/static/js/{index.7712c0ff.js.LICENSE.txt → index.c2594a44.js.LICENSE.txt} +0 -0
package/dist/es/bin.mjs
CHANGED
|
@@ -89,7 +89,7 @@ const androidPlaygroundPlatform = definePlaygroundPlatform({
|
|
|
89
89
|
const connectAgent = async ()=>{
|
|
90
90
|
const device = new AndroidDevice(deviceId);
|
|
91
91
|
await device.connect();
|
|
92
|
-
return new AndroidAgent(device);
|
|
92
|
+
return new AndroidAgent(device, options?.getAgentOptions?.());
|
|
93
93
|
};
|
|
94
94
|
if (options?.scrcpyServer) options.scrcpyServer.currentDeviceId = deviceId;
|
|
95
95
|
const agent = await connectAgent();
|
package/dist/es/index.mjs
CHANGED
|
@@ -89,7 +89,7 @@ const androidPlaygroundPlatform = definePlaygroundPlatform({
|
|
|
89
89
|
const connectAgent = async ()=>{
|
|
90
90
|
const device = new AndroidDevice(deviceId);
|
|
91
91
|
await device.connect();
|
|
92
|
-
return new AndroidAgent(device);
|
|
92
|
+
return new AndroidAgent(device, options?.getAgentOptions?.());
|
|
93
93
|
};
|
|
94
94
|
if (options?.scrcpyServer) options.scrcpyServer.currentDeviceId = deviceId;
|
|
95
95
|
const agent = await connectAgent();
|
package/dist/lib/bin.js
CHANGED
|
@@ -104,7 +104,7 @@ const androidPlaygroundPlatform = (0, playground_namespaceObject.definePlaygroun
|
|
|
104
104
|
const connectAgent = async ()=>{
|
|
105
105
|
const device = new android_namespaceObject.AndroidDevice(deviceId);
|
|
106
106
|
await device.connect();
|
|
107
|
-
return new android_namespaceObject.AndroidAgent(device);
|
|
107
|
+
return new android_namespaceObject.AndroidAgent(device, options?.getAgentOptions?.());
|
|
108
108
|
};
|
|
109
109
|
if (options?.scrcpyServer) options.scrcpyServer.currentDeviceId = deviceId;
|
|
110
110
|
const agent = await connectAgent();
|
package/dist/lib/index.js
CHANGED
|
@@ -119,7 +119,7 @@ const androidPlaygroundPlatform = (0, playground_namespaceObject.definePlaygroun
|
|
|
119
119
|
const connectAgent = async ()=>{
|
|
120
120
|
const device = new android_namespaceObject.AndroidDevice(deviceId);
|
|
121
121
|
await device.connect();
|
|
122
|
-
return new android_namespaceObject.AndroidAgent(device);
|
|
122
|
+
return new android_namespaceObject.AndroidAgent(device, options?.getAgentOptions?.());
|
|
123
123
|
};
|
|
124
124
|
if (options?.scrcpyServer) options.scrcpyServer.currentDeviceId = deviceId;
|
|
125
125
|
const agent = await connectAgent();
|
package/dist/types/platform.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type AndroidAgentOpt } from '@midscene/android';
|
|
1
2
|
export interface ScrcpyServerController {
|
|
2
3
|
currentDeviceId: string | null;
|
|
3
4
|
launch(port?: number): Promise<unknown>;
|
|
@@ -7,5 +8,6 @@ export interface AndroidPlatformOptions {
|
|
|
7
8
|
staticDir?: string;
|
|
8
9
|
scrcpyServer?: ScrcpyServerController;
|
|
9
10
|
scrcpyPort?: number;
|
|
11
|
+
getAgentOptions?: () => AndroidAgentOpt;
|
|
10
12
|
}
|
|
11
13
|
export declare const androidPlaygroundPlatform: import("@midscene/playground").PlaygroundPlatformDescriptor<AndroidPlatformOptions | undefined>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/android-playground",
|
|
3
|
-
"version": "1.10.7
|
|
3
|
+
"version": "1.10.7",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/midscene.git",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"express": "^4.21.2",
|
|
40
40
|
"open": "10.1.0",
|
|
41
41
|
"socket.io": "^4.8.1",
|
|
42
|
-
"@midscene/android": "1.10.7
|
|
43
|
-
"@midscene/core": "1.10.7
|
|
44
|
-
"@midscene/playground": "1.10.7
|
|
45
|
-
"@midscene/shared": "1.10.7
|
|
42
|
+
"@midscene/android": "1.10.7",
|
|
43
|
+
"@midscene/core": "1.10.7",
|
|
44
|
+
"@midscene/playground": "1.10.7",
|
|
45
|
+
"@midscene/shared": "1.10.7"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@rslib/core": "^0.18.3",
|
package/static/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html><head><title>Midscene Android Playground</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.ed140d90.js"></script><script defer src="/static/js/859.00e55613.js"></script><script defer src="/static/js/index.
|
|
1
|
+
<!doctype html><html><head><title>Midscene Android Playground</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.ed140d90.js"></script><script defer src="/static/js/859.00e55613.js"></script><script defer src="/static/js/index.c2594a44.js"></script><link href="/static/css/index.2b6b43ad.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|