appium-adb 14.2.1 → 14.3.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 +12 -0
- package/build/lib/adb.d.ts +1 -0
- package/build/lib/adb.d.ts.map +1 -1
- package/build/lib/adb.js +1 -0
- package/build/lib/adb.js.map +1 -1
- package/build/lib/tools/android-manifest.d.ts.map +1 -1
- package/build/lib/tools/android-manifest.js.map +1 -1
- package/build/lib/tools/apks-utils.d.ts.map +1 -1
- package/build/lib/tools/apks-utils.js.map +1 -1
- package/build/lib/tools/app-commands.d.ts +12 -1
- package/build/lib/tools/app-commands.d.ts.map +1 -1
- package/build/lib/tools/app-commands.js +44 -20
- package/build/lib/tools/app-commands.js.map +1 -1
- package/build/lib/tools/general-commands.d.ts.map +1 -1
- package/build/lib/tools/general-commands.js.map +1 -1
- package/build/lib/tools/lockmgmt.d.ts.map +1 -1
- package/build/lib/tools/lockmgmt.js +9 -9
- package/build/lib/tools/lockmgmt.js.map +1 -1
- package/build/lib/tools/network-commands.d.ts.map +1 -1
- package/build/lib/tools/network-commands.js.map +1 -1
- package/build/lib/tools/system-calls.d.ts.map +1 -1
- package/build/lib/tools/system-calls.js +1 -1
- package/build/lib/tools/system-calls.js.map +1 -1
- package/build/lib/tools/types.d.ts +17 -0
- package/build/lib/tools/types.d.ts.map +1 -1
- package/lib/adb.ts +1 -0
- package/lib/tools/aab-utils.ts +0 -1
- package/lib/tools/android-manifest.ts +3 -10
- package/lib/tools/apks-utils.ts +1 -6
- package/lib/tools/app-commands.ts +53 -20
- package/lib/tools/general-commands.ts +2 -8
- package/lib/tools/lockmgmt.ts +17 -12
- package/lib/tools/logcat-commands.ts +0 -1
- package/lib/tools/network-commands.ts +1 -5
- package/lib/tools/system-calls.ts +5 -1
- package/lib/tools/types.ts +19 -0
- package/package.json +2 -1
|
@@ -78,10 +78,7 @@ export async function reversePort(
|
|
|
78
78
|
* @param devicePort - The number of the remote device port
|
|
79
79
|
* to remove forwarding on.
|
|
80
80
|
*/
|
|
81
|
-
export async function removePortReverse(
|
|
82
|
-
this: ADB,
|
|
83
|
-
devicePort: string | number,
|
|
84
|
-
): Promise<void> {
|
|
81
|
+
export async function removePortReverse(this: ADB, devicePort: string | number): Promise<void> {
|
|
85
82
|
log.debug(`Removing reverse forwarded port socket connection: ${devicePort} `);
|
|
86
83
|
await this.adbExec(['reverse', `--remove`, `tcp:${devicePort}`]);
|
|
87
84
|
}
|
|
@@ -158,4 +155,3 @@ export async function listPorts(this: ADB, family: PortFamily = '4'): Promise<Po
|
|
|
158
155
|
}
|
|
159
156
|
return result;
|
|
160
157
|
}
|
|
161
|
-
|
|
@@ -473,7 +473,11 @@ export async function adbExec<
|
|
|
473
473
|
(args.find((arg) => /\s+/.test(arg)) ? util.quote(args) : args.join(' ')) +
|
|
474
474
|
`'`,
|
|
475
475
|
);
|
|
476
|
-
const {stdout: rawStdout, stderr} = await exec(
|
|
476
|
+
const {stdout: rawStdout, stderr} = (await exec(
|
|
477
|
+
this.executable.path,
|
|
478
|
+
args,
|
|
479
|
+
optsCopy,
|
|
480
|
+
)) as TeenProcessExecResult<string>;
|
|
477
481
|
// sometimes ADB prints out weird stdout warnings that we don't want
|
|
478
482
|
// to include in any of the response data, so let's strip it out
|
|
479
483
|
const stdout = rawStdout.replace(LINKER_WARNING_REGEXP, '').trim();
|
package/lib/tools/types.ts
CHANGED
|
@@ -313,6 +313,25 @@ export interface IsAppInstalledOptions {
|
|
|
313
313
|
user?: string;
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
+
export interface ListInstalledPackagesOptions {
|
|
317
|
+
/**
|
|
318
|
+
* The user id
|
|
319
|
+
*/
|
|
320
|
+
user?: string;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export interface ListInstalledPackagesResult {
|
|
324
|
+
/**
|
|
325
|
+
* The app package name
|
|
326
|
+
*/
|
|
327
|
+
appPackage: string;
|
|
328
|
+
/**
|
|
329
|
+
* The app package version code for API level 28+,
|
|
330
|
+
* otherwise null.
|
|
331
|
+
*/
|
|
332
|
+
versionCode: string | null;
|
|
333
|
+
}
|
|
334
|
+
|
|
316
335
|
export interface StartUriOptions {
|
|
317
336
|
/**
|
|
318
337
|
* If `false` then adb won't wait
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-adb",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.3.0",
|
|
4
4
|
"description": "Android Debug Bridge interface",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"prepare": "npm run rebuild",
|
|
13
13
|
"rebuild": "npm run clean && npm run build",
|
|
14
14
|
"format": "prettier -w ./lib ./test",
|
|
15
|
+
"format:check": "prettier --check ./lib ./test",
|
|
15
16
|
"test": "mocha --exit --timeout 1m \"./test/unit/**/*-specs.ts\"",
|
|
16
17
|
"e2e-test": "mocha --exit --timeout 5m \"./test/functional/**/*-specs.ts\""
|
|
17
18
|
},
|