@midscene/android 0.15.6-beta-20250427100912.0 → 0.16.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.js CHANGED
@@ -254,6 +254,10 @@ ${Object.keys(size).filter((key) => size[key]).map(
254
254
  await adb.shell(
255
255
  'app_process -Djava.class.path=/data/local/tmp/yadb /data/local/tmp com.ysbing.yadb.Main -keyboard "~CLEAR~"'
256
256
  );
257
+ if (await adb.isSoftKeyboardPresent()) {
258
+ return;
259
+ }
260
+ await this.mouse.click(element.center[0], element.center[1]);
257
261
  }
258
262
  async forceScreenshot(path2) {
259
263
  await this.ensureYadb();
package/dist/lib/index.js CHANGED
@@ -294,6 +294,10 @@ ${Object.keys(size).filter((key) => size[key]).map(
294
294
  await adb.shell(
295
295
  'app_process -Djava.class.path=/data/local/tmp/yadb /data/local/tmp com.ysbing.yadb.Main -keyboard "~CLEAR~"'
296
296
  );
297
+ if (await adb.isSoftKeyboardPresent()) {
298
+ return;
299
+ }
300
+ await this.mouse.click(element.center[0], element.center[1]);
297
301
  }
298
302
  async forceScreenshot(path2) {
299
303
  await this.ensureYadb();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/android",
3
- "version": "0.15.6-beta-20250427100912.0",
3
+ "version": "0.16.0",
4
4
  "description": "Android automation library for Midscene",
5
5
  "main": "./dist/lib/index.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -17,9 +17,9 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "appium-adb": "12.12.1",
20
- "@midscene/shared": "0.15.6-beta-20250427100912.0",
21
- "@midscene/core": "0.15.6-beta-20250427100912.0",
22
- "@midscene/web": "0.15.6-beta-20250427100912.0"
20
+ "@midscene/core": "0.16.0",
21
+ "@midscene/web": "0.16.0",
22
+ "@midscene/shared": "0.16.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@modern-js/module-tools": "2.60.6",