@midscene/android 0.27.5-beta-20250828012822.0 → 0.27.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/dist/es/index.mjs +1 -4
- package/dist/lib/index.js +1 -4
- package/package.json +3 -3
package/dist/es/index.mjs
CHANGED
|
@@ -493,14 +493,11 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
|
|
|
493
493
|
return result;
|
|
494
494
|
}
|
|
495
495
|
async clearInput(element) {
|
|
496
|
-
var _this_options;
|
|
497
496
|
if (!element) return;
|
|
498
497
|
await this.ensureYadb();
|
|
499
498
|
const adb = await this.getAdb();
|
|
500
499
|
await this.mouseClick(element.center[0], element.center[1]);
|
|
501
|
-
|
|
502
|
-
if ('yadb-for-non-ascii' === IME_STRATEGY) for(let i = 0; i < 100; i++)await adb.shell(`input${this.getDisplayArg()} keyevent 67`);
|
|
503
|
-
else await adb.shell(`app_process${this.getDisplayArg()} -Djava.class.path=/data/local/tmp/yadb /data/local/tmp com.ysbing.yadb.Main -keyboard "~CLEAR~"`);
|
|
500
|
+
await adb.shell(`app_process${this.getDisplayArg()} -Djava.class.path=/data/local/tmp/yadb /data/local/tmp com.ysbing.yadb.Main -keyboard "~CLEAR~"`);
|
|
504
501
|
if (await adb.isSoftKeyboardPresent()) return;
|
|
505
502
|
await this.mouseClick(element.center[0], element.center[1]);
|
|
506
503
|
}
|
package/dist/lib/index.js
CHANGED
|
@@ -539,14 +539,11 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
|
|
|
539
539
|
return result;
|
|
540
540
|
}
|
|
541
541
|
async clearInput(element) {
|
|
542
|
-
var _this_options;
|
|
543
542
|
if (!element) return;
|
|
544
543
|
await this.ensureYadb();
|
|
545
544
|
const adb = await this.getAdb();
|
|
546
545
|
await this.mouseClick(element.center[0], element.center[1]);
|
|
547
|
-
|
|
548
|
-
if ('yadb-for-non-ascii' === IME_STRATEGY) for(let i = 0; i < 100; i++)await adb.shell(`input${this.getDisplayArg()} keyevent 67`);
|
|
549
|
-
else await adb.shell(`app_process${this.getDisplayArg()} -Djava.class.path=/data/local/tmp/yadb /data/local/tmp com.ysbing.yadb.Main -keyboard "~CLEAR~"`);
|
|
546
|
+
await adb.shell(`app_process${this.getDisplayArg()} -Djava.class.path=/data/local/tmp/yadb /data/local/tmp com.ysbing.yadb.Main -keyboard "~CLEAR~"`);
|
|
550
547
|
if (await adb.isSoftKeyboardPresent()) return;
|
|
551
548
|
await this.mouseClick(element.center[0], element.center[1]);
|
|
552
549
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/android",
|
|
3
|
-
"version": "0.27.5
|
|
3
|
+
"version": "0.27.5",
|
|
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/core": "0.27.5
|
|
31
|
-
"@midscene/shared": "0.27.5
|
|
30
|
+
"@midscene/core": "0.27.5",
|
|
31
|
+
"@midscene/shared": "0.27.5"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@microsoft/api-extractor": "^7.52.10",
|