@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 CHANGED
@@ -31449,8 +31449,9 @@ var deviceProps = {
31449
31449
  "Build User": "ro.build.user"
31450
31450
  };
31451
31451
  var AdbDeviceKit = class {
31452
- constructor(deviceId, port) {
31452
+ constructor(deviceId, port, config) {
31453
31453
  this.port = port;
31454
+ this.config = config;
31454
31455
  setNamespace(`adb-kit:${deviceId}`);
31455
31456
  ensureAdbPathFromResources();
31456
31457
  installConnectionErrorHandler();
@@ -31464,7 +31465,7 @@ var AdbDeviceKit = class {
31464
31465
  deviceId;
31465
31466
  devicePort = null;
31466
31467
  connect() {
31467
- const adbBin = process.env.ADB_PATH ?? getAdbBinaryPath() ?? "adb";
31468
+ const adbBin = process.env.ADB_PATH ?? this.config?.binPath ?? "adb";
31468
31469
  const client = adbkit.default.createClient({ bin: adbBin });
31469
31470
  const errorHandler = (err) => {
31470
31471
  logError(`ADB client connection error (e.g. device disconnected): ${err.message}`);
@@ -31530,7 +31531,7 @@ var AdbDeviceKit = class {
31530
31531
  * during tracking don't affect other operations.
31531
31532
  */
31532
31533
  createTrackingClient() {
31533
- const adbBin = process.env.ADB_PATH ?? getAdbBinaryPath() ?? "adb";
31534
+ const adbBin = process.env.ADB_PATH ?? this.config?.binPath ?? "adb";
31534
31535
  return adbkit.default.createClient({ bin: adbBin });
31535
31536
  }
31536
31537
  async waitForUsbDebugging(timeout2 = 12e4, _numberOfAllowedAttempts = 5) {