appium-android-driver 9.6.4 → 9.6.6
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 +14 -0
- package/build/lib/commands/app-management.d.ts +11 -11
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +22 -22
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/appearance.d.ts.map +1 -1
- package/build/lib/commands/appearance.js +2 -3
- package/build/lib/commands/appearance.js.map +1 -1
- package/build/lib/commands/bluetooth.d.ts +3 -3
- package/build/lib/commands/bluetooth.d.ts.map +1 -1
- package/build/lib/commands/bluetooth.js +1 -2
- package/build/lib/commands/bluetooth.js.map +1 -1
- package/build/lib/commands/context/cache.d.ts +3 -3
- package/build/lib/commands/context/cache.d.ts.map +1 -1
- package/build/lib/commands/context/cache.js +3 -3
- package/build/lib/commands/context/cache.js.map +1 -1
- package/build/lib/commands/context/exports.d.ts +9 -9
- package/build/lib/commands/context/exports.d.ts.map +1 -1
- package/build/lib/commands/context/exports.js +15 -16
- package/build/lib/commands/context/exports.js.map +1 -1
- package/build/lib/commands/context/helpers.d.ts +5 -5
- package/build/lib/commands/context/helpers.d.ts.map +1 -1
- package/build/lib/commands/context/helpers.js +8 -8
- package/build/lib/commands/context/helpers.js.map +1 -1
- package/build/lib/commands/device/common.d.ts +4 -4
- package/build/lib/commands/device/common.d.ts.map +1 -1
- package/build/lib/commands/device/common.js +4 -5
- package/build/lib/commands/device/common.js.map +1 -1
- package/build/lib/commands/device/emulator-actions.d.ts +14 -14
- package/build/lib/commands/device/emulator-actions.d.ts.map +1 -1
- package/build/lib/commands/device/emulator-actions.js +17 -18
- 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 +1 -2
- package/build/lib/commands/device/emulator-console.js.map +1 -1
- package/build/lib/commands/device/utils.d.ts.map +1 -1
- package/build/lib/commands/device/utils.js +9 -10
- package/build/lib/commands/device/utils.js.map +1 -1
- package/build/lib/commands/deviceidle.d.ts +2 -2
- package/build/lib/commands/deviceidle.d.ts.map +1 -1
- package/build/lib/commands/deviceidle.js +1 -2
- package/build/lib/commands/deviceidle.js.map +1 -1
- package/build/lib/commands/element.d.ts +4 -4
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js +15 -16
- 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 +3 -4
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/file-actions.d.ts +5 -5
- package/build/lib/commands/file-actions.d.ts.map +1 -1
- package/build/lib/commands/file-actions.js +7 -8
- package/build/lib/commands/file-actions.js.map +1 -1
- package/build/lib/commands/find.js +2 -3
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/geolocation.d.ts +2 -2
- package/build/lib/commands/geolocation.d.ts.map +1 -1
- package/build/lib/commands/geolocation.js +7 -8
- package/build/lib/commands/geolocation.js.map +1 -1
- package/build/lib/commands/gestures.d.ts +2 -2
- package/build/lib/commands/gestures.d.ts.map +1 -1
- package/build/lib/commands/gestures.js +1 -2
- package/build/lib/commands/gestures.js.map +1 -1
- package/build/lib/commands/image-injection.d.ts +3 -3
- package/build/lib/commands/image-injection.d.ts.map +1 -1
- package/build/lib/commands/image-injection.js +1 -2
- 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 +5 -6
- 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 +15 -7
- 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 +10 -11
- package/build/lib/commands/keyboard.js.map +1 -1
- package/build/lib/commands/legacy.d.ts +1 -1
- package/build/lib/commands/legacy.js +3 -4
- package/build/lib/commands/legacy.js.map +1 -1
- package/build/lib/commands/lock/exports.d.ts +3 -7
- package/build/lib/commands/lock/exports.d.ts.map +1 -1
- package/build/lib/commands/lock/exports.js +6 -7
- package/build/lib/commands/lock/exports.js.map +1 -1
- package/build/lib/commands/lock/helpers.d.ts +7 -278
- package/build/lib/commands/lock/helpers.d.ts.map +1 -1
- package/build/lib/commands/lock/helpers.js +14 -14
- package/build/lib/commands/lock/helpers.js.map +1 -1
- package/build/lib/commands/log.d.ts +1 -1
- package/build/lib/commands/log.d.ts.map +1 -1
- package/build/lib/commands/log.js +5 -5
- package/build/lib/commands/log.js.map +1 -1
- package/build/lib/commands/media-projection.d.ts +1 -1
- package/build/lib/commands/media-projection.d.ts.map +1 -1
- package/build/lib/commands/media-projection.js +3 -4
- 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 +1 -2
- package/build/lib/commands/memory.js.map +1 -1
- package/build/lib/commands/misc.d.ts +5 -5
- package/build/lib/commands/misc.d.ts.map +1 -1
- package/build/lib/commands/misc.js +7 -8
- 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 +10 -11
- package/build/lib/commands/network.js.map +1 -1
- package/build/lib/commands/nfc.d.ts +3 -3
- package/build/lib/commands/nfc.d.ts.map +1 -1
- package/build/lib/commands/nfc.js +1 -2
- package/build/lib/commands/nfc.js.map +1 -1
- package/build/lib/commands/performance.d.ts +4 -4
- package/build/lib/commands/performance.d.ts.map +1 -1
- package/build/lib/commands/performance.js +8 -8
- package/build/lib/commands/performance.js.map +1 -1
- package/build/lib/commands/permissions.d.ts +3 -3
- package/build/lib/commands/permissions.d.ts.map +1 -1
- package/build/lib/commands/permissions.js +2 -3
- package/build/lib/commands/permissions.js.map +1 -1
- package/build/lib/commands/recordscreen.d.ts +1 -1
- package/build/lib/commands/recordscreen.d.ts.map +1 -1
- package/build/lib/commands/recordscreen.js +2 -3
- package/build/lib/commands/recordscreen.js.map +1 -1
- package/build/lib/commands/resources.d.ts +2 -2
- package/build/lib/commands/resources.d.ts.map +1 -1
- package/build/lib/commands/resources.js +2 -3
- 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 +1 -2
- package/build/lib/commands/shell.js.map +1 -1
- package/build/lib/commands/streamscreen.d.ts +3 -6
- package/build/lib/commands/streamscreen.d.ts.map +1 -1
- package/build/lib/commands/streamscreen.js +2 -3
- package/build/lib/commands/streamscreen.js.map +1 -1
- package/build/lib/commands/system-bars.d.ts +4 -4
- package/build/lib/commands/system-bars.d.ts.map +1 -1
- package/build/lib/commands/system-bars.js +4 -5
- package/build/lib/commands/system-bars.js.map +1 -1
- package/build/lib/commands/time.d.ts +2 -2
- package/build/lib/commands/time.d.ts.map +1 -1
- package/build/lib/commands/time.js +3 -4
- package/build/lib/commands/time.js.map +1 -1
- package/build/lib/doctor/checks.d.ts +7 -7
- package/build/lib/doctor/checks.d.ts.map +1 -1
- package/build/lib/doctor/utils.d.ts.map +1 -1
- package/build/lib/doctor/utils.js +1 -2
- package/build/lib/doctor/utils.js.map +1 -1
- package/build/lib/driver.d.ts +3 -3
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/logger.d.ts +1 -1
- package/build/lib/logger.d.ts.map +1 -1
- package/build/lib/utils.d.ts +1 -1
- package/build/lib/utils.d.ts.map +1 -1
- package/build/lib/utils.js +4 -4
- package/build/lib/utils.js.map +1 -1
- package/lib/commands/intent.js +9 -1
- package/package.json +3 -6
|
@@ -3,7 +3,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.hideKeyboard = hideKeyboard;
|
|
7
|
+
exports.isKeyboardShown = isKeyboardShown;
|
|
8
|
+
exports.keys = keys;
|
|
9
|
+
exports.doSendKeys = doSendKeys;
|
|
10
|
+
exports.keyevent = keyevent;
|
|
11
|
+
exports.pressKeyCode = pressKeyCode;
|
|
12
|
+
exports.longPressKeyCode = longPressKeyCode;
|
|
13
|
+
exports.mobilePerformEditorAction = mobilePerformEditorAction;
|
|
14
|
+
exports.initUnicodeKeyboard = initUnicodeKeyboard;
|
|
15
|
+
exports.hideKeyboardCompletely = hideKeyboardCompletely;
|
|
7
16
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
8
17
|
const lodash_1 = __importDefault(require("lodash"));
|
|
9
18
|
const driver_1 = require("appium/driver");
|
|
@@ -16,7 +25,6 @@ const io_appium_settings_1 = require("io.appium.settings");
|
|
|
16
25
|
async function hideKeyboard() {
|
|
17
26
|
return await /** @type {import('appium-adb').ADB} */ (this.adb).hideKeyboard();
|
|
18
27
|
}
|
|
19
|
-
exports.hideKeyboard = hideKeyboard;
|
|
20
28
|
/**
|
|
21
29
|
* @this {import('../driver').AndroidDriver}
|
|
22
30
|
* @returns {Promise<boolean>}
|
|
@@ -25,7 +33,6 @@ async function isKeyboardShown() {
|
|
|
25
33
|
const { isKeyboardShown } = await /** @type {import('appium-adb').ADB} */ (this.adb).isSoftKeyboardPresent();
|
|
26
34
|
return isKeyboardShown;
|
|
27
35
|
}
|
|
28
|
-
exports.isKeyboardShown = isKeyboardShown;
|
|
29
36
|
/**
|
|
30
37
|
* @this {import('../driver').AndroidDriver}
|
|
31
38
|
* @param {string|string[]} keys
|
|
@@ -39,7 +46,6 @@ async function keys(keys) {
|
|
|
39
46
|
replace: false,
|
|
40
47
|
});
|
|
41
48
|
}
|
|
42
|
-
exports.keys = keys;
|
|
43
49
|
/**
|
|
44
50
|
* @this {import('../driver').AndroidDriver}
|
|
45
51
|
* @param {import('./types').SendKeysOpts} params
|
|
@@ -48,7 +54,6 @@ exports.keys = keys;
|
|
|
48
54
|
async function doSendKeys(params) {
|
|
49
55
|
throw new driver_1.errors.NotImplementedError('Not implemented');
|
|
50
56
|
}
|
|
51
|
-
exports.doSendKeys = doSendKeys;
|
|
52
57
|
/**
|
|
53
58
|
* @this {import('../driver').AndroidDriver}
|
|
54
59
|
* @param {string|number} keycode
|
|
@@ -60,7 +65,6 @@ async function keyevent(keycode, metastate) {
|
|
|
60
65
|
this.log.warn('keyevent will be deprecated use pressKeyCode');
|
|
61
66
|
return await this.pressKeyCode(keycode, metastate);
|
|
62
67
|
}
|
|
63
|
-
exports.keyevent = keyevent;
|
|
64
68
|
/**
|
|
65
69
|
* @this {import('../driver').AndroidDriver}
|
|
66
70
|
* @param {string|number} keycode
|
|
@@ -70,7 +74,6 @@ exports.keyevent = keyevent;
|
|
|
70
74
|
async function pressKeyCode(keycode, metastate) {
|
|
71
75
|
throw new driver_1.errors.NotImplementedError('Not implemented');
|
|
72
76
|
}
|
|
73
|
-
exports.pressKeyCode = pressKeyCode;
|
|
74
77
|
/**
|
|
75
78
|
* @this {import('../driver').AndroidDriver}
|
|
76
79
|
* @param {string|number} keycode
|
|
@@ -80,7 +83,6 @@ exports.pressKeyCode = pressKeyCode;
|
|
|
80
83
|
async function longPressKeyCode(keycode, metastate) {
|
|
81
84
|
throw new driver_1.errors.NotImplementedError('Not implemented');
|
|
82
85
|
}
|
|
83
|
-
exports.longPressKeyCode = longPressKeyCode;
|
|
84
86
|
/**
|
|
85
87
|
* @this {import('../driver').AndroidDriver}
|
|
86
88
|
* @param {import('./types').PerformEditorActionOpts} opts
|
|
@@ -90,7 +92,6 @@ async function mobilePerformEditorAction(opts) {
|
|
|
90
92
|
const { action } = (0, utils_1.requireArgs)('action', opts);
|
|
91
93
|
await this.settingsApp.performEditorAction(action);
|
|
92
94
|
}
|
|
93
|
-
exports.mobilePerformEditorAction = mobilePerformEditorAction;
|
|
94
95
|
// #region Internal Helpers
|
|
95
96
|
/**
|
|
96
97
|
* @deprecated
|
|
@@ -107,7 +108,6 @@ async function initUnicodeKeyboard() {
|
|
|
107
108
|
await this.adb.setIME(io_appium_settings_1.UNICODE_IME);
|
|
108
109
|
return defaultIME;
|
|
109
110
|
}
|
|
110
|
-
exports.initUnicodeKeyboard = initUnicodeKeyboard;
|
|
111
111
|
/**
|
|
112
112
|
* @this {import('../driver').AndroidDriver}
|
|
113
113
|
* @returns {Promise<void>}
|
|
@@ -117,6 +117,5 @@ async function hideKeyboardCompletely() {
|
|
|
117
117
|
await this.adb.enableIME(io_appium_settings_1.EMPTY_IME);
|
|
118
118
|
await this.adb.setIME(io_appium_settings_1.EMPTY_IME);
|
|
119
119
|
}
|
|
120
|
-
exports.hideKeyboardCompletely = hideKeyboardCompletely;
|
|
121
120
|
// #endregion
|
|
122
121
|
//# sourceMappingURL=keyboard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard.js","sourceRoot":"","sources":["../../../lib/commands/keyboard.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"keyboard.js","sourceRoot":"","sources":["../../../lib/commands/keyboard.js"],"names":[],"mappings":";;;;;AAUA,oCAEC;AAMD,0CAKC;AAOD,oBAOC;AAOD,gCAEC;AAQD,4BAIC;AAQD,oCAEC;AAQD,4CAEC;AAOD,8DAGC;AASD,kDAWC;AAMD,wDAIC;AAtHD,sDAAsD;AACtD,oDAAuB;AACvB,0CAAqC;AACrC,oCAAqC;AACrC,2DAA0D;AAE1D;;;GAGG;AACI,KAAK,UAAU,YAAY;IAChC,OAAO,MAAM,uCAAuC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,CAAC;AACjF,CAAC;A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A,mBAAW,EAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC7C,MAAM,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;AACrD,CAAC;AAED,2BAA2B;AAE3B;;;;GAIG;AACI,KAAK,UAAU,mBAAmB;IACvC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC;IAEpD,mEAAmE;IACnE,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC;IAE/C,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,0BAA0B,UAAU,EAAE,CAAC,CAAC;IACvD,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,mBAAmB,gCAAW,GAAG,CAAC,CAAC;IAClD,MAAM,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,gCAAW,CAAC,CAAC;IACtC,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,gCAAW,CAAC,CAAC;IACnC,OAAO,UAAU,CAAC;AACpB,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,sBAAsB;IAC1C,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,oDAAoD,8BAAS,GAAG,CAAC,CAAC;IACjF,MAAM,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,8BAAS,CAAC,CAAC;IACpC,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,8BAAS,CAAC,CAAC;AACnC,CAAC;AAED,aAAa"}
|
|
@@ -10,5 +10,5 @@ export function closeApp(this: import("../driver").AndroidDriver): Promise<void>
|
|
|
10
10
|
* @this {AndroidDriver}
|
|
11
11
|
*/
|
|
12
12
|
export function reset(this: import("../driver").AndroidDriver): Promise<void>;
|
|
13
|
-
export type AndroidDriver = import(
|
|
13
|
+
export type AndroidDriver = import("../driver").AndroidDriver;
|
|
14
14
|
//# sourceMappingURL=legacy.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.launchApp = launchApp;
|
|
4
|
+
exports.closeApp = closeApp;
|
|
5
|
+
exports.reset = reset;
|
|
4
6
|
const driver_1 = require("appium/driver");
|
|
5
7
|
const ISSUE_URL = 'https://github.com/appium/appium/issues/15807';
|
|
6
8
|
/**
|
|
@@ -10,7 +12,6 @@ const ISSUE_URL = 'https://github.com/appium/appium/issues/15807';
|
|
|
10
12
|
async function launchApp() {
|
|
11
13
|
throw new driver_1.errors.UnsupportedOperationError(`This API is not supported anymore. See ${ISSUE_URL}`);
|
|
12
14
|
}
|
|
13
|
-
exports.launchApp = launchApp;
|
|
14
15
|
/**
|
|
15
16
|
* @this {AndroidDriver}
|
|
16
17
|
*/
|
|
@@ -18,7 +19,6 @@ exports.launchApp = launchApp;
|
|
|
18
19
|
async function closeApp() {
|
|
19
20
|
throw new driver_1.errors.UnsupportedOperationError(`This API is not supported anymore. See ${ISSUE_URL}`);
|
|
20
21
|
}
|
|
21
|
-
exports.closeApp = closeApp;
|
|
22
22
|
/**
|
|
23
23
|
* @this {AndroidDriver}
|
|
24
24
|
*/
|
|
@@ -26,7 +26,6 @@ exports.closeApp = closeApp;
|
|
|
26
26
|
async function reset() {
|
|
27
27
|
throw new driver_1.errors.UnsupportedOperationError(`This API is not supported anymore. See ${ISSUE_URL}`);
|
|
28
28
|
}
|
|
29
|
-
exports.reset = reset;
|
|
30
29
|
/**
|
|
31
30
|
* @typedef {import('../driver').AndroidDriver} AndroidDriver
|
|
32
31
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legacy.js","sourceRoot":"","sources":["../../../lib/commands/legacy.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"legacy.js","sourceRoot":"","sources":["../../../lib/commands/legacy.js"],"names":[],"mappings":";;AAQA,8BAEC;AAMD,4BAEC;AAMD,sBAEC;AA1BD,0CAAuC;AAEvC,MAAM,SAAS,GAAG,+CAA+C,CAAC;AAElE;;GAEG;AACH,yCAAyC;AAClC,KAAK,UAAU,SAAS;IAC7B,MAAM,IAAI,eAAM,CAAC,yBAAyB,CAAC,0CAA0C,SAAS,EAAE,CAAC,CAAC;AACpG,CAAC;AAED;;GAEG;AACH,yCAAyC;AAClC,KAAK,UAAU,QAAQ;IAC5B,MAAM,IAAI,eAAM,CAAC,yBAAyB,CAAC,0CAA0C,SAAS,EAAE,CAAC,CAAC;AACpG,CAAC;AAED;;GAEG;AACH,yCAAyC;AAClC,KAAK,UAAU,KAAK;IACzB,MAAM,IAAI,eAAM,CAAC,yBAAyB,CAAC,0CAA0C,SAAS,EAAE,CAAC,CAAC;AACpG,CAAC;AAED;;GAEG"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @param {import('../types').LockOpts} opts
|
|
4
4
|
* @returns {Promise<void>}
|
|
5
5
|
*/
|
|
6
|
-
export function mobileLock(this: import("../../driver").AndroidDriver, opts?: import(
|
|
6
|
+
export function mobileLock(this: import("../../driver").AndroidDriver, opts?: import("../types").LockOpts): Promise<void>;
|
|
7
7
|
/**
|
|
8
8
|
* @this {AndroidDriver}
|
|
9
9
|
* @param {number} [seconds]
|
|
@@ -219,10 +219,6 @@ export function unlockWithOptions(this: import("../../driver").AndroidDriver, ca
|
|
|
219
219
|
readonly otherApps: {
|
|
220
220
|
readonly isString: true;
|
|
221
221
|
};
|
|
222
|
-
/**
|
|
223
|
-
* @typedef {import('@appium/types').Capabilities<import('../../constraints').AndroidDriverConstraints>} AndroidDriverCaps
|
|
224
|
-
* @typedef {import('../../driver').AndroidDriver} AndroidDriver
|
|
225
|
-
*/
|
|
226
222
|
readonly uninstallOtherPackages: {
|
|
227
223
|
readonly isString: true;
|
|
228
224
|
};
|
|
@@ -299,6 +295,6 @@ export function unlockWithOptions(this: import("../../driver").AndroidDriver, ca
|
|
|
299
295
|
readonly isString: true;
|
|
300
296
|
};
|
|
301
297
|
}> | null | undefined): Promise<void>;
|
|
302
|
-
export type AndroidDriverCaps = import(
|
|
303
|
-
export type AndroidDriver = import(
|
|
298
|
+
export type AndroidDriverCaps = import("@appium/types").Capabilities<import("../../constraints").AndroidDriverConstraints>;
|
|
299
|
+
export type AndroidDriver = import("../../driver").AndroidDriver;
|
|
304
300
|
//# sourceMappingURL=exports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../../lib/commands/lock/exports.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,8EAHW,OAAO,UAAU,EAAE,QAAQ,GACzB,
|
|
1
|
+
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../../lib/commands/lock/exports.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,8EAHW,OAAO,UAAU,EAAE,QAAQ,GACzB,OAAO,CAAC,IAAI,CAAC,CAKzB;AAED;;;;GAIG;AACH,gGAFa,OAAO,CAAC,IAAI,CAAC,CAczB;AAED;;;GAGG;AACH,sEAFa,OAAO,CAAC,OAAO,CAAC,CAI5B;AAED;;;GAGG;AACH,oEAFa,OAAO,CAAC,IAAI,CAAC,CAIzB;AAED;;;;GAIG;AACH,+HAFa,OAAO,CAAC,IAAI,CAAC,CAczB;AAID;;;;GAIG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAFa,OAAO,CAAC,IAAI,CAAC,CA0CzB;gCAKY,OAAO,eAAe,EAAE,YAAY,CAAC,OAAO,mBAAmB,EAAE,wBAAwB,CAAC;4BAC1F,OAAO,cAAc,EAAE,aAAa"}
|
|
@@ -3,7 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.mobileLock = mobileLock;
|
|
7
|
+
exports.lock = lock;
|
|
8
|
+
exports.isLocked = isLocked;
|
|
9
|
+
exports.unlock = unlock;
|
|
10
|
+
exports.mobileUnlock = mobileUnlock;
|
|
11
|
+
exports.unlockWithOptions = unlockWithOptions;
|
|
7
12
|
const bluebird_1 = __importDefault(require("bluebird"));
|
|
8
13
|
const helpers_1 = require("./helpers");
|
|
9
14
|
const lodash_1 = __importDefault(require("lodash"));
|
|
@@ -16,7 +21,6 @@ async function mobileLock(opts = {}) {
|
|
|
16
21
|
const { seconds } = opts;
|
|
17
22
|
return await this.lock(seconds);
|
|
18
23
|
}
|
|
19
|
-
exports.mobileLock = mobileLock;
|
|
20
24
|
/**
|
|
21
25
|
* @this {AndroidDriver}
|
|
22
26
|
* @param {number} [seconds]
|
|
@@ -34,7 +38,6 @@ async function lock(seconds) {
|
|
|
34
38
|
await bluebird_1.default.delay(1000 * floatSeconds);
|
|
35
39
|
await this.unlock();
|
|
36
40
|
}
|
|
37
|
-
exports.lock = lock;
|
|
38
41
|
/**
|
|
39
42
|
* @this {AndroidDriver}
|
|
40
43
|
* @returns {Promise<boolean>}
|
|
@@ -42,7 +45,6 @@ exports.lock = lock;
|
|
|
42
45
|
async function isLocked() {
|
|
43
46
|
return await this.adb.isScreenLocked();
|
|
44
47
|
}
|
|
45
|
-
exports.isLocked = isLocked;
|
|
46
48
|
/**
|
|
47
49
|
* @this {AndroidDriver}
|
|
48
50
|
* @returns {Promise<void>}
|
|
@@ -50,7 +52,6 @@ exports.isLocked = isLocked;
|
|
|
50
52
|
async function unlock() {
|
|
51
53
|
await unlockWithOptions.bind(this)();
|
|
52
54
|
}
|
|
53
|
-
exports.unlock = unlock;
|
|
54
55
|
/**
|
|
55
56
|
* @this {AndroidDriver}
|
|
56
57
|
* @param {import('../types').UnlockOptions} [opts={}]
|
|
@@ -70,7 +71,6 @@ async function mobileUnlock(opts = {}) {
|
|
|
70
71
|
});
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
exports.mobileUnlock = mobileUnlock;
|
|
74
74
|
// #region Internal Helpers
|
|
75
75
|
/**
|
|
76
76
|
* @this {AndroidDriver}
|
|
@@ -112,7 +112,6 @@ async function unlockWithOptions(caps = null) {
|
|
|
112
112
|
}
|
|
113
113
|
await helpers_1.verifyUnlock.bind(this)(unlockSuccessTimeout);
|
|
114
114
|
}
|
|
115
|
-
exports.unlockWithOptions = unlockWithOptions;
|
|
116
115
|
// #endregion
|
|
117
116
|
/**
|
|
118
117
|
* @typedef {import('@appium/types').Capabilities<import('../../constraints').AndroidDriverConstraints>} AndroidDriverCaps
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../lib/commands/lock/exports.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../lib/commands/lock/exports.js"],"names":[],"mappings":";;;;;AAwBA,gCAGC;AAOD,oBAYC;AAMD,4BAEC;AAMD,wBAEC;AAOD,oCAYC;AASD,8CAwCC;AAlID,wDAAyB;AACzB,uCAemB;AACnB,oDAAuB;AAEvB;;;;GAIG;AACI,KAAK,UAAU,UAAU,CAAC,IAAI,GAAG,EAAE;IACxC,MAAM,EAAC,OAAO,EAAC,GAAG,IAAI,CAAC;IACvB,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAClC,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,IAAI,CAAC,OAAO;IAChC,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACtB,IAAI,MAAM,C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AC,CAAC;IAC9C,CAAC;IACD,MAAM,sBAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAAC,CAAC;AACtD,CAAC;AAED,aAAa;AAEb;;;GAGG"}
|
|
@@ -3,289 +3,18 @@
|
|
|
3
3
|
* @param {import('../types').UnlockType} unlockType
|
|
4
4
|
* @returns {string}
|
|
5
5
|
*/
|
|
6
|
-
export function toCredentialType(unlockType: import(
|
|
6
|
+
export function toCredentialType(unlockType: import("../types").UnlockType): string;
|
|
7
7
|
/**
|
|
8
8
|
* @template {AndroidDriverCaps} T
|
|
9
9
|
* @param {T} caps
|
|
10
10
|
* @returns {T}
|
|
11
11
|
*/
|
|
12
|
-
export function validateUnlockCapabilities<T extends
|
|
13
|
-
readonly platformName: {
|
|
14
|
-
readonly isString: true;
|
|
15
|
-
readonly inclusionCaseInsensitive: readonly ["Android"];
|
|
16
|
-
readonly presence: true;
|
|
17
|
-
};
|
|
18
|
-
readonly deviceName: {
|
|
19
|
-
readonly isString: true;
|
|
20
|
-
};
|
|
21
|
-
readonly appActivity: {
|
|
22
|
-
readonly isString: true;
|
|
23
|
-
};
|
|
24
|
-
readonly appPackage: {
|
|
25
|
-
readonly isString: true;
|
|
26
|
-
};
|
|
27
|
-
readonly appWaitActivity: {
|
|
28
|
-
readonly isString: true;
|
|
29
|
-
};
|
|
30
|
-
readonly appWaitPackage: {
|
|
31
|
-
readonly isString: true;
|
|
32
|
-
};
|
|
33
|
-
readonly appWaitDuration: {
|
|
34
|
-
readonly isNumber: true;
|
|
35
|
-
};
|
|
36
|
-
readonly deviceReadyTimeout: {
|
|
37
|
-
readonly isNumber: true;
|
|
38
|
-
};
|
|
39
|
-
readonly androidDeviceReadyTimeout: {
|
|
40
|
-
readonly isNumber: true;
|
|
41
|
-
};
|
|
42
|
-
readonly androidDeviceSocket: {
|
|
43
|
-
readonly isString: true;
|
|
44
|
-
};
|
|
45
|
-
readonly androidInstallTimeout: {
|
|
46
|
-
readonly isNumber: true; /**
|
|
47
|
-
*
|
|
48
|
-
* @param {any} value
|
|
49
|
-
* @returns {value is string}
|
|
50
|
-
*/
|
|
51
|
-
};
|
|
52
|
-
readonly adbPort: {
|
|
53
|
-
readonly isNumber: true;
|
|
54
|
-
};
|
|
55
|
-
readonly remoteAdbHost: {
|
|
56
|
-
readonly isString: true;
|
|
57
|
-
};
|
|
58
|
-
readonly adbExecTimeout: {
|
|
59
|
-
readonly isNumber: true;
|
|
60
|
-
};
|
|
61
|
-
readonly avd: {
|
|
62
|
-
readonly isString: true;
|
|
63
|
-
};
|
|
64
|
-
readonly avdLaunchTimeout: {
|
|
65
|
-
readonly isNumber: true;
|
|
66
|
-
};
|
|
67
|
-
readonly avdReadyTimeout: {
|
|
68
|
-
readonly isNumber: true;
|
|
69
|
-
};
|
|
70
|
-
readonly avdArgs: {};
|
|
71
|
-
readonly avdEnv: {
|
|
72
|
-
readonly isObject: true;
|
|
73
|
-
};
|
|
74
|
-
readonly useKeystore: {
|
|
75
|
-
readonly isBoolean: true;
|
|
76
|
-
};
|
|
77
|
-
readonly keystorePath: {
|
|
78
|
-
readonly isString: true;
|
|
79
|
-
};
|
|
80
|
-
readonly keystorePassword: {
|
|
81
|
-
readonly isString: true;
|
|
82
|
-
};
|
|
83
|
-
readonly keyAlias: {
|
|
84
|
-
readonly isString: true;
|
|
85
|
-
};
|
|
86
|
-
readonly keyPassword: {
|
|
87
|
-
readonly isString: true;
|
|
88
|
-
};
|
|
89
|
-
readonly webviewDevtoolsPort: {
|
|
90
|
-
readonly isNumber: true;
|
|
91
|
-
};
|
|
92
|
-
readonly ensureWebviewsHavePages: {
|
|
93
|
-
readonly isBoolean: true;
|
|
94
|
-
};
|
|
95
|
-
readonly enableWebviewDetailsCollection: {
|
|
96
|
-
readonly isBoolean: true;
|
|
97
|
-
};
|
|
98
|
-
readonly chromedriverPort: {
|
|
99
|
-
readonly isNumber: true;
|
|
100
|
-
};
|
|
101
|
-
readonly chromedriverPorts: {
|
|
102
|
-
readonly isArray: true;
|
|
103
|
-
};
|
|
104
|
-
readonly chromedriverArgs: {
|
|
105
|
-
readonly isObject: true;
|
|
106
|
-
};
|
|
107
|
-
readonly chromedriverExecutable: {
|
|
108
|
-
readonly isString: true;
|
|
109
|
-
};
|
|
110
|
-
readonly chromedriverExecutableDir: {
|
|
111
|
-
readonly isString: true;
|
|
112
|
-
};
|
|
113
|
-
readonly chromedriverChromeMappingFile: {
|
|
114
|
-
readonly isString: true;
|
|
115
|
-
};
|
|
116
|
-
readonly chromedriverUseSystemExecutable: {
|
|
117
|
-
readonly isBoolean: true;
|
|
118
|
-
};
|
|
119
|
-
readonly chromedriverDisableBuildCheck: {
|
|
120
|
-
readonly isBoolean: true;
|
|
121
|
-
};
|
|
122
|
-
readonly chromeLoggingPrefs: {
|
|
123
|
-
readonly isObject: true;
|
|
124
|
-
};
|
|
125
|
-
readonly autoWebviewTimeout: {
|
|
126
|
-
readonly isNumber: true;
|
|
127
|
-
};
|
|
128
|
-
readonly autoWebviewName: {
|
|
129
|
-
readonly isString: true;
|
|
130
|
-
};
|
|
131
|
-
readonly intentAction: {
|
|
132
|
-
readonly isString: true;
|
|
133
|
-
};
|
|
134
|
-
readonly intentCategory: {
|
|
135
|
-
readonly isString: true;
|
|
136
|
-
};
|
|
137
|
-
readonly intentFlags: {
|
|
138
|
-
readonly isString: true;
|
|
139
|
-
};
|
|
140
|
-
readonly optionalIntentArguments: {
|
|
141
|
-
readonly isString: true;
|
|
142
|
-
};
|
|
143
|
-
readonly dontStopAppOnReset: {
|
|
144
|
-
readonly isBoolean: true;
|
|
145
|
-
};
|
|
146
|
-
readonly unicodeKeyboard: {
|
|
147
|
-
readonly isBoolean: true;
|
|
148
|
-
};
|
|
149
|
-
readonly hideKeyboard: {
|
|
150
|
-
readonly isBoolean: true;
|
|
151
|
-
};
|
|
152
|
-
readonly noSign: {
|
|
153
|
-
readonly isBoolean: true;
|
|
154
|
-
};
|
|
155
|
-
readonly recreateChromeDriverSessions: {
|
|
156
|
-
readonly isBoolean: false;
|
|
157
|
-
};
|
|
158
|
-
readonly autoLaunch: {
|
|
159
|
-
readonly isBoolean: true;
|
|
160
|
-
};
|
|
161
|
-
readonly nativeWebScreenshot: {
|
|
162
|
-
readonly isBoolean: true;
|
|
163
|
-
};
|
|
164
|
-
readonly clearSystemFiles: {
|
|
165
|
-
readonly isBoolean: true;
|
|
166
|
-
};
|
|
167
|
-
readonly extractChromeAndroidPackageFromContextName: {
|
|
168
|
-
readonly isBoolean: true;
|
|
169
|
-
};
|
|
170
|
-
readonly autoGrantPermissions: {
|
|
171
|
-
readonly isBoolean: true;
|
|
172
|
-
};
|
|
173
|
-
readonly networkSpeed: {
|
|
174
|
-
readonly isString: true;
|
|
175
|
-
};
|
|
176
|
-
readonly gpsEnabled: {
|
|
177
|
-
readonly isBoolean: true;
|
|
178
|
-
};
|
|
179
|
-
readonly isHeadless: {
|
|
180
|
-
readonly isBoolean: true;
|
|
181
|
-
};
|
|
182
|
-
readonly showChromedriverLog: {
|
|
183
|
-
readonly isBoolean: true;
|
|
184
|
-
};
|
|
185
|
-
readonly skipUnlock: {
|
|
186
|
-
readonly isBoolean: true;
|
|
187
|
-
};
|
|
188
|
-
readonly clearDeviceLogsOnStart: {
|
|
189
|
-
readonly isBoolean: true;
|
|
190
|
-
};
|
|
191
|
-
readonly unlockType: {
|
|
192
|
-
readonly isString: true;
|
|
193
|
-
};
|
|
194
|
-
readonly unlockKey: {
|
|
195
|
-
readonly isString: true;
|
|
196
|
-
};
|
|
197
|
-
readonly unlockStrategy: {
|
|
198
|
-
readonly isString: true;
|
|
199
|
-
readonly inclusionCaseInsensitive: readonly ["locksettings", "uiautomator"];
|
|
200
|
-
};
|
|
201
|
-
readonly otherApps: {
|
|
202
|
-
readonly isString: true;
|
|
203
|
-
};
|
|
204
|
-
readonly uninstallOtherPackages: {
|
|
205
|
-
readonly isString: true;
|
|
206
|
-
};
|
|
207
|
-
/**
|
|
208
|
-
* @this {AndroidDriver}
|
|
209
|
-
* @param {import('../types').FastUnlockOptions} opts
|
|
210
|
-
*/
|
|
211
|
-
readonly allowTestPackages: {
|
|
212
|
-
readonly isBoolean: true;
|
|
213
|
-
};
|
|
214
|
-
readonly pageLoadStrategy: {
|
|
215
|
-
readonly isString: true;
|
|
216
|
-
};
|
|
217
|
-
readonly localeScript: {
|
|
218
|
-
readonly isString: true;
|
|
219
|
-
};
|
|
220
|
-
readonly skipDeviceInitialization: {
|
|
221
|
-
readonly isBoolean: true;
|
|
222
|
-
};
|
|
223
|
-
readonly remoteAppsCacheLimit: {
|
|
224
|
-
readonly isNumber: true;
|
|
225
|
-
};
|
|
226
|
-
readonly buildToolsVersion: {
|
|
227
|
-
readonly isString: true;
|
|
228
|
-
};
|
|
229
|
-
readonly skipLogcatCapture: {
|
|
230
|
-
readonly isBoolean: true;
|
|
231
|
-
};
|
|
232
|
-
readonly chromeOptions: {
|
|
233
|
-
readonly isObject: true;
|
|
234
|
-
};
|
|
235
|
-
readonly enablePerformanceLogging: {
|
|
236
|
-
readonly isBoolean: true;
|
|
237
|
-
};
|
|
238
|
-
readonly userProfile: {
|
|
239
|
-
readonly isNumber: true;
|
|
240
|
-
};
|
|
241
|
-
readonly browserName: {
|
|
242
|
-
readonly isString: true;
|
|
243
|
-
};
|
|
244
|
-
readonly enforceAppInstall: {
|
|
245
|
-
readonly isBoolean: true;
|
|
246
|
-
};
|
|
247
|
-
readonly suppressKillServer: {
|
|
248
|
-
readonly isBoolean: true;
|
|
249
|
-
};
|
|
250
|
-
readonly allowOfflineDevices: {
|
|
251
|
-
readonly isBoolean: true;
|
|
252
|
-
};
|
|
253
|
-
readonly ignoreHiddenApiPolicyError: {
|
|
254
|
-
readonly isBoolean: true;
|
|
255
|
-
};
|
|
256
|
-
readonly unlockSuccessTimeout: {
|
|
257
|
-
readonly isNumber: true;
|
|
258
|
-
};
|
|
259
|
-
readonly mockLocationApp: {
|
|
260
|
-
readonly isString: true;
|
|
261
|
-
};
|
|
262
|
-
readonly logcatFormat: {
|
|
263
|
-
readonly isString: true;
|
|
264
|
-
};
|
|
265
|
-
readonly logcatFilterSpecs: {
|
|
266
|
-
readonly isArray: true;
|
|
267
|
-
};
|
|
268
|
-
readonly allowDelayAdb: {
|
|
269
|
-
readonly isBoolean: true;
|
|
270
|
-
};
|
|
271
|
-
readonly ignoreUnimportantViews: {
|
|
272
|
-
readonly isBoolean: true;
|
|
273
|
-
};
|
|
274
|
-
readonly disableWindowAnimation: {
|
|
275
|
-
readonly isBoolean: true;
|
|
276
|
-
};
|
|
277
|
-
readonly appWaitForLaunch: {
|
|
278
|
-
readonly isBoolean: true;
|
|
279
|
-
};
|
|
280
|
-
readonly timeZone: {
|
|
281
|
-
readonly isString: true;
|
|
282
|
-
};
|
|
283
|
-
}>>(caps: T): T;
|
|
12
|
+
export function validateUnlockCapabilities<T extends AndroidDriverCaps>(caps: T): T;
|
|
284
13
|
/**
|
|
285
14
|
* @this {AndroidDriver}
|
|
286
15
|
* @param {import('../types').FastUnlockOptions} opts
|
|
287
16
|
*/
|
|
288
|
-
export function fastUnlock(this: import("../../driver").AndroidDriver, opts: import(
|
|
17
|
+
export function fastUnlock(this: import("../../driver").AndroidDriver, opts: import("../types").FastUnlockOptions): Promise<void>;
|
|
289
18
|
/**
|
|
290
19
|
*
|
|
291
20
|
* @param {string} key
|
|
@@ -329,14 +58,14 @@ export function passwordUnlock(this: import("../../driver").AndroidDriver, capab
|
|
|
329
58
|
* @param {number} piece
|
|
330
59
|
* @returns {import('@appium/types').Position}
|
|
331
60
|
*/
|
|
332
|
-
export function getPatternKeyPosition(key: number, initPos: import(
|
|
61
|
+
export function getPatternKeyPosition(key: number, initPos: import("@appium/types").Position, piece: number): import("@appium/types").Position;
|
|
333
62
|
/**
|
|
334
63
|
* @param {string[]|number[]} keys
|
|
335
64
|
* @param {import('@appium/types').Position} initPos
|
|
336
65
|
* @param {number} piece
|
|
337
66
|
* @returns {import('@appium/types').StringRecord[]}
|
|
338
67
|
*/
|
|
339
|
-
export function getPatternActions(keys: string[] | number[], initPos: import(
|
|
68
|
+
export function getPatternActions(keys: string[] | number[], initPos: import("@appium/types").Position, piece: number): import("@appium/types").StringRecord[];
|
|
340
69
|
/**
|
|
341
70
|
* @this {AndroidDriver}
|
|
342
71
|
* @param {number?} [timeoutMs=null]
|
|
@@ -355,6 +84,6 @@ export const FINGERPRINT_UNLOCK: "fingerprint";
|
|
|
355
84
|
export const KEYCODE_NUMPAD_ENTER: 66;
|
|
356
85
|
export const UNLOCK_WAIT_TIME: 100;
|
|
357
86
|
export const INPUT_KEYS_WAIT_TIME: 100;
|
|
358
|
-
export type AndroidDriverCaps = import(
|
|
359
|
-
export type AndroidDriver = import(
|
|
87
|
+
export type AndroidDriverCaps = import("@appium/types").Capabilities<import("../../constraints").AndroidDriverConstraints>;
|
|
88
|
+
export type AndroidDriver = import("../../driver").AndroidDriver;
|
|
360
89
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../lib/commands/lock/helpers.js"],"names":[],"mappings":"AAmDA;;;;GAIG;AACH,6CAHW,OAAO,UAAU,EAAE,UAAU,GAC3B,MAAM,CAalB;AAED;;;;GAIG;AACH
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../lib/commands/lock/helpers.js"],"names":[],"mappings":"AAmDA;;;;GAIG;AACH,6CAHW,OAAO,UAAU,EAAE,UAAU,GAC3B,MAAM,CAalB;AAED;;;;GAIG;AACH,2CAJiC,CAAC,SAApB,iBAAkB,QACrB,CAAC,GACC,CAAC,CAsCb;AAED;;;GAGG;AACH,6EAFW,OAAO,UAAU,EAAE,iBAAiB,iBAqB9C;AAED;;;;GAIG;AACH,oCAHW,MAAM,GACJ,MAAM,CAIlB;AAED;;;;GAIG;AACH,oCAHW,MAAM,GACJ,MAAM,EAAE,CAIpB;AAED;;;;GAIG;AACH,4FAHW,iBAAiB,GACf,OAA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