@midscene/android 0.30.5 → 0.30.6-beta-20251021115636.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
@@ -104,7 +104,11 @@ class AndroidDevice {
104
104
  }),
105
105
  defineActionKeyboardPress(async (param)=>{
106
106
  const key = param.keyName;
107
- await this.keyboardPress(key);
107
+ if (Array.isArray(key)) {
108
+ const keyToPress = key[key.length - 1];
109
+ console.warn(`[Android] Key combinations are not supported. Using last key: "${keyToPress}"`, "Original input:", key);
110
+ await this.keyboardPress(keyToPress);
111
+ } else await this.keyboardPress(key);
108
112
  }),
109
113
  defineAction({
110
114
  name: 'AndroidBackButton',
package/dist/lib/index.js CHANGED
@@ -150,7 +150,11 @@ class AndroidDevice {
150
150
  }),
151
151
  (0, device_namespaceObject.defineActionKeyboardPress)(async (param)=>{
152
152
  const key = param.keyName;
153
- await this.keyboardPress(key);
153
+ if (Array.isArray(key)) {
154
+ const keyToPress = key[key.length - 1];
155
+ console.warn(`[Android] Key combinations are not supported. Using last key: "${keyToPress}"`, "Original input:", key);
156
+ await this.keyboardPress(keyToPress);
157
+ } else await this.keyboardPress(key);
154
158
  }),
155
159
  (0, device_namespaceObject.defineAction)({
156
160
  name: 'AndroidBackButton',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/android",
3
- "version": "0.30.5",
3
+ "version": "0.30.6-beta-20251021115636.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.5",
31
- "@midscene/shared": "0.30.5"
30
+ "@midscene/shared": "0.30.6-beta-20251021115636.0",
31
+ "@midscene/core": "0.30.6-beta-20251021115636.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.5"
40
+ "@midscene/playground": "0.30.6-beta-20251021115636.0"
41
41
  },
42
42
  "license": "MIT",
43
43
  "scripts": {