appium-android-driver 13.3.4 → 14.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.
- package/CHANGELOG.md +16 -0
- package/build/lib/commands/app-management.d.ts +2 -2
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +41 -67
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/appearance.d.ts +1 -1
- package/build/lib/commands/appearance.d.ts.map +1 -1
- package/build/lib/commands/appearance.js +2 -6
- package/build/lib/commands/appearance.js.map +1 -1
- package/build/lib/commands/bidi/constants.js +4 -8
- package/build/lib/commands/bidi/constants.js.map +1 -1
- package/build/lib/commands/bidi/models.d.ts +1 -1
- package/build/lib/commands/bidi/models.d.ts.map +1 -1
- package/build/lib/commands/bidi/models.js +7 -13
- package/build/lib/commands/bidi/models.js.map +1 -1
- package/build/lib/commands/bidi/types.js +1 -2
- package/build/lib/commands/bluetooth.d.ts +1 -1
- package/build/lib/commands/bluetooth.d.ts.map +1 -1
- package/build/lib/commands/bluetooth.js +3 -6
- package/build/lib/commands/bluetooth.js.map +1 -1
- package/build/lib/commands/context/cache.d.ts +1 -1
- package/build/lib/commands/context/cache.d.ts.map +1 -1
- package/build/lib/commands/context/cache.js +5 -10
- package/build/lib/commands/context/cache.js.map +1 -1
- package/build/lib/commands/context/exports.d.ts +2 -2
- package/build/lib/commands/context/exports.d.ts.map +1 -1
- package/build/lib/commands/context/exports.js +64 -86
- package/build/lib/commands/context/exports.js.map +1 -1
- package/build/lib/commands/context/helpers.d.ts +2 -2
- package/build/lib/commands/context/helpers.d.ts.map +1 -1
- package/build/lib/commands/context/helpers.js +69 -82
- package/build/lib/commands/context/helpers.js.map +1 -1
- package/build/lib/commands/device/common.d.ts +2 -2
- package/build/lib/commands/device/common.d.ts.map +1 -1
- package/build/lib/commands/device/common.js +47 -77
- package/build/lib/commands/device/common.js.map +1 -1
- package/build/lib/commands/device/emulator-actions.d.ts +2 -2
- package/build/lib/commands/device/emulator-actions.d.ts.map +1 -1
- package/build/lib/commands/device/emulator-actions.js +33 -52
- package/build/lib/commands/device/emulator-actions.js.map +1 -1
- package/build/lib/commands/device/emulator-console.d.ts +1 -1
- package/build/lib/commands/device/emulator-console.d.ts.map +1 -1
- package/build/lib/commands/device/emulator-console.js +3 -6
- package/build/lib/commands/device/emulator-console.js.map +1 -1
- package/build/lib/commands/device/utils.d.ts +1 -1
- package/build/lib/commands/device/utils.d.ts.map +1 -1
- package/build/lib/commands/device/utils.js +27 -37
- package/build/lib/commands/device/utils.js.map +1 -1
- package/build/lib/commands/deviceidle.d.ts +1 -1
- package/build/lib/commands/deviceidle.d.ts.map +1 -1
- package/build/lib/commands/deviceidle.js +4 -7
- package/build/lib/commands/deviceidle.js.map +1 -1
- package/build/lib/commands/element.d.ts +2 -2
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js +22 -39
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/execute.d.ts +1 -1
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js +6 -9
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/file-actions.d.ts +1 -1
- package/build/lib/commands/file-actions.d.ts.map +1 -1
- package/build/lib/commands/file-actions.js +25 -34
- package/build/lib/commands/file-actions.js.map +1 -1
- package/build/lib/commands/find.d.ts +2 -2
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js +10 -14
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/geolocation.d.ts +1 -1
- package/build/lib/commands/geolocation.d.ts.map +1 -1
- package/build/lib/commands/geolocation.js +21 -35
- package/build/lib/commands/geolocation.js.map +1 -1
- package/build/lib/commands/gestures.d.ts +1 -1
- package/build/lib/commands/gestures.d.ts.map +1 -1
- package/build/lib/commands/gestures.js +4 -7
- package/build/lib/commands/gestures.js.map +1 -1
- package/build/lib/commands/image-injection.d.ts +1 -1
- package/build/lib/commands/image-injection.d.ts.map +1 -1
- package/build/lib/commands/image-injection.js +16 -23
- package/build/lib/commands/image-injection.js.map +1 -1
- package/build/lib/commands/ime.d.ts +1 -1
- package/build/lib/commands/ime.d.ts.map +1 -1
- package/build/lib/commands/ime.js +10 -18
- package/build/lib/commands/ime.js.map +1 -1
- package/build/lib/commands/intent.d.ts +1 -1
- package/build/lib/commands/intent.d.ts.map +1 -1
- package/build/lib/commands/intent.js +22 -29
- package/build/lib/commands/intent.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts +2 -2
- package/build/lib/commands/keyboard.d.ts.map +1 -1
- package/build/lib/commands/keyboard.js +21 -33
- package/build/lib/commands/keyboard.js.map +1 -1
- package/build/lib/commands/legacy.d.ts +1 -1
- package/build/lib/commands/legacy.d.ts.map +1 -1
- package/build/lib/commands/legacy.js +7 -12
- package/build/lib/commands/legacy.js.map +1 -1
- package/build/lib/commands/lock/exports.d.ts +2 -2
- package/build/lib/commands/lock/exports.d.ts.map +1 -1
- package/build/lib/commands/lock/exports.js +18 -25
- package/build/lib/commands/lock/exports.js.map +1 -1
- package/build/lib/commands/lock/helpers.d.ts +2 -2
- package/build/lib/commands/lock/helpers.d.ts.map +1 -1
- package/build/lib/commands/lock/helpers.js +48 -64
- package/build/lib/commands/lock/helpers.js.map +1 -1
- package/build/lib/commands/log.d.ts +2 -2
- package/build/lib/commands/log.d.ts.map +1 -1
- package/build/lib/commands/log.js +38 -42
- package/build/lib/commands/log.js.map +1 -1
- package/build/lib/commands/media-projection.d.ts +2 -2
- package/build/lib/commands/media-projection.d.ts.map +1 -1
- package/build/lib/commands/media-projection.js +14 -22
- package/build/lib/commands/media-projection.js.map +1 -1
- package/build/lib/commands/memory.d.ts +2 -2
- package/build/lib/commands/memory.d.ts.map +1 -1
- package/build/lib/commands/memory.js +4 -7
- package/build/lib/commands/memory.js.map +1 -1
- package/build/lib/commands/misc.d.ts +2 -2
- package/build/lib/commands/misc.d.ts.map +1 -1
- package/build/lib/commands/misc.js +10 -19
- package/build/lib/commands/misc.js.map +1 -1
- package/build/lib/commands/network.d.ts +2 -2
- package/build/lib/commands/network.d.ts.map +1 -1
- package/build/lib/commands/network.js +14 -26
- package/build/lib/commands/network.js.map +1 -1
- package/build/lib/commands/nfc.d.ts +2 -2
- package/build/lib/commands/nfc.d.ts.map +1 -1
- package/build/lib/commands/nfc.js +3 -6
- package/build/lib/commands/nfc.js.map +1 -1
- package/build/lib/commands/performance.d.ts +2 -2
- package/build/lib/commands/performance.d.ts.map +1 -1
- package/build/lib/commands/performance.js +48 -58
- package/build/lib/commands/performance.js.map +1 -1
- package/build/lib/commands/permissions.d.ts +1 -1
- package/build/lib/commands/permissions.d.ts.map +1 -1
- package/build/lib/commands/permissions.js +16 -20
- package/build/lib/commands/permissions.js.map +1 -1
- package/build/lib/commands/recordscreen.d.ts +2 -2
- package/build/lib/commands/recordscreen.d.ts.map +1 -1
- package/build/lib/commands/recordscreen.js +32 -39
- package/build/lib/commands/recordscreen.js.map +1 -1
- package/build/lib/commands/resources.d.ts +1 -1
- package/build/lib/commands/resources.d.ts.map +1 -1
- package/build/lib/commands/resources.js +7 -11
- package/build/lib/commands/resources.js.map +1 -1
- package/build/lib/commands/shell.d.ts +1 -1
- package/build/lib/commands/shell.d.ts.map +1 -1
- package/build/lib/commands/shell.js +9 -12
- package/build/lib/commands/shell.js.map +1 -1
- package/build/lib/commands/streamscreen.d.ts +1 -1
- package/build/lib/commands/streamscreen.d.ts.map +1 -1
- package/build/lib/commands/streamscreen.js +32 -37
- package/build/lib/commands/streamscreen.js.map +1 -1
- package/build/lib/commands/system-bars.d.ts +2 -2
- package/build/lib/commands/system-bars.d.ts.map +1 -1
- package/build/lib/commands/system-bars.js +10 -16
- package/build/lib/commands/system-bars.js.map +1 -1
- package/build/lib/commands/time.d.ts +1 -1
- package/build/lib/commands/time.d.ts.map +1 -1
- package/build/lib/commands/time.js +9 -17
- package/build/lib/commands/time.js.map +1 -1
- package/build/lib/commands/types.d.ts +15 -1
- package/build/lib/commands/types.d.ts.map +1 -1
- package/build/lib/commands/types.js +1 -2
- package/build/lib/constraints.d.ts +3 -0
- package/build/lib/constraints.d.ts.map +1 -1
- package/build/lib/constraints.js +5 -5
- package/build/lib/constraints.js.map +1 -1
- package/build/lib/doctor/checks.js +54 -65
- package/build/lib/doctor/checks.js.map +1 -1
- package/build/lib/doctor/utils.js +4 -7
- package/build/lib/doctor/utils.js.map +1 -1
- package/build/lib/driver.d.ts +39 -39
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +220 -223
- package/build/lib/driver.js.map +1 -1
- package/build/lib/execute-method-map.js +1 -4
- package/build/lib/execute-method-map.js.map +1 -1
- package/build/lib/index.d.ts +7 -7
- package/build/lib/index.d.ts.map +1 -1
- package/build/lib/index.js +11 -51
- package/build/lib/index.js.map +1 -1
- package/build/lib/logger.js +2 -5
- package/build/lib/logger.js.map +1 -1
- package/build/lib/method-map.js +1 -4
- package/build/lib/method-map.js.map +1 -1
- package/build/lib/utils.d.ts +9 -7
- package/build/lib/utils.d.ts.map +1 -1
- package/build/lib/utils.js +22 -28
- package/build/lib/utils.js.map +1 -1
- package/lib/commands/app-management.ts +5 -11
- package/lib/commands/appearance.ts +1 -1
- package/lib/commands/bidi/models.ts +3 -3
- package/lib/commands/bluetooth.ts +2 -2
- package/lib/commands/context/cache.ts +1 -1
- package/lib/commands/context/exports.ts +7 -7
- package/lib/commands/context/helpers.ts +4 -4
- package/lib/commands/device/common.ts +36 -20
- package/lib/commands/device/emulator-actions.ts +4 -4
- package/lib/commands/device/emulator-console.ts +2 -2
- package/lib/commands/device/utils.ts +3 -3
- package/lib/commands/deviceidle.ts +2 -2
- package/lib/commands/element.ts +3 -3
- package/lib/commands/execute.ts +2 -2
- package/lib/commands/file-actions.ts +2 -2
- package/lib/commands/find.ts +4 -4
- package/lib/commands/geolocation.ts +2 -2
- package/lib/commands/gestures.ts +3 -3
- package/lib/commands/image-injection.ts +2 -2
- package/lib/commands/ime.ts +3 -3
- package/lib/commands/intent.ts +3 -3
- package/lib/commands/keyboard.ts +3 -3
- package/lib/commands/legacy.ts +2 -2
- package/lib/commands/lock/exports.ts +3 -3
- package/lib/commands/lock/helpers.ts +2 -2
- package/lib/commands/log.ts +18 -11
- package/lib/commands/media-projection.ts +2 -2
- package/lib/commands/memory.ts +3 -3
- package/lib/commands/misc.ts +3 -3
- package/lib/commands/network.ts +3 -3
- package/lib/commands/nfc.ts +3 -3
- package/lib/commands/performance.ts +4 -4
- package/lib/commands/permissions.ts +3 -3
- package/lib/commands/recordscreen.ts +5 -5
- package/lib/commands/resources.ts +2 -2
- package/lib/commands/shell.ts +3 -3
- package/lib/commands/streamscreen.ts +6 -4
- package/lib/commands/system-bars.ts +6 -6
- package/lib/commands/time.ts +3 -3
- package/lib/commands/types.ts +15 -1
- package/lib/constraints.ts +3 -0
- package/lib/doctor/checks.ts +1 -1
- package/lib/driver.ts +44 -44
- package/lib/index.ts +7 -7
- package/lib/method-map.ts +1 -1
- package/lib/utils.ts +10 -8
- package/package.json +12 -3
|
@@ -1,70 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.getDeviceInfoFromCaps = getDeviceInfoFromCaps;
|
|
40
|
-
exports.createADB = createADB;
|
|
41
|
-
exports.getLaunchInfo = getLaunchInfo;
|
|
42
|
-
exports.initDevice = initDevice;
|
|
43
|
-
const semver = __importStar(require("semver"));
|
|
44
|
-
const node_path_1 = __importDefault(require("node:path"));
|
|
45
|
-
const geolocation_1 = require("../geolocation");
|
|
46
|
-
const io_appium_settings_1 = require("io.appium.settings");
|
|
47
|
-
const keyboard_1 = require("../keyboard");
|
|
48
|
-
const utils_1 = require("./utils");
|
|
49
|
-
const time_1 = require("../time");
|
|
50
|
-
const asyncbox_1 = require("asyncbox");
|
|
51
|
-
const utils_2 = require("../../utils");
|
|
1
|
+
import * as semver from 'semver';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { setMockLocationApp } from '../geolocation.js';
|
|
4
|
+
import { SETTINGS_HELPER_ID } from 'io.appium.settings';
|
|
5
|
+
import { hideKeyboardCompletely, initUnicodeKeyboard } from '../keyboard.js';
|
|
6
|
+
import { createBaseADB, prepareEmulator, pushSettingsApp } from './utils.js';
|
|
7
|
+
import { adjustTimeZone } from '../time.js';
|
|
8
|
+
import { retryInterval } from 'asyncbox';
|
|
9
|
+
import { GET_SERVER_LOGS_FEATURE, nativeLogEntryToSeleniumEntry } from '../../utils.js';
|
|
52
10
|
/**
|
|
53
11
|
* Gets device information from capabilities, including UDID and emulator port.
|
|
54
12
|
*
|
|
55
13
|
* @returns Device information with UDID and emulator port
|
|
56
14
|
*/
|
|
57
|
-
async function getDeviceInfoFromCaps() {
|
|
15
|
+
export async function getDeviceInfoFromCaps() {
|
|
58
16
|
// we can create a throwaway ADB instance here, so there is no dependency
|
|
59
17
|
// on instantiating on earlier (at this point, we have no udid)
|
|
60
18
|
// we can only use this ADB object for commands that would not be confused
|
|
61
19
|
// if multiple devices are connected
|
|
62
|
-
const adb = await
|
|
20
|
+
const adb = await createBaseADB.bind(this)();
|
|
63
21
|
let udid = this.opts.udid;
|
|
64
22
|
let emPort;
|
|
65
23
|
// a specific avd name was given. try to initialize with that
|
|
66
24
|
if (this.opts?.avd) {
|
|
67
|
-
await
|
|
25
|
+
await prepareEmulator.bind(this)(adb);
|
|
68
26
|
udid = adb.curDeviceId;
|
|
69
27
|
emPort = adb.emulatorPort;
|
|
70
28
|
}
|
|
@@ -106,8 +64,7 @@ async function getDeviceInfoFromCaps() {
|
|
|
106
64
|
const bothVersionsAreStrings = typeof deviceOS === 'string' && typeof platformVersion === 'string';
|
|
107
65
|
if ((bothVersionsCanBeCoerced &&
|
|
108
66
|
semverDO.version === semverPV.version) ||
|
|
109
|
-
(bothVersionsAreStrings &&
|
|
110
|
-
String(deviceOS)?.toLowerCase() === String(platformVersion)?.toLowerCase())) {
|
|
67
|
+
(bothVersionsAreStrings && deviceOS.toLowerCase() === platformVersion.toLowerCase())) {
|
|
111
68
|
// Got an exact match - proceed immediately
|
|
112
69
|
udid = device.udid;
|
|
113
70
|
break;
|
|
@@ -120,7 +77,7 @@ async function getDeviceInfoFromCaps() {
|
|
|
120
77
|
const pvMinor = semverPV.minor;
|
|
121
78
|
const dvMajor = semverDO.major;
|
|
122
79
|
const dvMinor = semverDO.minor;
|
|
123
|
-
if (((!String(this.opts.platformVersion)
|
|
80
|
+
if (((!String(this.opts.platformVersion).includes('.') && pvMajor === dvMajor) ||
|
|
124
81
|
(pvMajor === dvMajor && pvMinor === dvMinor)) &&
|
|
125
82
|
// Got a partial match - make sure we consider the most recent
|
|
126
83
|
// device version available on the host system
|
|
@@ -156,9 +113,9 @@ async function getDeviceInfoFromCaps() {
|
|
|
156
113
|
*
|
|
157
114
|
* @returns A configured ADB instance
|
|
158
115
|
*/
|
|
159
|
-
async function createADB() {
|
|
116
|
+
export async function createADB() {
|
|
160
117
|
const { udid, emPort } = this.opts;
|
|
161
|
-
const adb = await
|
|
118
|
+
const adb = await createBaseADB.bind(this)();
|
|
162
119
|
adb.setDeviceId(udid ?? '');
|
|
163
120
|
if (emPort) {
|
|
164
121
|
adb.setEmulatorPort(emPort);
|
|
@@ -170,7 +127,7 @@ async function createADB() {
|
|
|
170
127
|
*
|
|
171
128
|
* @returns Launch information with package and activity names, or undefined if not needed
|
|
172
129
|
*/
|
|
173
|
-
async function getLaunchInfo() {
|
|
130
|
+
export async function getLaunchInfo() {
|
|
174
131
|
const { app: appOpt, appPackage: appPackageOpt, appActivity: appActivityOpt, appWaitPackage: appWaitPackageOpt, appWaitActivity: appWaitActivityOpt, } = this.opts;
|
|
175
132
|
let appPackage = appPackageOpt;
|
|
176
133
|
let appActivity = appActivityOpt;
|
|
@@ -182,7 +139,7 @@ async function getLaunchInfo() {
|
|
|
182
139
|
let apkPackage;
|
|
183
140
|
let apkActivity;
|
|
184
141
|
if (appOpt) {
|
|
185
|
-
this.log.debug(`Parsing package and activity from the '${
|
|
142
|
+
this.log.debug(`Parsing package and activity from the '${path.basename(appOpt)}' file manifest`);
|
|
186
143
|
({ apkPackage, apkActivity } = await this.adb.packageAndLaunchActivityFromManifest(appOpt));
|
|
187
144
|
}
|
|
188
145
|
else if (appPackage) {
|
|
@@ -208,8 +165,8 @@ async function getLaunchInfo() {
|
|
|
208
165
|
/**
|
|
209
166
|
* Initializes the device with various settings like locale, keyboard, logcat, etc.
|
|
210
167
|
*/
|
|
211
|
-
async function initDevice() {
|
|
212
|
-
const { skipDeviceInitialization, locale, language, localeScript, unicodeKeyboard, hideKeyboard, disableWindowAnimation, skipUnlock, mockLocationApp, skipLogcatCapture, logcatFormat, logcatFilterSpecs, timeZone, } = this.opts;
|
|
168
|
+
export async function initDevice() {
|
|
169
|
+
const { skipDeviceInitialization, skipSettingsAppReinstall, locale, language, localeScript, unicodeKeyboard, hideKeyboard, disableWindowAnimation, skipUnlock, mockLocationApp, skipLogcatCapture, logcatFormat, logcatFilterSpecs, timeZone, } = this.opts;
|
|
213
170
|
if (skipDeviceInitialization) {
|
|
214
171
|
this.log.info(`'skipDeviceInitialization' is set. Skipping device initialization.`);
|
|
215
172
|
}
|
|
@@ -223,20 +180,33 @@ async function initDevice() {
|
|
|
223
180
|
// Some feature such as location/wifi are not necessary for all users,
|
|
224
181
|
// but they require the settings app. So, try to configure it while Appium
|
|
225
182
|
// does not throw error even if they fail.
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
183
|
+
if (skipSettingsAppReinstall) {
|
|
184
|
+
// The Settings helper app is host-managed/pinned here, so do not (re)install it.
|
|
185
|
+
// Device init and mock-location below depend on it, so require it to be present
|
|
186
|
+
// and fail fast with a clear error rather than letting those steps break opaquely.
|
|
187
|
+
if (!(await this.adb.isAppInstalled(SETTINGS_HELPER_ID))) {
|
|
188
|
+
throw new Error(`'skipSettingsAppReinstall' is set, but the Appium Settings helper app ` +
|
|
189
|
+
`('${SETTINGS_HELPER_ID}') is not installed on the device. Install it during ` +
|
|
190
|
+
`device provisioning, or unset the capability to let the driver install it.`);
|
|
191
|
+
}
|
|
192
|
+
this.log.info(`'skipSettingsAppReinstall' is set; using the already-installed Appium Settings helper app as-is.`);
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
const shouldThrowError = Boolean(language ||
|
|
196
|
+
locale ||
|
|
197
|
+
localeScript ||
|
|
198
|
+
unicodeKeyboard ||
|
|
199
|
+
hideKeyboard ||
|
|
200
|
+
disableWindowAnimation ||
|
|
201
|
+
!skipUnlock);
|
|
202
|
+
await pushSettingsApp.bind(this)(shouldThrowError);
|
|
203
|
+
}
|
|
234
204
|
}
|
|
235
205
|
const setupPromises = [];
|
|
236
206
|
if (!this.isEmulator()) {
|
|
237
207
|
setupPromises.push((async () => {
|
|
238
208
|
if (mockLocationApp || mockLocationApp === undefined) {
|
|
239
|
-
await
|
|
209
|
+
await setMockLocationApp.bind(this)(mockLocationApp || SETTINGS_HELPER_ID);
|
|
240
210
|
}
|
|
241
211
|
else {
|
|
242
212
|
await this.mobileResetGeolocation();
|
|
@@ -269,7 +239,7 @@ async function initDevice() {
|
|
|
269
239
|
// Sometimes we have a race condition when Android
|
|
270
240
|
// does not register input services soon enough
|
|
271
241
|
// after Settings app is installed
|
|
272
|
-
await
|
|
242
|
+
await retryInterval(3, 500, async () => await hideKeyboardCompletely.bind(this)());
|
|
273
243
|
}
|
|
274
244
|
else if (hideKeyboard === false) {
|
|
275
245
|
await this.adb.shell(['ime', 'reset']);
|
|
@@ -279,17 +249,17 @@ async function initDevice() {
|
|
|
279
249
|
setupPromises.push((async () => {
|
|
280
250
|
this.log.warn(`The 'unicodeKeyboard' capability has been deprecated and will be removed. ` +
|
|
281
251
|
`Set the 'hideKeyboard' capability to 'true' in order to make the on-screen keyboard invisible.`);
|
|
282
|
-
await
|
|
252
|
+
await initUnicodeKeyboard.bind(this)();
|
|
283
253
|
})());
|
|
284
254
|
}
|
|
285
255
|
if (timeZone) {
|
|
286
|
-
setupPromises.push(
|
|
256
|
+
setupPromises.push(adjustTimeZone.bind(this)(timeZone));
|
|
287
257
|
}
|
|
288
|
-
if (this.isFeatureEnabled(
|
|
258
|
+
if (this.isFeatureEnabled(GET_SERVER_LOGS_FEATURE)) {
|
|
289
259
|
[, this._bidiServerLogListener] = this.assignBiDiLogListener(this.log.unwrap(), {
|
|
290
260
|
type: 'server',
|
|
291
261
|
srcEventName: 'log',
|
|
292
|
-
entryTransformer:
|
|
262
|
+
entryTransformer: nativeLogEntryToSeleniumEntry,
|
|
293
263
|
});
|
|
294
264
|
}
|
|
295
265
|
await Promise.all(setupPromises);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../lib/commands/device/common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../lib/commands/device/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAC,sBAAsB,EAAE,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAC,aAAa,EAAE,eAAe,EAAE,eAAe,EAAC,MAAM,YAAY,CAAC;AAC3E,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AACvC,OAAO,EAAC,uBAAuB,EAAE,6BAA6B,EAAC,MAAM,gBAAgB,CAAC;AAKtF;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB;IACzC,yEAAyE;IACzE,+DAA+D;IAC/D,0EAA0E;IAC1E,oCAAoC;IACpC,MAAM,GAAG,GAAG,MAAM,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IAC7C,IAAI,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;IAC1B,IAAI,MAAkC,CAAC;IAEvC,6DAA6D;IAC7D,IAAI,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC;QACnB,MAAM,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC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CAAC,EAAE,CACL,CAAC;IACF,IAAI,eAAe,EAAE,CAAC;QACpB,aAAa,CAAC,IAAI,CAChB,CAAC,KAAK,IAAI,EAAE;YACV,IAAI,CAAC,GAAG,CAAC,IAAI,CACX,4EAA4E;gBAC1E,gGAAgG,CACnG,CAAC;YACF,MAAM,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACzC,CAAC,CAAC,EAAE,CACL,CAAC;IACJ,CAAC;IACD,IAAI,QAAQ,EAAE,CAAC;QACb,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1D,CAAC;IACD,IAAI,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,EAAE,CAAC;QACnD,CAAC,EAAE,IAAI,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE;YAC9E,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,KAAK;YACnB,gBAAgB,EAAE,6BAA6B;SAChD,CAAC,CAAC;IACL,CAAC;IAED,MAAM,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AACnC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AndroidDriver } from '../../driver';
|
|
2
|
-
import type { GsmAction, GsmSignalStrength, GsmVoiceState, PowerACState, NetworkSpeed } from '../types';
|
|
1
|
+
import type { AndroidDriver } from '../../driver.js';
|
|
2
|
+
import type { GsmAction, GsmSignalStrength, GsmVoiceState, PowerACState, NetworkSpeed } from '../types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated Use mobile: extension
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emulator-actions.d.ts","sourceRoot":"","sources":["../../../../lib/commands/device/emulator-actions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"emulator-actions.d.ts","sourceRoot":"","sources":["../../../../lib/commands/device/emulator-actions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EACV,SAAS,EACT,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,EACb,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,wBAAsB,WAAW,CAC/B,IAAI,EAAE,aAAa,EACnB,aAAa,EAAE,MAAM,GAAG,MAAM,GAC7B,OAAO,CAAC,IAAI,CAAC,CAGf;AAED;;;;;;;;GAQG;AACH,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,aAAa,EACnB,aAAa,EAAE,MAAM,GAAG,MAAM,GAC7B,OAAO,CAAC,IAAI,CAAC,CAEf;AAED;;GAEG;AACH,wBAAsB,OAAO,CAC3B,IAAI,EAAE,aAAa,EACnB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAGf;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CACjC,IAAI,EAAE,aAAa,EACnB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAEf;AAED;;GAEG;AACH,wBAAsB,OAAO,CAC3B,IAAI,EAAE,aAAa,EACnB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,SAAS,GAChB,OAAO,CAAC,IAAI,CAAC,CAGf;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CACjC,IAAI,EAAE,aAAa,EACnB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,SAAS,GAChB,OAAO,CAAC,IAAI,CAAC,CAEf;AAED;;GAEG;AACH,wBAAsB,SAAS,CAC7B,IAAI,EAAE,aAAa,EACnB,cAAc,EAAE,iBAAiB,GAChC,OAAO,CAAC,IAAI,CAAC,CAGf;AAED;;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 -1,30 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
exports.mobileFingerprint = mobileFingerprint;
|
|
5
|
-
exports.sendSMS = sendSMS;
|
|
6
|
-
exports.mobileSendSms = mobileSendSms;
|
|
7
|
-
exports.gsmCall = gsmCall;
|
|
8
|
-
exports.mobileGsmCall = mobileGsmCall;
|
|
9
|
-
exports.gsmSignal = gsmSignal;
|
|
10
|
-
exports.mobileGsmSignal = mobileGsmSignal;
|
|
11
|
-
exports.gsmVoice = gsmVoice;
|
|
12
|
-
exports.mobileGsmVoice = mobileGsmVoice;
|
|
13
|
-
exports.powerAC = powerAC;
|
|
14
|
-
exports.mobilePowerAc = mobilePowerAc;
|
|
15
|
-
exports.powerCapacity = powerCapacity;
|
|
16
|
-
exports.mobilePowerCapacity = mobilePowerCapacity;
|
|
17
|
-
exports.networkSpeed = networkSpeed;
|
|
18
|
-
exports.mobileNetworkSpeed = mobileNetworkSpeed;
|
|
19
|
-
exports.sensorSet = sensorSet;
|
|
20
|
-
const support_1 = require("@appium/support");
|
|
21
|
-
const utils_1 = require("./utils");
|
|
22
|
-
const driver_1 = require("appium/driver");
|
|
1
|
+
import { util } from '@appium/support';
|
|
2
|
+
import { requireEmulator } from './utils.js';
|
|
3
|
+
import { errors } from 'appium/driver.js';
|
|
23
4
|
/**
|
|
24
5
|
* @deprecated Use mobile: extension
|
|
25
6
|
*/
|
|
26
|
-
async function fingerprint(fingerprintId) {
|
|
27
|
-
|
|
7
|
+
export async function fingerprint(fingerprintId) {
|
|
8
|
+
requireEmulator.bind(this)('fingerprint is only available for emulators');
|
|
28
9
|
await this.adb.fingerprint(String(fingerprintId));
|
|
29
10
|
}
|
|
30
11
|
/**
|
|
@@ -36,14 +17,14 @@ async function fingerprint(fingerprintId) {
|
|
|
36
17
|
* for a fingerprint, you can run the adb command and pass it the `finger_id`
|
|
37
18
|
* to simulate the fingerprint scan.
|
|
38
19
|
*/
|
|
39
|
-
async function mobileFingerprint(fingerprintId) {
|
|
20
|
+
export async function mobileFingerprint(fingerprintId) {
|
|
40
21
|
await this.fingerprint(fingerprintId);
|
|
41
22
|
}
|
|
42
23
|
/**
|
|
43
24
|
* @deprecated Use mobile: extension
|
|
44
25
|
*/
|
|
45
|
-
async function sendSMS(phoneNumber, message) {
|
|
46
|
-
|
|
26
|
+
export async function sendSMS(phoneNumber, message) {
|
|
27
|
+
requireEmulator.bind(this)('sendSMS is only available for emulators');
|
|
47
28
|
await this.adb.sendSMS(phoneNumber, message);
|
|
48
29
|
}
|
|
49
30
|
/**
|
|
@@ -52,14 +33,14 @@ async function sendSMS(phoneNumber, message) {
|
|
|
52
33
|
* @param phoneNumber - The phone number to send SMS to
|
|
53
34
|
* @param message - The message payload
|
|
54
35
|
*/
|
|
55
|
-
async function mobileSendSms(phoneNumber, message) {
|
|
36
|
+
export async function mobileSendSms(phoneNumber, message) {
|
|
56
37
|
await this.sendSMS(phoneNumber, message);
|
|
57
38
|
}
|
|
58
39
|
/**
|
|
59
40
|
* @deprecated Use mobile: extension
|
|
60
41
|
*/
|
|
61
|
-
async function gsmCall(phoneNumber, action) {
|
|
62
|
-
|
|
42
|
+
export async function gsmCall(phoneNumber, action) {
|
|
43
|
+
requireEmulator.bind(this)('gsmCall is only available for emulators');
|
|
63
44
|
await this.adb.gsmCall(phoneNumber, action);
|
|
64
45
|
}
|
|
65
46
|
/**
|
|
@@ -68,14 +49,14 @@ async function gsmCall(phoneNumber, action) {
|
|
|
68
49
|
* @param phoneNumber - The phone number to call to
|
|
69
50
|
* @param action - Action to take
|
|
70
51
|
*/
|
|
71
|
-
async function mobileGsmCall(phoneNumber, action) {
|
|
52
|
+
export async function mobileGsmCall(phoneNumber, action) {
|
|
72
53
|
await this.gsmCall(phoneNumber, action);
|
|
73
54
|
}
|
|
74
55
|
/**
|
|
75
56
|
* @deprecated Use mobile: extension
|
|
76
57
|
*/
|
|
77
|
-
async function gsmSignal(signalStrength) {
|
|
78
|
-
|
|
58
|
+
export async function gsmSignal(signalStrength) {
|
|
59
|
+
requireEmulator.bind(this)('gsmSignal is only available for emulators');
|
|
79
60
|
await this.adb.gsmSignal(signalStrength);
|
|
80
61
|
}
|
|
81
62
|
/**
|
|
@@ -83,14 +64,14 @@ async function gsmSignal(signalStrength) {
|
|
|
83
64
|
*
|
|
84
65
|
* @param strength - The signal strength value
|
|
85
66
|
*/
|
|
86
|
-
async function mobileGsmSignal(strength) {
|
|
67
|
+
export async function mobileGsmSignal(strength) {
|
|
87
68
|
await this.gsmSignal(strength);
|
|
88
69
|
}
|
|
89
70
|
/**
|
|
90
71
|
* @deprecated Use mobile: extension
|
|
91
72
|
*/
|
|
92
|
-
async function gsmVoice(state) {
|
|
93
|
-
|
|
73
|
+
export async function gsmVoice(state) {
|
|
74
|
+
requireEmulator.bind(this)('gsmVoice is only available for emulators');
|
|
94
75
|
await this.adb.gsmVoice(state);
|
|
95
76
|
}
|
|
96
77
|
/**
|
|
@@ -98,14 +79,14 @@ async function gsmVoice(state) {
|
|
|
98
79
|
*
|
|
99
80
|
* @param state - The voice state
|
|
100
81
|
*/
|
|
101
|
-
async function mobileGsmVoice(state) {
|
|
82
|
+
export async function mobileGsmVoice(state) {
|
|
102
83
|
await this.gsmVoice(state);
|
|
103
84
|
}
|
|
104
85
|
/**
|
|
105
86
|
* @deprecated Use mobile: extension
|
|
106
87
|
*/
|
|
107
|
-
async function powerAC(state) {
|
|
108
|
-
|
|
88
|
+
export async function powerAC(state) {
|
|
89
|
+
requireEmulator.bind(this)('powerAC is only available for emulators');
|
|
109
90
|
await this.adb.powerAC(state);
|
|
110
91
|
}
|
|
111
92
|
/**
|
|
@@ -113,14 +94,14 @@ async function powerAC(state) {
|
|
|
113
94
|
*
|
|
114
95
|
* @param state - The AC power state
|
|
115
96
|
*/
|
|
116
|
-
async function mobilePowerAc(state) {
|
|
97
|
+
export async function mobilePowerAc(state) {
|
|
117
98
|
await this.powerAC(state);
|
|
118
99
|
}
|
|
119
100
|
/**
|
|
120
101
|
* @deprecated Use mobile: extension
|
|
121
102
|
*/
|
|
122
|
-
async function powerCapacity(batteryPercent) {
|
|
123
|
-
|
|
103
|
+
export async function powerCapacity(batteryPercent) {
|
|
104
|
+
requireEmulator.bind(this)('powerCapacity is only available for emulators');
|
|
124
105
|
await this.adb.powerCapacity(batteryPercent);
|
|
125
106
|
}
|
|
126
107
|
/**
|
|
@@ -128,14 +109,14 @@ async function powerCapacity(batteryPercent) {
|
|
|
128
109
|
*
|
|
129
110
|
* @param percent - Percentage value in range `[0, 100]`
|
|
130
111
|
*/
|
|
131
|
-
async function mobilePowerCapacity(percent) {
|
|
112
|
+
export async function mobilePowerCapacity(percent) {
|
|
132
113
|
await this.powerCapacity(percent);
|
|
133
114
|
}
|
|
134
115
|
/**
|
|
135
116
|
* @deprecated Use mobile: extension
|
|
136
117
|
*/
|
|
137
|
-
async function networkSpeed(networkSpeed) {
|
|
138
|
-
|
|
118
|
+
export async function networkSpeed(networkSpeed) {
|
|
119
|
+
requireEmulator.bind(this)('networkSpeed is only available for emulators');
|
|
139
120
|
await this.adb.networkSpeed(networkSpeed);
|
|
140
121
|
}
|
|
141
122
|
/**
|
|
@@ -143,7 +124,7 @@ async function networkSpeed(networkSpeed) {
|
|
|
143
124
|
*
|
|
144
125
|
* @param speed - The network speed value
|
|
145
126
|
*/
|
|
146
|
-
async function mobileNetworkSpeed(speed) {
|
|
127
|
+
export async function mobileNetworkSpeed(speed) {
|
|
147
128
|
await this.networkSpeed(speed);
|
|
148
129
|
}
|
|
149
130
|
/**
|
|
@@ -153,13 +134,13 @@ async function mobileNetworkSpeed(speed) {
|
|
|
153
134
|
* @param value - Value to set to the sensor
|
|
154
135
|
* @throws {errors.InvalidArgumentError} If sensorType or value is not provided
|
|
155
136
|
*/
|
|
156
|
-
async function sensorSet(sensorType, value) {
|
|
157
|
-
|
|
158
|
-
if (!
|
|
159
|
-
throw new
|
|
137
|
+
export async function sensorSet(sensorType, value) {
|
|
138
|
+
requireEmulator.bind(this)('sensorSet is only available for emulators');
|
|
139
|
+
if (!util.hasValue(sensorType)) {
|
|
140
|
+
throw new errors.InvalidArgumentError(`'sensorType' argument is required`);
|
|
160
141
|
}
|
|
161
|
-
if (!
|
|
162
|
-
throw new
|
|
142
|
+
if (!util.hasValue(value)) {
|
|
143
|
+
throw new errors.InvalidArgumentError(`'value' argument is required`);
|
|
163
144
|
}
|
|
164
145
|
await this.adb.sensorSet(sensorType, value);
|
|
165
146
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emulator-actions.js","sourceRoot":"","sources":["../../../../lib/commands/device/emulator-actions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"emulator-actions.js","sourceRoot":"","sources":["../../../../lib/commands/device/emulator-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAC,eAAe,EAAC,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAUxC;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAE/B,aAA8B;IAE9B,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,6CAA6C,CAAC,CAAC;IAC1E,MAAM,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;AACpD,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAErC,aAA8B;IAE9B,MAAM,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;AACxC,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,OAAO,CAE3B,WAAmB,EACnB,OAAe;IAEf,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,yCAAyC,CAAC,CAAC;IACtE,MAAM,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC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Q,CAAC,UAAU,CAAC,EAAE,CAAC;QAC/B,MAAM,IAAI,MAAM,CAAC,oBAAoB,CAAC,mCAAmC,CAAC,CAAC;IAC7E,CAAC;IACD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,MAAM,CAAC,oBAAoB,CAAC,8BAA8B,CAAC,CAAC;IACxE,CAAC;IACD,MAAM,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,UAAU,EAAE,KAAY,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emulator-console.d.ts","sourceRoot":"","sources":["../../../../lib/commands/device/emulator-console.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"emulator-console.d.ts","sourceRoot":"","sources":["../../../../lib/commands/device/emulator-console.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAInD;;;;;;;;;;;;GAYG;AACH,wBAAsB,2BAA2B,CAC/C,IAAI,EAAE,aAAa,EACnB,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAC1B,WAAW,CAAC,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,MAAM,CAAC,CAYjB"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mobileExecEmuConsoleCommand = mobileExecEmuConsoleCommand;
|
|
4
|
-
const driver_1 = require("appium/driver");
|
|
1
|
+
import { errors } from 'appium/driver.js';
|
|
5
2
|
const EMU_CONSOLE_FEATURE = 'emulator_console';
|
|
6
3
|
/**
|
|
7
4
|
* Executes an emulator console command.
|
|
@@ -16,10 +13,10 @@ const EMU_CONSOLE_FEATURE = 'emulator_console';
|
|
|
16
13
|
* @throws {errors.InvalidArgumentError} If command is not provided
|
|
17
14
|
* @see {@link https://developer.android.com/studio/run/emulator-console}
|
|
18
15
|
*/
|
|
19
|
-
async function mobileExecEmuConsoleCommand(command, execTimeout, connTimeout, initTimeout) {
|
|
16
|
+
export async function mobileExecEmuConsoleCommand(command, execTimeout, connTimeout, initTimeout) {
|
|
20
17
|
this.assertFeatureEnabled(EMU_CONSOLE_FEATURE);
|
|
21
18
|
if (!command) {
|
|
22
|
-
throw new
|
|
19
|
+
throw new errors.InvalidArgumentError(`The 'command' argument is mandatory`);
|
|
23
20
|
}
|
|
24
21
|
return await this.adb.execEmuConsoleCommand(command, {
|
|
25
22
|
execTimeout,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emulator-console.js","sourceRoot":"","sources":["../../../../lib/commands/device/emulator-console.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"emulator-console.js","sourceRoot":"","sources":["../../../../lib/commands/device/emulator-console.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAGxC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AAE/C;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAE/C,OAA0B,EAC1B,WAAoB,EACpB,WAAoB,EACpB,WAAoB;IAEpB,IAAI,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;IAE/C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,MAAM,CAAC,oBAAoB,CAAC,qCAAqC,CAAC,CAAC;IAC/E,CAAC;IAED,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,qBAAqB,CAAC,OAAO,EAAE;QACnD,WAAW;QACX,WAAW;QACX,WAAW;KACZ,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../lib/commands/device/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,YAAY,CAAC;AAU/B,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../lib/commands/device/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,YAAY,CAAC;AAU/B,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAKnD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAIzE;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CASpF;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,EAAE,CAiB5D;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CA4ClF;AAED;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,CA0CrE;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CA6D/F;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAWrF;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAI/E"}
|