appium-espresso-driver 8.6.2 → 9.0.1
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/actions.d.ts +1 -1
- package/build/lib/commands/actions.d.ts.map +1 -1
- package/build/lib/commands/actions.js +1 -4
- package/build/lib/commands/actions.js.map +1 -1
- package/build/lib/commands/app-install.d.ts +1 -1
- package/build/lib/commands/app-install.d.ts.map +1 -1
- package/build/lib/commands/app-install.js +31 -41
- package/build/lib/commands/app-install.js.map +1 -1
- package/build/lib/commands/app-management.d.ts +1 -1
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +8 -12
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/clipboard.d.ts +1 -1
- package/build/lib/commands/clipboard.d.ts.map +1 -1
- package/build/lib/commands/clipboard.js +2 -6
- package/build/lib/commands/clipboard.js.map +1 -1
- package/build/lib/commands/context.d.ts +1 -1
- package/build/lib/commands/context.d.ts.map +1 -1
- package/build/lib/commands/context.js +2 -6
- package/build/lib/commands/context.js.map +1 -1
- package/build/lib/commands/element.d.ts +1 -1
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js +17 -30
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/idling-resources.d.ts +1 -1
- package/build/lib/commands/idling-resources.d.ts.map +1 -1
- package/build/lib/commands/idling-resources.js +4 -10
- package/build/lib/commands/idling-resources.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 +14 -25
- package/build/lib/commands/misc.js.map +1 -1
- package/build/lib/commands/screenshot.d.ts +2 -2
- package/build/lib/commands/screenshot.d.ts.map +1 -1
- package/build/lib/commands/screenshot.js +2 -6
- package/build/lib/commands/screenshot.js.map +1 -1
- package/build/lib/commands/server/builder.js +24 -33
- package/build/lib/commands/server/builder.js.map +1 -1
- package/build/lib/commands/server/constants.js +5 -8
- package/build/lib/commands/server/constants.js.map +1 -1
- package/build/lib/commands/server/index.d.ts +4 -4
- package/build/lib/commands/server/index.d.ts.map +1 -1
- package/build/lib/commands/server/index.js +4 -16
- package/build/lib/commands/server/index.js.map +1 -1
- package/build/lib/commands/server/runner.d.ts +2 -2
- package/build/lib/commands/server/runner.d.ts.map +1 -1
- package/build/lib/commands/server/runner.js +59 -98
- package/build/lib/commands/server/runner.js.map +1 -1
- package/build/lib/commands/server/startup.d.ts +1 -1
- package/build/lib/commands/server/startup.d.ts.map +1 -1
- package/build/lib/commands/server/startup.js +16 -22
- package/build/lib/commands/server/startup.js.map +1 -1
- package/build/lib/commands/services.d.ts +1 -1
- package/build/lib/commands/services.d.ts.map +1 -1
- package/build/lib/commands/services.js +2 -6
- package/build/lib/commands/services.js.map +1 -1
- package/build/lib/commands/types.js +1 -2
- package/build/lib/constraints.js +3 -6
- package/build/lib/constraints.js.map +1 -1
- package/build/lib/doctor/optional-checks.js +3 -6
- package/build/lib/doctor/optional-checks.js.map +1 -1
- package/build/lib/doctor/required-checks.js +18 -25
- package/build/lib/doctor/required-checks.js.map +1 -1
- package/build/lib/driver.d.ts +12 -12
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +36 -73
- package/build/lib/driver.js.map +1 -1
- package/build/lib/execute-method-map.js +3 -6
- package/build/lib/execute-method-map.js.map +1 -1
- package/build/lib/index.d.ts +1 -1
- package/build/lib/index.d.ts.map +1 -1
- package/build/lib/index.js +3 -6
- 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 +3 -6
- package/build/lib/method-map.js.map +1 -1
- package/build/lib/types.d.ts +1 -1
- package/build/lib/types.d.ts.map +1 -1
- package/build/lib/types.js +1 -2
- package/build/lib/utils/app.js +1 -4
- package/build/lib/utils/app.js.map +1 -1
- package/build/lib/utils/index.d.ts +3 -3
- package/build/lib/utils/index.d.ts.map +1 -1
- package/build/lib/utils/index.js +3 -12
- package/build/lib/utils/index.js.map +1 -1
- package/build/lib/utils/package.d.ts.map +1 -1
- package/build/lib/utils/package.js +19 -24
- package/build/lib/utils/package.js.map +1 -1
- package/build/lib/utils/predicates.js +3 -8
- package/build/lib/utils/predicates.js.map +1 -1
- package/espresso-server/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk +0 -0
- package/espresso-server/buildSrc/.gradle/{9.6.0 → 9.6.1}/executionHistory/executionHistory.bin +0 -0
- package/espresso-server/buildSrc/.gradle/9.6.1/executionHistory/executionHistory.lock +0 -0
- package/espresso-server/buildSrc/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/espresso-server/buildSrc/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/espresso-server/buildSrc/.gradle/file-system.probe +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/last-build.bin +0 -0
- package/espresso-server/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/Version.kt +1 -1
- package/lib/commands/actions.ts +1 -1
- package/lib/commands/app-install.ts +4 -4
- package/lib/commands/app-management.ts +3 -3
- package/lib/commands/clipboard.ts +1 -1
- package/lib/commands/context.ts +1 -1
- package/lib/commands/element.ts +3 -3
- package/lib/commands/idling-resources.ts +1 -1
- package/lib/commands/misc.ts +4 -4
- package/lib/commands/screenshot.ts +2 -2
- package/lib/commands/server/builder.ts +2 -2
- package/lib/commands/server/index.ts +4 -4
- package/lib/commands/server/runner.ts +8 -6
- package/lib/commands/server/startup.ts +4 -4
- package/lib/commands/services.ts +1 -1
- package/lib/doctor/required-checks.ts +1 -1
- package/lib/driver.ts +19 -19
- package/lib/index.ts +1 -1
- package/lib/logger.ts +1 -1
- package/lib/types.ts +1 -1
- package/lib/utils/index.ts +3 -3
- package/lib/utils/package.ts +5 -3
- package/npm-shrinkwrap.json +120 -86
- package/package.json +15 -8
- package/espresso-server/buildSrc/.gradle/9.6.0/executionHistory/executionHistory.lock +0 -0
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mobileRegisterIdlingResources = mobileRegisterIdlingResources;
|
|
4
|
-
exports.mobileUnregisterIdlingResources = mobileUnregisterIdlingResources;
|
|
5
|
-
exports.mobileListIdlingResources = mobileListIdlingResources;
|
|
6
|
-
exports.mobileWaitForUIThread = mobileWaitForUIThread;
|
|
7
1
|
/**
|
|
8
2
|
* Registers one or more idling resources
|
|
9
3
|
*
|
|
@@ -20,7 +14,7 @@ exports.mobileWaitForUIThread = mobileWaitForUIThread;
|
|
|
20
14
|
* @throws {Error} If there was a failure while parsing options or registering
|
|
21
15
|
* the actual instances
|
|
22
16
|
*/
|
|
23
|
-
async function mobileRegisterIdlingResources(classNames) {
|
|
17
|
+
export async function mobileRegisterIdlingResources(classNames) {
|
|
24
18
|
return await this.espresso.jwproxy.command('/appium/execute_mobile/register_idling_resources', 'POST', {
|
|
25
19
|
classNames,
|
|
26
20
|
});
|
|
@@ -40,7 +34,7 @@ async function mobileRegisterIdlingResources(classNames) {
|
|
|
40
34
|
* @throws {Error} If there was a failure while parsing options or unregistering
|
|
41
35
|
* the actual instances
|
|
42
36
|
*/
|
|
43
|
-
async function mobileUnregisterIdlingResources(classNames) {
|
|
37
|
+
export async function mobileUnregisterIdlingResources(classNames) {
|
|
44
38
|
return await this.espresso.jwproxy.command('/appium/execute_mobile/unregister_idling_resources', 'POST', {
|
|
45
39
|
classNames,
|
|
46
40
|
});
|
|
@@ -51,14 +45,14 @@ async function mobileUnregisterIdlingResources(classNames) {
|
|
|
51
45
|
*
|
|
52
46
|
* @returns Promise that resolves to the list of fully qualified class names
|
|
53
47
|
*/
|
|
54
|
-
async function mobileListIdlingResources() {
|
|
48
|
+
export async function mobileListIdlingResources() {
|
|
55
49
|
return (await this.espresso.jwproxy.command('/appium/execute_mobile/list_idling_resources', 'GET'));
|
|
56
50
|
}
|
|
57
51
|
/**
|
|
58
52
|
* Wait for UI thread to be idle.
|
|
59
53
|
* @returns Promise that resolves when the UI thread is idle
|
|
60
54
|
*/
|
|
61
|
-
async function mobileWaitForUIThread() {
|
|
55
|
+
export async function mobileWaitForUIThread() {
|
|
62
56
|
return await this.espresso.jwproxy.command('/appium/execute_mobile/ui_thread_sync', 'POST');
|
|
63
57
|
}
|
|
64
58
|
//# sourceMappingURL=idling-resources.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"idling-resources.js","sourceRoot":"","sources":["../../../lib/commands/idling-resources.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"idling-resources.js","sourceRoot":"","sources":["../../../lib/commands/idling-resources.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,KAAK,UAAU,6BAA6B,CAEjD,UAAkB;IAElB,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CACxC,kDAAkD,EAClD,MAAM,EACN;QACE,UAAU;KACX,CACF,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,+BAA+B,CAEnD,UAAkB;IAElB,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CACxC,oDAAoD,EACpD,MAAM,EACN;QACE,UAAU;KACX,CACF,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB;IAC7C,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CACzC,8CAA8C,EAC9C,KAAK,CACN,CAAa,CAAC;AACjB,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB;IACzC,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,uCAAuC,EAAE,MAAM,CAAC,CAAC;AAC9F,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StringRecord } from '@appium/types';
|
|
2
|
-
import type { EspressoDriver } from '../driver';
|
|
3
|
-
import type { DeviceInfo } from '../types';
|
|
2
|
+
import type { EspressoDriver } from '../driver.js';
|
|
3
|
+
import type { DeviceInfo } from '../types.js';
|
|
4
4
|
/**
|
|
5
5
|
* Settings parameters that are available in
|
|
6
6
|
* https://github.com/appium/appium-espresso-driver#settings-api or enabled plugins.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../lib/commands/misc.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../lib/commands/misc.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AAE5C;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CAC1C;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,cAAc,EACpB,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,MAAM,EAClB,KAAK,CAAC,EAAE,MAAM,EACd,WAAW,GAAE,OAAe,GAC3B,OAAO,CAAC,IAAI,CAAC,CAUf;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,CAEnF;AAED;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,cAAc,EACpB,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,OAAO,GACjB,OAAO,CAAC,GAAG,CAAC,CAQd;AACD;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAM7E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,cAAc,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,YAAY,EAAE,EACvB,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,GAAG,CAAC,CAWd;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,cAAc,EACpB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,GAAG,CAAC,CAOd;AAED;;;;GAIG;AACH,wBAAsB,2BAA2B,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAKvF;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,cAAc,EACpB,QAAQ,EAAE,eAAe,GACxB,OAAO,CAAC,IAAI,CAAC,CAOf;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAOpF"}
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.mobilePressKey = mobilePressKey;
|
|
4
|
-
exports.mobileGetDeviceInfo = mobileGetDeviceInfo;
|
|
5
|
-
exports.mobileIsToastVisible = mobileIsToastVisible;
|
|
6
|
-
exports.getDisplayDensity = getDisplayDensity;
|
|
7
|
-
exports.mobileBackdoor = mobileBackdoor;
|
|
8
|
-
exports.mobileUiautomator = mobileUiautomator;
|
|
9
|
-
exports.mobileUiautomatorPageSource = mobileUiautomatorPageSource;
|
|
10
|
-
exports.updateSettings = updateSettings;
|
|
11
|
-
exports.getSettings = getSettings;
|
|
12
|
-
const support_1 = require("appium/support");
|
|
13
|
-
const driver_1 = require("appium/driver");
|
|
1
|
+
import { util } from 'appium/support.js';
|
|
2
|
+
import { errors } from 'appium/driver.js';
|
|
14
3
|
/**
|
|
15
4
|
* Emulates key press event.
|
|
16
5
|
*
|
|
@@ -22,7 +11,7 @@ const driver_1 = require("appium/driver");
|
|
|
22
11
|
* https://developer.android.com/reference/android/view/KeyEvent for more details.
|
|
23
12
|
* @param isLongPress Whether to emulate long key press
|
|
24
13
|
*/
|
|
25
|
-
async function mobilePressKey(keycode, metastate, flags, isLongPress = false) {
|
|
14
|
+
export async function mobilePressKey(keycode, metastate, flags, isLongPress = false) {
|
|
26
15
|
await this.espresso.jwproxy.command(`/appium/device/${isLongPress ? 'long_' : ''}press_keycode`, 'POST', {
|
|
27
16
|
keycode,
|
|
28
17
|
metastate,
|
|
@@ -34,7 +23,7 @@ async function mobilePressKey(keycode, metastate, flags, isLongPress = false) {
|
|
|
34
23
|
* @returns Promise that resolves to device information including API version, platform version, manufacturer,
|
|
35
24
|
* model, display size, and density
|
|
36
25
|
*/
|
|
37
|
-
async function mobileGetDeviceInfo() {
|
|
26
|
+
export async function mobileGetDeviceInfo() {
|
|
38
27
|
return (await this.espresso.jwproxy.command('/appium/device/info', 'GET'));
|
|
39
28
|
}
|
|
40
29
|
/**
|
|
@@ -45,9 +34,9 @@ async function mobileGetDeviceInfo() {
|
|
|
45
34
|
* @returns Promise that resolves to true if the toast is visible, false otherwise
|
|
46
35
|
* @throws {errors.InvalidArgumentError} If text is not provided
|
|
47
36
|
*/
|
|
48
|
-
async function mobileIsToastVisible(text, isRegexp) {
|
|
49
|
-
if (!
|
|
50
|
-
throw new
|
|
37
|
+
export async function mobileIsToastVisible(text, isRegexp) {
|
|
38
|
+
if (!util.hasValue(text)) {
|
|
39
|
+
throw new errors.InvalidArgumentError(`'text' argument is mandatory`);
|
|
51
40
|
}
|
|
52
41
|
return await this.espresso.jwproxy.command('/appium/execute_mobile/is_toast_displayed', 'POST', {
|
|
53
42
|
text,
|
|
@@ -58,7 +47,7 @@ async function mobileIsToastVisible(text, isRegexp) {
|
|
|
58
47
|
* Gets the display density (DPI) of the connected Android device.
|
|
59
48
|
* @returns Promise that resolves to the display density value
|
|
60
49
|
*/
|
|
61
|
-
async function getDisplayDensity() {
|
|
50
|
+
export async function getDisplayDensity() {
|
|
62
51
|
return (await this.espresso.jwproxy.command('/appium/device/display_density', 'GET', {}));
|
|
63
52
|
}
|
|
64
53
|
/**
|
|
@@ -109,9 +98,9 @@ async function getDisplayDensity() {
|
|
|
109
98
|
* @throws {Error} If target is not 'activity', 'application', or 'element'
|
|
110
99
|
* @throws {Error} If a method is not found with the given argument types
|
|
111
100
|
*/
|
|
112
|
-
async function mobileBackdoor(target, methods, elementId) {
|
|
101
|
+
export async function mobileBackdoor(target, methods, elementId) {
|
|
113
102
|
if (target === 'element' && !elementId) {
|
|
114
|
-
throw new
|
|
103
|
+
throw new errors.InvalidArgumentError(`'elementId' is required if 'target' equals to 'element'`);
|
|
115
104
|
}
|
|
116
105
|
return await this.espresso.jwproxy.command(`/appium/execute_mobile/backdoor`, 'POST', {
|
|
117
106
|
target,
|
|
@@ -135,7 +124,7 @@ async function mobileBackdoor(target, methods, elementId) {
|
|
|
135
124
|
* @param index - Optional zero-based index if multiple elements match the locator
|
|
136
125
|
* @returns Promise that resolves to the result of the action (varies by action type)
|
|
137
126
|
*/
|
|
138
|
-
async function mobileUiautomator(strategy, locator, action, index) {
|
|
127
|
+
export async function mobileUiautomator(strategy, locator, action, index) {
|
|
139
128
|
return await this.espresso.jwproxy.command(`/appium/execute_mobile/uiautomator`, 'POST', {
|
|
140
129
|
strategy,
|
|
141
130
|
locator,
|
|
@@ -148,7 +137,7 @@ async function mobileUiautomator(strategy, locator, action, index) {
|
|
|
148
137
|
* @throws {Error} if uiautomator view dump is unsuccessful
|
|
149
138
|
* @returns {Promise<string>} uiautomator DOM xml as string
|
|
150
139
|
*/
|
|
151
|
-
async function mobileUiautomatorPageSource() {
|
|
140
|
+
export async function mobileUiautomatorPageSource() {
|
|
152
141
|
return (await this.espresso.jwproxy.command(`/appium/execute_mobile/uiautomator_page_source`, 'GET'));
|
|
153
142
|
}
|
|
154
143
|
/**
|
|
@@ -157,7 +146,7 @@ async function mobileUiautomatorPageSource() {
|
|
|
157
146
|
* @param settings - Settings object containing key-value pairs of settings to apply
|
|
158
147
|
* @returns Promise that resolves when settings are updated
|
|
159
148
|
*/
|
|
160
|
-
async function updateSettings(settings) {
|
|
149
|
+
export async function updateSettings(settings) {
|
|
161
150
|
await this.settings.update(settings);
|
|
162
151
|
try {
|
|
163
152
|
await this.espresso.jwproxy.command(`/appium/settings`, 'POST', { settings });
|
|
@@ -170,7 +159,7 @@ async function updateSettings(settings) {
|
|
|
170
159
|
* Retrieves the current settings from both the driver and the espresso server.
|
|
171
160
|
* @returns Promise that resolves to a merged object containing all current settings from both driver and server
|
|
172
161
|
*/
|
|
173
|
-
async function getSettings() {
|
|
162
|
+
export async function getSettings() {
|
|
174
163
|
const driverSettings = this.settings.getSettings();
|
|
175
164
|
const serverSettings = (await this.espresso.jwproxy.command(`/appium/settings`, 'GET'));
|
|
176
165
|
return { ...driverSettings, ...serverSettings };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../../lib/commands/misc.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../../lib/commands/misc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAaxC;;;;;;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AAW,EAAE,CAAC;IACnD,MAAM,cAAc,GAAG,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAGrF,CAAC;IACF,OAAO,EAAC,GAAG,cAAc,EAAE,GAAG,cAAc,EAAC,CAAC;AAChD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { EspressoDriver } from '../driver';
|
|
2
|
-
import type { ScreenshotsInfo } from './types';
|
|
1
|
+
import type { EspressoDriver } from '../driver.js';
|
|
2
|
+
import type { ScreenshotsInfo } from './types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves screenshots of each display available to Android.
|
|
5
5
|
* This functionality is only supported since Android 10.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../../lib/commands/screenshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../../lib/commands/screenshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,YAAY,CAAC;AAKhD;;;;;;;;;;GAUG;AACH,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,cAAc,EACpB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAC1B,OAAO,CAAC,eAAe,CAAC,CAkD1B;AAED;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAEzE"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mobileScreenshots = mobileScreenshots;
|
|
4
|
-
exports.getScreenshot = getScreenshot;
|
|
5
1
|
// Display 4619827259835644672 (HWC display 0): port=0 pnpId=GGL displayName="EMU_display_0"
|
|
6
2
|
const DISPLAY_PATTERN = /^Display\s+(\d+)\s+\(.+display\s+(\d+)\).+displayName="([^"]*)/gm;
|
|
7
3
|
/**
|
|
@@ -15,7 +11,7 @@ const DISPLAY_PATTERN = /^Display\s+(\d+)\s+\(.+display\s+(\d+)\).+displayName="
|
|
|
15
11
|
* and values contain display information and base64-encoded PNG screenshot data
|
|
16
12
|
* @throws {Error} If display information cannot be determined or if a provided displayId is not found
|
|
17
13
|
*/
|
|
18
|
-
async function mobileScreenshots(displayId) {
|
|
14
|
+
export async function mobileScreenshots(displayId) {
|
|
19
15
|
const displaysInfo = await this.adb.shell(['dumpsys', 'SurfaceFlinger', '--display-id']);
|
|
20
16
|
const infos = {};
|
|
21
17
|
let match;
|
|
@@ -69,7 +65,7 @@ async function mobileScreenshots(displayId) {
|
|
|
69
65
|
*
|
|
70
66
|
* @returns {Promise<string>}
|
|
71
67
|
*/
|
|
72
|
-
async function getScreenshot() {
|
|
68
|
+
export async function getScreenshot() {
|
|
73
69
|
return String(await this.espresso.jwproxy.command('/screenshot', 'GET'));
|
|
74
70
|
}
|
|
75
71
|
//# sourceMappingURL=screenshot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screenshot.js","sourceRoot":"","sources":["../../../lib/commands/screenshot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"screenshot.js","sourceRoot":"","sources":["../../../lib/commands/screenshot.ts"],"names":[],"mappings":"AAGA,4FAA4F;AAC5F,MAAM,eAAe,GAAG,kEAAkE,CAAC;AAE3F;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAErC,SAA2B;IAE3B,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,SAAS,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAC,CAAC;IACzF,MAAM,KAAK,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AAC,YAAY,CAAC;gBACtB,OAAO,EAAE,MAAM,eAAe,CAAC,YAAY,CAAC;aAC7C;SACF,CAAC;IACJ,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACtC,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAC,EAAE,EAAC,EAAE,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACnF,MAAM,MAAM,GAAoB,EAAE,CAAC;IACnC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACzC,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QACzB,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;QAC/B,IAAI,IAAI,IAAI,OAAO,EAAE,CAAC;YACpB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG;gBAChB,GAAG,IAAI;gBACP,OAAO;aACR,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa;IACjC,OAAO,MAAM,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC,CAAC;AAC3E,CAAC"}
|
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
exports.ServerBuilder = exports.VERSION_KEYS = exports.GRADLE_URL_TEMPLATE = void 0;
|
|
7
|
-
exports.buildServerSigningConfig = buildServerSigningConfig;
|
|
8
|
-
exports.updateDependencyLines = updateDependencyLines;
|
|
9
|
-
const teen_process_1 = require("teen_process");
|
|
10
|
-
const support_1 = require("appium/support");
|
|
11
|
-
const node_path_1 = __importDefault(require("node:path"));
|
|
12
|
-
const node_os_1 = require("node:os");
|
|
13
|
-
const utils_1 = require("../../utils");
|
|
1
|
+
import { SubProcess } from 'teen_process';
|
|
2
|
+
import { fs, system } from 'appium/support.js';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { EOL } from 'node:os';
|
|
5
|
+
import { escapeRegExp } from '../../utils/index.js';
|
|
14
6
|
const GRADLE_VERSION_KEY = 'gradle';
|
|
15
7
|
const GRADLE_URL_PREFIX = 'distributionUrl=';
|
|
16
|
-
|
|
8
|
+
export const GRADLE_URL_TEMPLATE = 'https\\://services.gradle.org/distributions/gradle-VERSION-all.zip';
|
|
17
9
|
const DEPENDENCY_PROP_NAMES = [
|
|
18
10
|
'additionalAppDependencies',
|
|
19
11
|
'additionalAndroidTestDependencies',
|
|
20
12
|
];
|
|
21
|
-
|
|
13
|
+
export const VERSION_KEYS = [
|
|
22
14
|
GRADLE_VERSION_KEY,
|
|
23
15
|
'androidGradlePlugin',
|
|
24
16
|
'compileSdk',
|
|
@@ -33,7 +25,7 @@ exports.VERSION_KEYS = [
|
|
|
33
25
|
'espressoVersion',
|
|
34
26
|
'annotationVersion',
|
|
35
27
|
];
|
|
36
|
-
class ServerBuilder {
|
|
28
|
+
export class ServerBuilder {
|
|
37
29
|
log;
|
|
38
30
|
serverPath;
|
|
39
31
|
showGradleLog;
|
|
@@ -52,7 +44,7 @@ class ServerBuilder {
|
|
|
52
44
|
const versionConfiguration = buildConfiguration.toolsVersions || {};
|
|
53
45
|
this.serverVersions = {};
|
|
54
46
|
for (const [key, value] of Object.entries(versionConfiguration)) {
|
|
55
|
-
if (
|
|
47
|
+
if (VERSION_KEYS.includes(key)) {
|
|
56
48
|
this.serverVersions[key] = value;
|
|
57
49
|
}
|
|
58
50
|
else {
|
|
@@ -74,9 +66,9 @@ class ServerBuilder {
|
|
|
74
66
|
await this.runBuildProcess();
|
|
75
67
|
}
|
|
76
68
|
getCommand() {
|
|
77
|
-
const cmd =
|
|
69
|
+
const cmd = system.isWindows() ? 'gradlew.bat' : path.resolve(this.serverPath, 'gradlew');
|
|
78
70
|
const buildProperty = (key, value) => value ? `-P${key}=${value}` : null;
|
|
79
|
-
const args =
|
|
71
|
+
const args = VERSION_KEYS.filter((key) => key !== GRADLE_VERSION_KEY)
|
|
80
72
|
.map((key) => {
|
|
81
73
|
const serverVersion = this.serverVersions[key];
|
|
82
74
|
const gradleProperty = `appium${key.charAt(0).toUpperCase()}${key.slice(1)}`;
|
|
@@ -111,13 +103,13 @@ class ServerBuilder {
|
|
|
111
103
|
return { cmd, args };
|
|
112
104
|
}
|
|
113
105
|
async setGradleWrapperVersion(version) {
|
|
114
|
-
const propertiesPath =
|
|
115
|
-
const originalProperties = await
|
|
106
|
+
const propertiesPath = path.resolve(this.serverPath, 'gradle', 'wrapper', 'gradle-wrapper.properties');
|
|
107
|
+
const originalProperties = await fs.readFile(propertiesPath, 'utf8');
|
|
116
108
|
const newProperties = this.updateGradleDistUrl(originalProperties, version);
|
|
117
|
-
await
|
|
109
|
+
await fs.writeFile(propertiesPath, newProperties, 'utf8');
|
|
118
110
|
}
|
|
119
111
|
updateGradleDistUrl(propertiesContent, version) {
|
|
120
|
-
return propertiesContent.replace(new RegExp(`^(${
|
|
112
|
+
return propertiesContent.replace(new RegExp(`^(${escapeRegExp(GRADLE_URL_PREFIX)}).+$`, 'gm'), `$1${GRADLE_URL_TEMPLATE.replace('VERSION', version)}`);
|
|
121
113
|
}
|
|
122
114
|
async insertAdditionalDependencies() {
|
|
123
115
|
let hasAdditionalDeps = false;
|
|
@@ -140,8 +132,8 @@ class ServerBuilder {
|
|
|
140
132
|
if (!hasAdditionalDeps) {
|
|
141
133
|
return;
|
|
142
134
|
}
|
|
143
|
-
const buildPath =
|
|
144
|
-
let configuration = await
|
|
135
|
+
const buildPath = path.resolve(this.serverPath, 'app', 'build.gradle.kts');
|
|
136
|
+
let configuration = await fs.readFile(buildPath, 'utf8');
|
|
145
137
|
for (const propName of DEPENDENCY_PROP_NAMES) {
|
|
146
138
|
const prefix = propName === DEPENDENCY_PROP_NAMES[0] ? 'api' : 'androidTestImplementation';
|
|
147
139
|
const deps = this[propName]
|
|
@@ -153,17 +145,17 @@ class ServerBuilder {
|
|
|
153
145
|
this.log.info(`Adding the following ${propName} to build.gradle.kts: ${deps}`);
|
|
154
146
|
configuration = updateDependencyLines(configuration, propName, deps);
|
|
155
147
|
}
|
|
156
|
-
await
|
|
148
|
+
await fs.writeFile(buildPath, configuration, 'utf8');
|
|
157
149
|
}
|
|
158
150
|
async runBuildProcess() {
|
|
159
151
|
const { cmd, args } = this.getCommand();
|
|
160
152
|
this.log.debug(`Beginning build with command '${cmd} ${args.join(' ')}' ` +
|
|
161
153
|
`in directory '${this.serverPath}'`);
|
|
162
|
-
const gradlebuild = new
|
|
154
|
+
const gradlebuild = new SubProcess(cmd, args, {
|
|
163
155
|
cwd: this.serverPath,
|
|
164
156
|
stdio: ['ignore', 'pipe', 'pipe'],
|
|
165
157
|
// https://github.com/nodejs/node/issues/52572
|
|
166
|
-
shell:
|
|
158
|
+
shell: system.isWindows(),
|
|
167
159
|
windowsVerbatimArguments: true,
|
|
168
160
|
});
|
|
169
161
|
const gradleError = [];
|
|
@@ -180,7 +172,7 @@ class ServerBuilder {
|
|
|
180
172
|
}
|
|
181
173
|
catch (err) {
|
|
182
174
|
const msg = `Unable to build Espresso server - ${err.message}\n` +
|
|
183
|
-
`Gradle error message:${
|
|
175
|
+
`Gradle error message:${EOL}${gradleError.join('\n')}`;
|
|
184
176
|
throw this.log.errorWithException(msg);
|
|
185
177
|
}
|
|
186
178
|
finally {
|
|
@@ -188,14 +180,13 @@ class ServerBuilder {
|
|
|
188
180
|
}
|
|
189
181
|
}
|
|
190
182
|
}
|
|
191
|
-
exports.ServerBuilder = ServerBuilder;
|
|
192
183
|
/**
|
|
193
184
|
* Build keystore options for signing the built Espresso server test APK.
|
|
194
185
|
*
|
|
195
186
|
* @param args - Paths and credentials for the keystore used when signing.
|
|
196
187
|
* @returns Configuration consumed by the Gradle signing step.
|
|
197
188
|
*/
|
|
198
|
-
function buildServerSigningConfig(args) {
|
|
189
|
+
export function buildServerSigningConfig(args) {
|
|
199
190
|
return {
|
|
200
191
|
zipAlign: true,
|
|
201
192
|
keystoreFile: args.keystoreFile,
|
|
@@ -212,9 +203,9 @@ function buildServerSigningConfig(args) {
|
|
|
212
203
|
* @param dependencyLines - Dependency lines to insert (e.g. `implementation "..."`).
|
|
213
204
|
* @returns Updated file content, or the original string if the placeholder is missing.
|
|
214
205
|
*/
|
|
215
|
-
function updateDependencyLines(originalContent, dependencyPlaceholder, dependencyLines) {
|
|
206
|
+
export function updateDependencyLines(originalContent, dependencyPlaceholder, dependencyLines) {
|
|
216
207
|
const configurationLines = originalContent.split('\n');
|
|
217
|
-
const searchRe = new RegExp(`^\\s*//\\s*\\b${
|
|
208
|
+
const searchRe = new RegExp(`^\\s*//\\s*\\b${escapeRegExp(dependencyPlaceholder)}\\b`, 'm');
|
|
218
209
|
const placeholderIndex = configurationLines.findIndex((line) => searchRe.test(line));
|
|
219
210
|
if (placeholderIndex < 0) {
|
|
220
211
|
return originalContent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../../../../lib/commands/server/builder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../../../../lib/commands/server/builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,EAAE,EAAE,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAC,GAAG,EAAC,MAAM,SAAS,CAAC;AAC5B,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGlD,MAAM,kBAAkB,GAAG,QAAQ,CAA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C,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACrF,IAAI,gBAAgB,GAAG,CAAC,EAAE,CAAC;QACzB,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,MAAM,eAAe,GAAG,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IAC7D,MAAM,SAAS,GAAG,eAAe,CAAC,MAAM,GAAG,eAAe,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC;IAC9E,kBAAkB,CAAC,MAAM,CACvB,gBAAgB,GAAG,CAAC,EACpB,CAAC,EACD,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,CAAC,CACpE,CAAC;IACF,OAAO,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
exports.TEST_APK_PKG = 'io.appium.espressoserver.test';
|
|
5
|
-
exports.ESPRESSO_SERVER_LAUNCH_TIMEOUT_MS = 45000;
|
|
6
|
-
exports.TARGET_PACKAGE_CONTAINER = '/data/local/tmp/espresso.apppackage';
|
|
1
|
+
export const TEST_APK_PKG = 'io.appium.espressoserver.test';
|
|
2
|
+
export const ESPRESSO_SERVER_LAUNCH_TIMEOUT_MS = 45000;
|
|
3
|
+
export const TARGET_PACKAGE_CONTAINER = '/data/local/tmp/espresso.apppackage';
|
|
7
4
|
/** System port range used to communicate with the Espresso HTTP server on the device. */
|
|
8
|
-
|
|
5
|
+
export const SYSTEM_PORT_RANGE = [8300, 8399];
|
|
9
6
|
/** Port the Espresso server listens on on the device (forwarded from {@link SYSTEM_PORT_RANGE}). */
|
|
10
|
-
|
|
7
|
+
export const DEVICE_PORT = 6791;
|
|
11
8
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../lib/commands/server/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../lib/commands/server/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,+BAA+B,CAAC;AAE5D,MAAM,CAAC,MAAM,iCAAiC,GAAG,KAAK,CAAC;AAEvD,MAAM,CAAC,MAAM,wBAAwB,GAAG,qCAAqC,CAAC;AAE9E,yFAAyF;AACzF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAE9C,oGAAoG;AACpG,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { SYSTEM_PORT_RANGE, TEST_APK_PKG } from './constants';
|
|
2
|
-
export { ServerBuilder, buildServerSigningConfig, type BuildServerSigningConfigArgs, type EspressoBuildConfiguration, type ServerBuilderOptions, type ServerSigningConfig, } from './builder';
|
|
3
|
-
export { EspressoRunner, type EspressoRunnerOptions } from './runner';
|
|
4
|
-
export { initServer, removePortForward, startSession, teardown } from './startup';
|
|
1
|
+
export { SYSTEM_PORT_RANGE, TEST_APK_PKG } from './constants.js';
|
|
2
|
+
export { ServerBuilder, buildServerSigningConfig, type BuildServerSigningConfigArgs, type EspressoBuildConfiguration, type ServerBuilderOptions, type ServerSigningConfig, } from './builder.js';
|
|
3
|
+
export { EspressoRunner, type EspressoRunnerOptions } from './runner.js';
|
|
4
|
+
export { initServer, removePortForward, startSession, teardown } from './startup.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/commands/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,YAAY,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/commands/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAC,cAAc,EAAE,KAAK,qBAAqB,EAAC,MAAM,aAAa,CAAC;AACvE,OAAO,EAAC,UAAU,EAAE,iBAAiB,EAAE,YAAY,EAAE,QAAQ,EAAC,MAAM,cAAc,CAAC"}
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "SYSTEM_PORT_RANGE", { enumerable: true, get: function () { return constants_1.SYSTEM_PORT_RANGE; } });
|
|
6
|
-
Object.defineProperty(exports, "TEST_APK_PKG", { enumerable: true, get: function () { return constants_1.TEST_APK_PKG; } });
|
|
7
|
-
var builder_1 = require("./builder");
|
|
8
|
-
Object.defineProperty(exports, "ServerBuilder", { enumerable: true, get: function () { return builder_1.ServerBuilder; } });
|
|
9
|
-
Object.defineProperty(exports, "buildServerSigningConfig", { enumerable: true, get: function () { return builder_1.buildServerSigningConfig; } });
|
|
10
|
-
var runner_1 = require("./runner");
|
|
11
|
-
Object.defineProperty(exports, "EspressoRunner", { enumerable: true, get: function () { return runner_1.EspressoRunner; } });
|
|
12
|
-
var startup_1 = require("./startup");
|
|
13
|
-
Object.defineProperty(exports, "initServer", { enumerable: true, get: function () { return startup_1.initServer; } });
|
|
14
|
-
Object.defineProperty(exports, "removePortForward", { enumerable: true, get: function () { return startup_1.removePortForward; } });
|
|
15
|
-
Object.defineProperty(exports, "startSession", { enumerable: true, get: function () { return startup_1.startSession; } });
|
|
16
|
-
Object.defineProperty(exports, "teardown", { enumerable: true, get: function () { return startup_1.teardown; } });
|
|
1
|
+
export { SYSTEM_PORT_RANGE, TEST_APK_PKG } from './constants.js';
|
|
2
|
+
export { ServerBuilder, buildServerSigningConfig, } from './builder.js';
|
|
3
|
+
export { EspressoRunner } from './runner.js';
|
|
4
|
+
export { initServer, removePortForward, startSession, teardown } from './startup.js';
|
|
17
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/commands/server/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/commands/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EACL,aAAa,EACb,wBAAwB,GAKzB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAC,cAAc,EAA6B,MAAM,aAAa,CAAC;AACvE,OAAO,EAAC,UAAU,EAAE,iBAAiB,EAAE,YAAY,EAAE,QAAQ,EAAC,MAAM,cAAc,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JWProxy } from 'appium/driver';
|
|
2
|
-
import { type ServerSigningConfig } from './builder';
|
|
1
|
+
import { JWProxy } from 'appium/driver.js';
|
|
2
|
+
import { type ServerSigningConfig } from './builder.js';
|
|
3
3
|
import type { AppiumLogger, StringRecord, HTTPMethod, HTTPBody, ProxyResponse } from '@appium/types';
|
|
4
4
|
import type { ADB } from 'appium-adb';
|
|
5
5
|
import type { SubProcess } from 'teen_process';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../../../lib/commands/server/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../../../lib/commands/server/runner.ts"],"names":[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