appium-android-driver 9.15.0 → 10.0.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.
Files changed (135) hide show
  1. package/CHANGELOG.md +121 -0
  2. package/build/lib/commands/app-management.d.ts +39 -26
  3. package/build/lib/commands/app-management.d.ts.map +1 -1
  4. package/build/lib/commands/app-management.js +59 -42
  5. package/build/lib/commands/app-management.js.map +1 -1
  6. package/build/lib/commands/appearance.d.ts +10 -4
  7. package/build/lib/commands/appearance.d.ts.map +1 -1
  8. package/build/lib/commands/appearance.js +10 -7
  9. package/build/lib/commands/appearance.js.map +1 -1
  10. package/build/lib/commands/bluetooth.d.ts +2 -2
  11. package/build/lib/commands/bluetooth.d.ts.map +1 -1
  12. package/build/lib/commands/bluetooth.js +2 -3
  13. package/build/lib/commands/bluetooth.js.map +1 -1
  14. package/build/lib/commands/context/exports.d.ts +2 -2
  15. package/build/lib/commands/context/exports.d.ts.map +1 -1
  16. package/build/lib/commands/context/exports.js +3 -3
  17. package/build/lib/commands/context/exports.js.map +1 -1
  18. package/build/lib/commands/device/emulator-actions.d.ts +25 -18
  19. package/build/lib/commands/device/emulator-actions.d.ts.map +1 -1
  20. package/build/lib/commands/device/emulator-actions.js +38 -40
  21. package/build/lib/commands/device/emulator-actions.js.map +1 -1
  22. package/build/lib/commands/device/emulator-console.d.ts +9 -2
  23. package/build/lib/commands/device/emulator-console.d.ts.map +1 -1
  24. package/build/lib/commands/device/emulator-console.js +9 -3
  25. package/build/lib/commands/device/emulator-console.js.map +1 -1
  26. package/build/lib/commands/deviceidle.d.ts +3 -2
  27. package/build/lib/commands/deviceidle.d.ts.map +1 -1
  28. package/build/lib/commands/deviceidle.js +3 -3
  29. package/build/lib/commands/deviceidle.js.map +1 -1
  30. package/build/lib/commands/execute.d.ts +6 -15
  31. package/build/lib/commands/execute.d.ts.map +1 -1
  32. package/build/lib/commands/execute.js +36 -93
  33. package/build/lib/commands/execute.js.map +1 -1
  34. package/build/lib/commands/file-actions.d.ts +13 -24
  35. package/build/lib/commands/file-actions.d.ts.map +1 -1
  36. package/build/lib/commands/file-actions.js +13 -38
  37. package/build/lib/commands/file-actions.js.map +1 -1
  38. package/build/lib/commands/geolocation.d.ts +9 -4
  39. package/build/lib/commands/geolocation.d.ts.map +1 -1
  40. package/build/lib/commands/geolocation.js +14 -6
  41. package/build/lib/commands/geolocation.js.map +1 -1
  42. package/build/lib/commands/image-injection.d.ts +2 -2
  43. package/build/lib/commands/image-injection.d.ts.map +1 -1
  44. package/build/lib/commands/image-injection.js +2 -3
  45. package/build/lib/commands/image-injection.js.map +1 -1
  46. package/build/lib/commands/intent.d.ts +70 -8
  47. package/build/lib/commands/intent.d.ts.map +1 -1
  48. package/build/lib/commands/intent.js +118 -16
  49. package/build/lib/commands/intent.js.map +1 -1
  50. package/build/lib/commands/keyboard.d.ts +2 -2
  51. package/build/lib/commands/keyboard.d.ts.map +1 -1
  52. package/build/lib/commands/keyboard.js +2 -4
  53. package/build/lib/commands/keyboard.js.map +1 -1
  54. package/build/lib/commands/lock/exports.d.ts +12 -8
  55. package/build/lib/commands/lock/exports.d.ts.map +1 -1
  56. package/build/lib/commands/lock/exports.js +12 -13
  57. package/build/lib/commands/lock/exports.js.map +1 -1
  58. package/build/lib/commands/media-projection.d.ts +41 -4
  59. package/build/lib/commands/media-projection.d.ts.map +1 -1
  60. package/build/lib/commands/media-projection.js +52 -11
  61. package/build/lib/commands/media-projection.js.map +1 -1
  62. package/build/lib/commands/memory.d.ts +4 -2
  63. package/build/lib/commands/memory.d.ts.map +1 -1
  64. package/build/lib/commands/memory.js +4 -3
  65. package/build/lib/commands/memory.js.map +1 -1
  66. package/build/lib/commands/network.d.ts +10 -4
  67. package/build/lib/commands/network.d.ts.map +1 -1
  68. package/build/lib/commands/network.js +17 -14
  69. package/build/lib/commands/network.js.map +1 -1
  70. package/build/lib/commands/nfc.d.ts +2 -2
  71. package/build/lib/commands/nfc.d.ts.map +1 -1
  72. package/build/lib/commands/nfc.js +2 -3
  73. package/build/lib/commands/nfc.js.map +1 -1
  74. package/build/lib/commands/performance.d.ts +3 -2
  75. package/build/lib/commands/performance.d.ts.map +1 -1
  76. package/build/lib/commands/performance.js +3 -4
  77. package/build/lib/commands/performance.js.map +1 -1
  78. package/build/lib/commands/permissions.d.ts +23 -5
  79. package/build/lib/commands/permissions.d.ts.map +1 -1
  80. package/build/lib/commands/permissions.js +27 -8
  81. package/build/lib/commands/permissions.js.map +1 -1
  82. package/build/lib/commands/shell.d.ts +3 -9
  83. package/build/lib/commands/shell.d.ts.map +1 -1
  84. package/build/lib/commands/shell.js +3 -10
  85. package/build/lib/commands/shell.js.map +1 -1
  86. package/build/lib/commands/streamscreen.d.ts +56 -6
  87. package/build/lib/commands/streamscreen.d.ts.map +1 -1
  88. package/build/lib/commands/streamscreen.js +28 -4
  89. package/build/lib/commands/streamscreen.js.map +1 -1
  90. package/build/lib/commands/system-bars.d.ts +6 -2
  91. package/build/lib/commands/system-bars.d.ts.map +1 -1
  92. package/build/lib/commands/system-bars.js +7 -7
  93. package/build/lib/commands/system-bars.js.map +1 -1
  94. package/build/lib/commands/time.d.ts +2 -2
  95. package/build/lib/commands/time.d.ts.map +1 -1
  96. package/build/lib/commands/time.js +3 -3
  97. package/build/lib/commands/time.js.map +1 -1
  98. package/build/lib/commands/types.d.ts +0 -588
  99. package/build/lib/commands/types.d.ts.map +1 -1
  100. package/build/lib/driver.d.ts +364 -12
  101. package/build/lib/driver.d.ts.map +1 -1
  102. package/build/lib/driver.js +2 -8
  103. package/build/lib/driver.js.map +1 -1
  104. package/build/lib/execute-method-map.d.ts +361 -0
  105. package/build/lib/execute-method-map.d.ts.map +1 -0
  106. package/build/lib/execute-method-map.js +437 -0
  107. package/build/lib/execute-method-map.js.map +1 -0
  108. package/lib/commands/app-management.js +68 -42
  109. package/lib/commands/appearance.js +10 -8
  110. package/lib/commands/bluetooth.js +2 -3
  111. package/lib/commands/context/exports.js +3 -3
  112. package/lib/commands/device/emulator-actions.js +28 -30
  113. package/lib/commands/device/emulator-console.js +9 -4
  114. package/lib/commands/deviceidle.js +3 -4
  115. package/lib/commands/execute.js +42 -124
  116. package/lib/commands/file-actions.js +13 -38
  117. package/lib/commands/geolocation.js +14 -6
  118. package/lib/commands/image-injection.js +2 -3
  119. package/lib/commands/intent.js +174 -16
  120. package/lib/commands/keyboard.js +2 -4
  121. package/lib/commands/lock/exports.js +12 -13
  122. package/lib/commands/media-projection.js +62 -11
  123. package/lib/commands/memory.js +4 -4
  124. package/lib/commands/network.js +14 -10
  125. package/lib/commands/nfc.js +2 -3
  126. package/lib/commands/performance.js +3 -4
  127. package/lib/commands/permissions.js +33 -14
  128. package/lib/commands/{shell.js → shell.ts} +8 -11
  129. package/lib/commands/streamscreen.js +39 -15
  130. package/lib/commands/system-bars.js +7 -9
  131. package/lib/commands/time.js +3 -3
  132. package/lib/commands/types.ts +0 -646
  133. package/lib/driver.ts +4 -16
  134. package/lib/execute-method-map.ts +464 -0
  135. package/package.json +2 -2
package/lib/driver.ts CHANGED
@@ -76,9 +76,7 @@ import {
76
76
  mobileClearApp,
77
77
  mobileInstallApp,
78
78
  installApp,
79
- mobileActivateApp,
80
79
  mobileIsAppInstalled,
81
- mobileQueryAppState,
82
80
  mobileRemoveApp,
83
81
  mobileTerminateApp,
84
82
  terminateApp,
@@ -109,16 +107,11 @@ import {
109
107
  } from './commands/element';
110
108
  import {
111
109
  execute,
112
- executeMobile,
113
- mobileCommandsMapping,
114
110
  } from './commands/execute';
115
111
  import {
116
112
  pullFile,
117
- mobilePullFile,
118
113
  pullFolder,
119
- mobilePullFolder,
120
114
  pushFile,
121
- mobilePushFile,
122
115
  mobileDeleteFile,
123
116
  } from './commands/file-actions';
124
117
  import {findElOrEls, doFindElementOrEls} from './commands/find';
@@ -158,7 +151,7 @@ import {
158
151
  longPressKeyCode,
159
152
  mobilePerformEditorAction,
160
153
  } from './commands/keyboard';
161
- import {lock, unlock, mobileLock, mobileUnlock, isLocked} from './commands/lock/exports';
154
+ import {lock, unlock, mobileUnlock, isLocked} from './commands/lock/exports';
162
155
  import {
163
156
  supportedLogTypes,
164
157
  mobileStartLogsBroadcast,
@@ -213,6 +206,7 @@ import {mobileShell} from './commands/shell';
213
206
  import {mobileStartScreenStreaming, mobileStopScreenStreaming} from './commands/streamscreen';
214
207
  import {getSystemBars, mobilePerformStatusBarCommand} from './commands/system-bars';
215
208
  import {getDeviceTime, mobileGetDeviceTime} from './commands/time';
209
+ import { executeMethodMap } from './execute-method-map';
216
210
 
217
211
  export type AndroidDriverCaps = DriverCaps<AndroidDriverConstraints>;
218
212
  export type W3CAndroidDriverCaps = W3CDriverCaps<AndroidDriverConstraints>;
@@ -226,6 +220,8 @@ class AndroidDriver
226
220
  implements ExternalDriver<AndroidDriverConstraints, string, StringRecord>
227
221
  {
228
222
  static newMethodMap = newMethodMap;
223
+ static executeMethodMap = executeMethodMap;
224
+
229
225
  jwpProxyAvoid: RouteMatcher[];
230
226
 
231
227
  adb: ADB;
@@ -409,9 +405,7 @@ class AndroidDriver
409
405
  mobileClearApp = mobileClearApp;
410
406
  mobileInstallApp = mobileInstallApp;
411
407
  installApp = installApp;
412
- mobileActivateApp = mobileActivateApp;
413
408
  mobileIsAppInstalled = mobileIsAppInstalled;
414
- mobileQueryAppState = mobileQueryAppState;
415
409
  mobileRemoveApp = mobileRemoveApp;
416
410
  mobileTerminateApp = mobileTerminateApp;
417
411
  terminateApp = terminateApp;
@@ -444,15 +438,10 @@ class AndroidDriver
444
438
  getSize = getSize;
445
439
 
446
440
  execute = execute;
447
- executeMobile = executeMobile;
448
- mobileCommandsMapping = mobileCommandsMapping;
449
441
 
450
442
  pullFile = pullFile;
451
- mobilePullFile = mobilePullFile;
452
443
  pullFolder = pullFolder;
453
- mobilePullFolder = mobilePullFolder;
454
444
  pushFile = pushFile;
455
- mobilePushFile = mobilePushFile;
456
445
  mobileDeleteFile = mobileDeleteFile;
457
446
 
458
447
  findElOrEls = findElOrEls;
@@ -501,7 +490,6 @@ class AndroidDriver
501
490
 
502
491
  lock = lock;
503
492
  unlock = unlock;
504
- mobileLock = mobileLock;
505
493
  mobileUnlock = mobileUnlock;
506
494
  isLocked = isLocked;
507
495
 
@@ -0,0 +1,464 @@
1
+ import {ExecuteMethodMap} from '@appium/types';
2
+
3
+ const INTENT_PARAMS = [
4
+ 'user',
5
+ 'intent',
6
+ 'action',
7
+ 'package',
8
+ 'uri',
9
+ 'mimeType',
10
+ 'identifier',
11
+ 'component',
12
+ 'categories',
13
+ 'extras',
14
+ 'flags',
15
+ ] as const;
16
+
17
+ export const executeMethodMap = {
18
+ 'mobile: shell': {
19
+ command: 'mobileShell',
20
+ params: {
21
+ required: ['command'],
22
+ optional: ['args', 'timeout', 'includeStderr'],
23
+ },
24
+ },
25
+
26
+ 'mobile: execEmuConsoleCommand': {
27
+ command: 'mobileExecEmuConsoleCommand',
28
+ params: {
29
+ required: ['command'],
30
+ optional: ['execTimeout', 'connTimeout', 'initTimeout'],
31
+ },
32
+ },
33
+
34
+ 'mobile: startLogsBroadcast': {
35
+ command: 'mobileStartLogsBroadcast',
36
+ },
37
+ 'mobile: stopLogsBroadcast': {
38
+ command: 'mobileStopLogsBroadcast',
39
+ },
40
+
41
+ 'mobile: changePermissions': {
42
+ command: 'mobileChangePermissions',
43
+ params: {
44
+ required: ['permissions'],
45
+ optional: ['appPackage', 'action', 'target'],
46
+ },
47
+ },
48
+ 'mobile: getPermissions': {
49
+ command: 'mobileGetPermissions',
50
+ params: {
51
+ optional: ['type', 'appPackage'],
52
+ },
53
+ },
54
+
55
+ 'mobile: performEditorAction': {
56
+ command: 'mobilePerformEditorAction',
57
+ params: {
58
+ required: ['action'],
59
+ },
60
+ },
61
+
62
+ 'mobile: getDeviceTime': {
63
+ command: 'mobileGetDeviceTime',
64
+ params: {
65
+ optional: ['format'],
66
+ },
67
+ },
68
+
69
+ 'mobile: startScreenStreaming': {
70
+ command: 'mobileStartScreenStreaming',
71
+ params: {
72
+ optional: [
73
+ 'width',
74
+ 'height',
75
+ 'bitRate',
76
+ 'host',
77
+ 'port',
78
+ 'pathname',
79
+ 'tcpPort',
80
+ 'quality',
81
+ 'considerRotation',
82
+ 'logPipelineDetails',
83
+ ],
84
+ },
85
+ },
86
+ 'mobile: stopScreenStreaming': {
87
+ command: 'mobileStopScreenStreaming',
88
+ },
89
+
90
+ 'mobile: getNotifications': {
91
+ command: 'mobileGetNotifications',
92
+ },
93
+
94
+ 'mobile: listSms': {
95
+ command: 'mobileListSms',
96
+ },
97
+
98
+ 'mobile: pushFile': {
99
+ command: 'pushFile',
100
+ params: {
101
+ required: ['remotePath', 'payload'],
102
+ },
103
+ },
104
+ 'mobile: pullFolder': {
105
+ command: 'pullFolder',
106
+ params: {
107
+ required: ['remotePath'],
108
+ },
109
+ },
110
+ 'mobile: pullFile': {
111
+ command: 'pullFile',
112
+ params: {
113
+ required: ['remotePath'],
114
+ },
115
+ },
116
+ 'mobile: deleteFile': {
117
+ command: 'mobileDeleteFile',
118
+ params: {
119
+ required: ['remotePath'],
120
+ },
121
+ },
122
+
123
+ 'mobile: isAppInstalled': {
124
+ command: 'mobileIsAppInstalled',
125
+ params: {
126
+ required: ['appId'],
127
+ optional: ['user'],
128
+ },
129
+ },
130
+ 'mobile: queryAppState': {
131
+ command: 'queryAppState',
132
+ params: {
133
+ required: ['appId'],
134
+ },
135
+ },
136
+ 'mobile: activateApp': {
137
+ command: 'activateApp',
138
+ params: {
139
+ required: ['appId'],
140
+ },
141
+ },
142
+ 'mobile: removeApp': {
143
+ command: 'mobileRemoveApp',
144
+ params: {
145
+ required: ['appId'],
146
+ optional: ['timeout', 'keepData', 'skipInstallCheck'],
147
+ },
148
+ },
149
+ 'mobile: terminateApp': {
150
+ command: 'mobileTerminateApp',
151
+ params: {
152
+ required: ['appId'],
153
+ optional: ['timeout'],
154
+ },
155
+ },
156
+ 'mobile: installApp': {
157
+ command: 'mobileInstallApp',
158
+ params: {
159
+ required: ['appPath'],
160
+ optional: [
161
+ 'checkVersion',
162
+ 'timeout',
163
+ 'allowTestPackages',
164
+ 'useSdcard',
165
+ 'grantPermissions',
166
+ 'replace',
167
+ 'noIncremental',
168
+ ],
169
+ },
170
+ },
171
+ 'mobile: clearApp': {
172
+ command: 'mobileClearApp',
173
+ params: {
174
+ required: ['appId'],
175
+ },
176
+ },
177
+
178
+ 'mobile: startService': {
179
+ command: 'mobileStartService',
180
+ params: {
181
+ optional: [
182
+ 'foreground',
183
+ ...INTENT_PARAMS,
184
+ ],
185
+ },
186
+ },
187
+ 'mobile: stopService': {
188
+ command: 'mobileStopService',
189
+ params: {
190
+ optional: [
191
+ ...INTENT_PARAMS,
192
+ ],
193
+ },
194
+ },
195
+ 'mobile: startActivity': {
196
+ command: 'mobileStartActivity',
197
+ params: {
198
+ optional: [
199
+ 'wait',
200
+ 'stop',
201
+ 'windowingMode',
202
+ 'activityType',
203
+ 'display',
204
+ ...INTENT_PARAMS,
205
+ ],
206
+ },
207
+ },
208
+ 'mobile: broadcast': {
209
+ command: 'mobileBroadcast',
210
+ params: {
211
+ optional: [
212
+ 'receiverPermission',
213
+ 'allowBackgroundActivityStarts',
214
+ ...INTENT_PARAMS,
215
+ ],
216
+ },
217
+ },
218
+
219
+ 'mobile: getContexts': {
220
+ command: 'mobileGetContexts',
221
+ params: {
222
+ optional: [
223
+ 'waitForWebviewMs',
224
+ ],
225
+ },
226
+ },
227
+
228
+ 'mobile: lock': {
229
+ command: 'lock',
230
+ params: {
231
+ optional: [
232
+ 'seconds',
233
+ ],
234
+ },
235
+ },
236
+ 'mobile: unlock': {
237
+ command: 'mobileUnlock',
238
+ params: {
239
+ optional: [
240
+ 'key',
241
+ 'type',
242
+ 'strategy',
243
+ 'timeoutMs',
244
+ ],
245
+ },
246
+ },
247
+ 'mobile: isLocked': {
248
+ command: 'isLocked',
249
+ },
250
+
251
+ 'mobile: refreshGpsCache': {
252
+ command: 'mobileRefreshGpsCache',
253
+ params: {
254
+ optional: [
255
+ 'timeoutMs',
256
+ ],
257
+ },
258
+ },
259
+
260
+ 'mobile: startMediaProjectionRecording': {
261
+ command: 'mobileStartMediaProjectionRecording',
262
+ params: {
263
+ optional: [
264
+ 'resolution',
265
+ 'priority',
266
+ 'maxDurationSec',
267
+ 'filename',
268
+ ],
269
+ },
270
+ },
271
+ 'mobile: isMediaProjectionRecordingRunning': {
272
+ command: 'mobileIsMediaProjectionRecordingRunning',
273
+ },
274
+ 'mobile: stopMediaProjectionRecording': {
275
+ command: 'mobileStopMediaProjectionRecording',
276
+ params: {
277
+ optional: [
278
+ 'remotePath',
279
+ 'user',
280
+ 'pass',
281
+ 'method',
282
+ 'headers',
283
+ 'fileFieldName',
284
+ 'formFields',
285
+ 'uploadTimeout',
286
+ ],
287
+ },
288
+ },
289
+
290
+ 'mobile: getConnectivity': {
291
+ command: 'mobileGetConnectivity',
292
+ params: {
293
+ optional: ['services'],
294
+ }
295
+ },
296
+ 'mobile: setConnectivity': {
297
+ command: 'mobileSetConnectivity',
298
+ params: {
299
+ optional: ['wifi', 'data', 'airplaneMode'],
300
+ }
301
+ },
302
+
303
+ 'mobile: hideKeyboard': {
304
+ command: 'hideKeyboard',
305
+ },
306
+ 'mobile: isKeyboardShown': {
307
+ command: 'isKeyboardShown',
308
+ },
309
+
310
+ 'mobile: deviceidle': {
311
+ command: 'mobileDeviceidle',
312
+ params: {
313
+ required: ['action'],
314
+ optional: ['packages'],
315
+ }
316
+ },
317
+
318
+ 'mobile: bluetooth': {
319
+ command: 'mobileBluetooth',
320
+ params: {
321
+ required: ['action'],
322
+ }
323
+ },
324
+ 'mobile: nfc': {
325
+ command: 'mobileNfc',
326
+ params: {
327
+ required: ['action'],
328
+ }
329
+ },
330
+
331
+ 'mobile: setUiMode': {
332
+ command: 'mobileSetUiMode',
333
+ params: {
334
+ required: ['mode', 'value'],
335
+ }
336
+ },
337
+ 'mobile: getUiMode': {
338
+ command: 'mobileGetUiMode',
339
+ params: {
340
+ required: ['mode'],
341
+ }
342
+ },
343
+
344
+ 'mobile: injectEmulatorCameraImage': {
345
+ command: 'mobileInjectEmulatorCameraImage',
346
+ params: {
347
+ required: ['payload'],
348
+ }
349
+ },
350
+
351
+ 'mobile: sendTrimMemory': {
352
+ command: 'mobileSendTrimMemory',
353
+ params: {
354
+ required: ['pkg', 'level'],
355
+ }
356
+ },
357
+
358
+ 'mobile: getPerformanceData': {
359
+ command: 'mobileGetPerformanceData',
360
+ params: {
361
+ required: ['packageName', 'dataType'],
362
+ }
363
+ },
364
+ 'mobile: getPerformanceDataTypes': {
365
+ command: 'getPerformanceDataTypes',
366
+ },
367
+
368
+ 'mobile: toggleGps': {
369
+ command: 'toggleLocationServices',
370
+ },
371
+ 'mobile: isGpsEnabled': {
372
+ command: 'isLocationServicesEnabled',
373
+ },
374
+
375
+ 'mobile: getDisplayDensity': {
376
+ command: 'getDisplayDensity',
377
+ },
378
+ 'mobile: getSystemBars': {
379
+ command: 'getSystemBars',
380
+ },
381
+ 'mobile: statusBar': {
382
+ command: 'mobilePerformStatusBarCommand',
383
+ params: {
384
+ required: ['command'],
385
+ optional: ['component'],
386
+ }
387
+ },
388
+
389
+ 'mobile: fingerprint': {
390
+ command: 'mobileFingerprint',
391
+ params: {
392
+ required: ['fingerprintId'],
393
+ }
394
+ },
395
+ 'mobile: sendSms': {
396
+ command: 'mobileSendSms',
397
+ params: {
398
+ required: ['phoneNumber', 'message'],
399
+ }
400
+ },
401
+ 'mobile: gsmCall': {
402
+ command: 'mobileGsmCall',
403
+ params: {
404
+ required: ['phoneNumber', 'action'],
405
+ }
406
+ },
407
+ 'mobile: gsmSignal': {
408
+ command: 'mobileGsmSignal',
409
+ params: {
410
+ required: ['strength'],
411
+ }
412
+ },
413
+ 'mobile: gsmVoice': {
414
+ command: 'mobileGsmVoice',
415
+ params: {
416
+ required: ['state'],
417
+ }
418
+ },
419
+ 'mobile: powerAc': {
420
+ command: 'mobilePowerAc',
421
+ params: {
422
+ required: ['state'],
423
+ }
424
+ },
425
+ 'mobile: powerCapacity': {
426
+ command: 'mobilePowerCapacity',
427
+ params: {
428
+ required: ['percent'],
429
+ }
430
+ },
431
+ 'mobile: networkSpeed': {
432
+ command: 'mobileNetworkSpeed',
433
+ params: {
434
+ required: ['speed'],
435
+ }
436
+ },
437
+ 'mobile: sensorSet': {
438
+ command: 'sensorSet',
439
+ params: {
440
+ required: ['sensorType', 'value'],
441
+ }
442
+ },
443
+
444
+ 'mobile: getCurrentActivity': {
445
+ command: 'getCurrentActivity',
446
+ },
447
+ 'mobile: getCurrentPackage': {
448
+ command: 'getCurrentPackage',
449
+ },
450
+
451
+ 'mobile: setGeolocation': {
452
+ command: 'mobileSetGeolocation',
453
+ params: {
454
+ required: ['latitude', 'longitude'],
455
+ optional: ['altitude'],
456
+ }
457
+ },
458
+ 'mobile: getGeolocation': {
459
+ command: 'mobileGetGeolocation',
460
+ },
461
+ 'mobile: resetGeolocation': {
462
+ command: 'mobileResetGeolocation',
463
+ },
464
+ } as const satisfies ExecuteMethodMap<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-android-driver",
3
- "version": "9.15.0",
3
+ "version": "10.0.0",
4
4
  "description": "Android UiAutomator and Chrome support for Appium",
5
5
  "keywords": [
6
6
  "appium",
@@ -51,7 +51,7 @@
51
51
  "@appium/support": "^6.0.0",
52
52
  "@colors/colors": "^1.6.0",
53
53
  "appium-adb": "^12.12.0",
54
- "appium-chromedriver": "^6.0.1",
54
+ "appium-chromedriver": "^7.0.0",
55
55
  "asyncbox": "^3.0.0",
56
56
  "axios": "^1.x",
57
57
  "bluebird": "^3.4.7",