@mcesystems/adb-kit 1.0.96 → 1.0.97
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/dist/index.js +39 -4
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +39 -4
- package/dist/index.mjs.map +3 -3
- package/dist/types/index.d.ts +9 -0
- package/package.json +3 -4
package/dist/types/index.d.ts
CHANGED
|
@@ -85,6 +85,15 @@ export declare class AdbDeviceKit {
|
|
|
85
85
|
*/
|
|
86
86
|
private createTrackingClient;
|
|
87
87
|
private matchesDeviceId;
|
|
88
|
+
/**
|
|
89
|
+
* Waits for USB debugging to be authorized (e.g. user enables and allows on device).
|
|
90
|
+
* Returns a promise that resolves when the device is ready, or false on timeout.
|
|
91
|
+
* Subscribe to events for progress (off, needs always allow, authorized).
|
|
92
|
+
*/
|
|
93
|
+
waitForUsbDebugging(timeoutMs?: number, _numberOfAllowedAttempts?: number): {
|
|
94
|
+
promise: Promise<boolean>;
|
|
95
|
+
events: UsbDebuggingEventEmitter;
|
|
96
|
+
};
|
|
88
97
|
trackUsbDebuggingStatus(eventEmitter: UsbDebuggingEventEmitter): Promise<() => void>;
|
|
89
98
|
startPortForward(serviceName: string): Promise<number | null>;
|
|
90
99
|
getDeviceId(): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcesystems/adb-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.97",
|
|
4
4
|
"description": "ADB (Android Debug Bridge) toolkit for device management",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@devicefarmer/adbkit": "^3.3.8",
|
|
33
33
|
"get-port": "^7.1.0",
|
|
34
34
|
"tsx": "^4.21.0",
|
|
35
|
-
"@mcesystems/tool-debug-g4": "1.0.
|
|
35
|
+
"@mcesystems/tool-debug-g4": "1.0.97"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^22.10.2",
|
|
@@ -59,7 +59,6 @@
|
|
|
59
59
|
"pack": "npm pack",
|
|
60
60
|
"test": "vitest run",
|
|
61
61
|
"test:watch": "vitest",
|
|
62
|
-
"example:first-android-properties": "tsx src/examples/first-connected-android-properties.ts"
|
|
63
|
-
"example:usb-debugging-playground": "tsx src/examples/usb-debugging-playground.ts"
|
|
62
|
+
"example:first-android-properties": "tsx src/examples/first-connected-android-properties.ts"
|
|
64
63
|
}
|
|
65
64
|
}
|