@midscene/android 0.30.6-beta-20251023082056.0 → 0.30.6-beta-20251023094958.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 CHANGED
@@ -462,7 +462,8 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
462
462
  const logicalHeight = Math.round(height * scale);
463
463
  return {
464
464
  width: logicalWidth,
465
- height: logicalHeight
465
+ height: logicalHeight,
466
+ dpr: this.devicePixelRatio
466
467
  };
467
468
  }
468
469
  adjustCoordinates(x, y) {
@@ -551,7 +552,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
551
552
  const adb = await this.getAdb();
552
553
  await this.mouseClick(element.center[0], element.center[1]);
553
554
  const IME_STRATEGY = ((null == (_this_options = this.options) ? void 0 : _this_options.imeStrategy) || globalConfigManager.getEnvConfigValue(MIDSCENE_ANDROID_IME_STRATEGY)) ?? IME_STRATEGY_YADB_FOR_NON_ASCII;
554
- if (IME_STRATEGY === IME_STRATEGY_YADB_FOR_NON_ASCII) await repeat(100, ()=>adb.keyevent(67));
555
+ if (IME_STRATEGY === IME_STRATEGY_YADB_FOR_NON_ASCII) await adb.clearTextField(100);
555
556
  else await adb.shell(`app_process${this.getDisplayArg()} -Djava.class.path=/data/local/tmp/yadb /data/local/tmp com.ysbing.yadb.Main -keyboard "~CLEAR~"`);
556
557
  if (await adb.isSoftKeyboardPresent()) return;
557
558
  await this.mouseClick(element.center[0], element.center[1]);
package/dist/lib/index.js CHANGED
@@ -508,7 +508,8 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
508
508
  const logicalHeight = Math.round(height * scale);
509
509
  return {
510
510
  width: logicalWidth,
511
- height: logicalHeight
511
+ height: logicalHeight,
512
+ dpr: this.devicePixelRatio
512
513
  };
513
514
  }
514
515
  adjustCoordinates(x, y) {
@@ -597,7 +598,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
597
598
  const adb = await this.getAdb();
598
599
  await this.mouseClick(element.center[0], element.center[1]);
599
600
  const IME_STRATEGY = ((null == (_this_options = this.options) ? void 0 : _this_options.imeStrategy) || env_namespaceObject.globalConfigManager.getEnvConfigValue(env_namespaceObject.MIDSCENE_ANDROID_IME_STRATEGY)) ?? IME_STRATEGY_YADB_FOR_NON_ASCII;
600
- if (IME_STRATEGY === IME_STRATEGY_YADB_FOR_NON_ASCII) await (0, shared_utils_namespaceObject.repeat)(100, ()=>adb.keyevent(67));
601
+ if (IME_STRATEGY === IME_STRATEGY_YADB_FOR_NON_ASCII) await adb.clearTextField(100);
601
602
  else await adb.shell(`app_process${this.getDisplayArg()} -Djava.class.path=/data/local/tmp/yadb /data/local/tmp com.ysbing.yadb.Main -keyboard "~CLEAR~"`);
602
603
  if (await adb.isSoftKeyboardPresent()) return;
603
604
  await this.mouseClick(element.center[0], element.center[1]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/android",
3
- "version": "0.30.6-beta-20251023082056.0",
3
+ "version": "0.30.6-beta-20251023094958.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/core": "0.30.6-beta-20251023082056.0",
31
- "@midscene/shared": "0.30.6-beta-20251023082056.0"
30
+ "@midscene/core": "0.30.6-beta-20251023094958.0",
31
+ "@midscene/shared": "0.30.6-beta-20251023094958.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.30.6-beta-20251023082056.0"
40
+ "@midscene/playground": "0.30.6-beta-20251023094958.0"
41
41
  },
42
42
  "license": "MIT",
43
43
  "scripts": {