@mcesystems/adb-kit 1.0.87 → 1.0.90
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 +4 -3
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +2 -2
- package/dist/types/index.d.ts +2 -1
- package/package.json +3 -2
- package/scripts/export-resources.ts +8 -7
package/dist/index.mjs
CHANGED
|
@@ -31445,8 +31445,9 @@ var deviceProps = {
|
|
|
31445
31445
|
"Build User": "ro.build.user"
|
|
31446
31446
|
};
|
|
31447
31447
|
var AdbDeviceKit = class {
|
|
31448
|
-
constructor(deviceId, port) {
|
|
31448
|
+
constructor(deviceId, port, config) {
|
|
31449
31449
|
this.port = port;
|
|
31450
|
+
this.config = config;
|
|
31450
31451
|
setNamespace(`adb-kit:${deviceId}`);
|
|
31451
31452
|
ensureAdbPathFromResources();
|
|
31452
31453
|
installConnectionErrorHandler();
|
|
@@ -31460,7 +31461,7 @@ var AdbDeviceKit = class {
|
|
|
31460
31461
|
deviceId;
|
|
31461
31462
|
devicePort = null;
|
|
31462
31463
|
connect() {
|
|
31463
|
-
const adbBin = process.env.ADB_PATH ??
|
|
31464
|
+
const adbBin = process.env.ADB_PATH ?? this.config?.binPath ?? "adb";
|
|
31464
31465
|
const client = adbkit.default.createClient({ bin: adbBin });
|
|
31465
31466
|
const errorHandler = (err) => {
|
|
31466
31467
|
logError(`ADB client connection error (e.g. device disconnected): ${err.message}`);
|
|
@@ -31526,7 +31527,7 @@ var AdbDeviceKit = class {
|
|
|
31526
31527
|
* during tracking don't affect other operations.
|
|
31527
31528
|
*/
|
|
31528
31529
|
createTrackingClient() {
|
|
31529
|
-
const adbBin = process.env.ADB_PATH ??
|
|
31530
|
+
const adbBin = process.env.ADB_PATH ?? this.config?.binPath ?? "adb";
|
|
31530
31531
|
return adbkit.default.createClient({ bin: adbBin });
|
|
31531
31532
|
}
|
|
31532
31533
|
async waitForUsbDebugging(timeout2 = 12e4, _numberOfAllowedAttempts = 5) {
|