@mcesystems/adb-kit 1.0.40 → 1.0.41
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 +807 -18
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +807 -18
- package/dist/index.mjs.map +4 -4
- package/dist/types/logic/adbDeviceKit.d.ts.map +1 -1
- package/package.json +3 -3
- package/scripts/export-resources.ts +342 -342
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
10
10
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
11
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
12
|
});
|
|
13
|
-
var __commonJS = (cb, mod) => function
|
|
13
|
+
var __commonJS = (cb, mod) => function __require3() {
|
|
14
14
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
15
|
};
|
|
16
16
|
var __copyProps = (to, from, except, desc) => {
|
|
@@ -30894,6 +30894,803 @@ logInfo.color = "45";
|
|
|
30894
30894
|
logWarning.color = "214";
|
|
30895
30895
|
logError.color = "160";
|
|
30896
30896
|
|
|
30897
|
+
// ../tool-debug/dist/index.mjs
|
|
30898
|
+
var __create2 = Object.create;
|
|
30899
|
+
var __defProp2 = Object.defineProperty;
|
|
30900
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
30901
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
30902
|
+
var __getProtoOf2 = Object.getPrototypeOf;
|
|
30903
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
30904
|
+
var __require2 = /* @__PURE__ */ ((x) => typeof __require !== "undefined" ? __require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
30905
|
+
get: (a, b) => (typeof __require !== "undefined" ? __require : a)[b]
|
|
30906
|
+
}) : x)(function(x) {
|
|
30907
|
+
if (typeof __require !== "undefined") return __require.apply(this, arguments);
|
|
30908
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
30909
|
+
});
|
|
30910
|
+
var __commonJS2 = (cb, mod) => function __require22() {
|
|
30911
|
+
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
30912
|
+
};
|
|
30913
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
30914
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
30915
|
+
for (let key of __getOwnPropNames2(from))
|
|
30916
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
30917
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
30918
|
+
}
|
|
30919
|
+
return to;
|
|
30920
|
+
};
|
|
30921
|
+
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
30922
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30923
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
30924
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
30925
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30926
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
30927
|
+
mod
|
|
30928
|
+
));
|
|
30929
|
+
var require_ms2 = __commonJS2({
|
|
30930
|
+
"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports2, module2) {
|
|
30931
|
+
var s = 1e3;
|
|
30932
|
+
var m = s * 60;
|
|
30933
|
+
var h = m * 60;
|
|
30934
|
+
var d = h * 24;
|
|
30935
|
+
var w = d * 7;
|
|
30936
|
+
var y = d * 365.25;
|
|
30937
|
+
module2.exports = function(val, options) {
|
|
30938
|
+
options = options || {};
|
|
30939
|
+
var type = typeof val;
|
|
30940
|
+
if (type === "string" && val.length > 0) {
|
|
30941
|
+
return parse(val);
|
|
30942
|
+
} else if (type === "number" && isFinite(val)) {
|
|
30943
|
+
return options.long ? fmtLong(val) : fmtShort(val);
|
|
30944
|
+
}
|
|
30945
|
+
throw new Error(
|
|
30946
|
+
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
|
|
30947
|
+
);
|
|
30948
|
+
};
|
|
30949
|
+
function parse(str) {
|
|
30950
|
+
str = String(str);
|
|
30951
|
+
if (str.length > 100) {
|
|
30952
|
+
return;
|
|
30953
|
+
}
|
|
30954
|
+
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
30955
|
+
str
|
|
30956
|
+
);
|
|
30957
|
+
if (!match) {
|
|
30958
|
+
return;
|
|
30959
|
+
}
|
|
30960
|
+
var n = parseFloat(match[1]);
|
|
30961
|
+
var type = (match[2] || "ms").toLowerCase();
|
|
30962
|
+
switch (type) {
|
|
30963
|
+
case "years":
|
|
30964
|
+
case "year":
|
|
30965
|
+
case "yrs":
|
|
30966
|
+
case "yr":
|
|
30967
|
+
case "y":
|
|
30968
|
+
return n * y;
|
|
30969
|
+
case "weeks":
|
|
30970
|
+
case "week":
|
|
30971
|
+
case "w":
|
|
30972
|
+
return n * w;
|
|
30973
|
+
case "days":
|
|
30974
|
+
case "day":
|
|
30975
|
+
case "d":
|
|
30976
|
+
return n * d;
|
|
30977
|
+
case "hours":
|
|
30978
|
+
case "hour":
|
|
30979
|
+
case "hrs":
|
|
30980
|
+
case "hr":
|
|
30981
|
+
case "h":
|
|
30982
|
+
return n * h;
|
|
30983
|
+
case "minutes":
|
|
30984
|
+
case "minute":
|
|
30985
|
+
case "mins":
|
|
30986
|
+
case "min":
|
|
30987
|
+
case "m":
|
|
30988
|
+
return n * m;
|
|
30989
|
+
case "seconds":
|
|
30990
|
+
case "second":
|
|
30991
|
+
case "secs":
|
|
30992
|
+
case "sec":
|
|
30993
|
+
case "s":
|
|
30994
|
+
return n * s;
|
|
30995
|
+
case "milliseconds":
|
|
30996
|
+
case "millisecond":
|
|
30997
|
+
case "msecs":
|
|
30998
|
+
case "msec":
|
|
30999
|
+
case "ms":
|
|
31000
|
+
return n;
|
|
31001
|
+
default:
|
|
31002
|
+
return void 0;
|
|
31003
|
+
}
|
|
31004
|
+
}
|
|
31005
|
+
function fmtShort(ms) {
|
|
31006
|
+
var msAbs = Math.abs(ms);
|
|
31007
|
+
if (msAbs >= d) {
|
|
31008
|
+
return Math.round(ms / d) + "d";
|
|
31009
|
+
}
|
|
31010
|
+
if (msAbs >= h) {
|
|
31011
|
+
return Math.round(ms / h) + "h";
|
|
31012
|
+
}
|
|
31013
|
+
if (msAbs >= m) {
|
|
31014
|
+
return Math.round(ms / m) + "m";
|
|
31015
|
+
}
|
|
31016
|
+
if (msAbs >= s) {
|
|
31017
|
+
return Math.round(ms / s) + "s";
|
|
31018
|
+
}
|
|
31019
|
+
return ms + "ms";
|
|
31020
|
+
}
|
|
31021
|
+
function fmtLong(ms) {
|
|
31022
|
+
var msAbs = Math.abs(ms);
|
|
31023
|
+
if (msAbs >= d) {
|
|
31024
|
+
return plural(ms, msAbs, d, "day");
|
|
31025
|
+
}
|
|
31026
|
+
if (msAbs >= h) {
|
|
31027
|
+
return plural(ms, msAbs, h, "hour");
|
|
31028
|
+
}
|
|
31029
|
+
if (msAbs >= m) {
|
|
31030
|
+
return plural(ms, msAbs, m, "minute");
|
|
31031
|
+
}
|
|
31032
|
+
if (msAbs >= s) {
|
|
31033
|
+
return plural(ms, msAbs, s, "second");
|
|
31034
|
+
}
|
|
31035
|
+
return ms + " ms";
|
|
31036
|
+
}
|
|
31037
|
+
function plural(ms, msAbs, n, name) {
|
|
31038
|
+
var isPlural = msAbs >= n * 1.5;
|
|
31039
|
+
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
31040
|
+
}
|
|
31041
|
+
}
|
|
31042
|
+
});
|
|
31043
|
+
var require_common3 = __commonJS2({
|
|
31044
|
+
"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js"(exports2, module2) {
|
|
31045
|
+
function setup(env2) {
|
|
31046
|
+
createDebug2.debug = createDebug2;
|
|
31047
|
+
createDebug2.default = createDebug2;
|
|
31048
|
+
createDebug2.coerce = coerce;
|
|
31049
|
+
createDebug2.disable = disable;
|
|
31050
|
+
createDebug2.enable = enable;
|
|
31051
|
+
createDebug2.enabled = enabled;
|
|
31052
|
+
createDebug2.humanize = require_ms2();
|
|
31053
|
+
createDebug2.destroy = destroy;
|
|
31054
|
+
Object.keys(env2).forEach((key) => {
|
|
31055
|
+
createDebug2[key] = env2[key];
|
|
31056
|
+
});
|
|
31057
|
+
createDebug2.names = [];
|
|
31058
|
+
createDebug2.skips = [];
|
|
31059
|
+
createDebug2.formatters = {};
|
|
31060
|
+
function selectColor(namespace) {
|
|
31061
|
+
let hash = 0;
|
|
31062
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
31063
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
31064
|
+
hash |= 0;
|
|
31065
|
+
}
|
|
31066
|
+
return createDebug2.colors[Math.abs(hash) % createDebug2.colors.length];
|
|
31067
|
+
}
|
|
31068
|
+
createDebug2.selectColor = selectColor;
|
|
31069
|
+
function createDebug2(namespace) {
|
|
31070
|
+
let prevTime;
|
|
31071
|
+
let enableOverride = null;
|
|
31072
|
+
let namespacesCache;
|
|
31073
|
+
let enabledCache;
|
|
31074
|
+
function debug2(...args) {
|
|
31075
|
+
if (!debug2.enabled) {
|
|
31076
|
+
return;
|
|
31077
|
+
}
|
|
31078
|
+
const self2 = debug2;
|
|
31079
|
+
const curr = Number(/* @__PURE__ */ new Date());
|
|
31080
|
+
const ms = curr - (prevTime || curr);
|
|
31081
|
+
self2.diff = ms;
|
|
31082
|
+
self2.prev = prevTime;
|
|
31083
|
+
self2.curr = curr;
|
|
31084
|
+
prevTime = curr;
|
|
31085
|
+
args[0] = createDebug2.coerce(args[0]);
|
|
31086
|
+
if (typeof args[0] !== "string") {
|
|
31087
|
+
args.unshift("%O");
|
|
31088
|
+
}
|
|
31089
|
+
let index = 0;
|
|
31090
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
31091
|
+
if (match === "%%") {
|
|
31092
|
+
return "%";
|
|
31093
|
+
}
|
|
31094
|
+
index++;
|
|
31095
|
+
const formatter = createDebug2.formatters[format];
|
|
31096
|
+
if (typeof formatter === "function") {
|
|
31097
|
+
const val = args[index];
|
|
31098
|
+
match = formatter.call(self2, val);
|
|
31099
|
+
args.splice(index, 1);
|
|
31100
|
+
index--;
|
|
31101
|
+
}
|
|
31102
|
+
return match;
|
|
31103
|
+
});
|
|
31104
|
+
createDebug2.formatArgs.call(self2, args);
|
|
31105
|
+
const logFn = self2.log || createDebug2.log;
|
|
31106
|
+
logFn.apply(self2, args);
|
|
31107
|
+
}
|
|
31108
|
+
debug2.namespace = namespace;
|
|
31109
|
+
debug2.useColors = createDebug2.useColors();
|
|
31110
|
+
debug2.color = createDebug2.selectColor(namespace);
|
|
31111
|
+
debug2.extend = extend;
|
|
31112
|
+
debug2.destroy = createDebug2.destroy;
|
|
31113
|
+
Object.defineProperty(debug2, "enabled", {
|
|
31114
|
+
enumerable: true,
|
|
31115
|
+
configurable: false,
|
|
31116
|
+
get: () => {
|
|
31117
|
+
if (enableOverride !== null) {
|
|
31118
|
+
return enableOverride;
|
|
31119
|
+
}
|
|
31120
|
+
if (namespacesCache !== createDebug2.namespaces) {
|
|
31121
|
+
namespacesCache = createDebug2.namespaces;
|
|
31122
|
+
enabledCache = createDebug2.enabled(namespace);
|
|
31123
|
+
}
|
|
31124
|
+
return enabledCache;
|
|
31125
|
+
},
|
|
31126
|
+
set: (v) => {
|
|
31127
|
+
enableOverride = v;
|
|
31128
|
+
}
|
|
31129
|
+
});
|
|
31130
|
+
if (typeof createDebug2.init === "function") {
|
|
31131
|
+
createDebug2.init(debug2);
|
|
31132
|
+
}
|
|
31133
|
+
return debug2;
|
|
31134
|
+
}
|
|
31135
|
+
function extend(namespace, delimiter) {
|
|
31136
|
+
const newDebug = createDebug2(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
31137
|
+
newDebug.log = this.log;
|
|
31138
|
+
return newDebug;
|
|
31139
|
+
}
|
|
31140
|
+
function enable(namespaces) {
|
|
31141
|
+
createDebug2.save(namespaces);
|
|
31142
|
+
createDebug2.namespaces = namespaces;
|
|
31143
|
+
createDebug2.names = [];
|
|
31144
|
+
createDebug2.skips = [];
|
|
31145
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
31146
|
+
for (const ns of split) {
|
|
31147
|
+
if (ns[0] === "-") {
|
|
31148
|
+
createDebug2.skips.push(ns.slice(1));
|
|
31149
|
+
} else {
|
|
31150
|
+
createDebug2.names.push(ns);
|
|
31151
|
+
}
|
|
31152
|
+
}
|
|
31153
|
+
}
|
|
31154
|
+
function matchesTemplate(search, template) {
|
|
31155
|
+
let searchIndex = 0;
|
|
31156
|
+
let templateIndex = 0;
|
|
31157
|
+
let starIndex = -1;
|
|
31158
|
+
let matchIndex = 0;
|
|
31159
|
+
while (searchIndex < search.length) {
|
|
31160
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
31161
|
+
if (template[templateIndex] === "*") {
|
|
31162
|
+
starIndex = templateIndex;
|
|
31163
|
+
matchIndex = searchIndex;
|
|
31164
|
+
templateIndex++;
|
|
31165
|
+
} else {
|
|
31166
|
+
searchIndex++;
|
|
31167
|
+
templateIndex++;
|
|
31168
|
+
}
|
|
31169
|
+
} else if (starIndex !== -1) {
|
|
31170
|
+
templateIndex = starIndex + 1;
|
|
31171
|
+
matchIndex++;
|
|
31172
|
+
searchIndex = matchIndex;
|
|
31173
|
+
} else {
|
|
31174
|
+
return false;
|
|
31175
|
+
}
|
|
31176
|
+
}
|
|
31177
|
+
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
31178
|
+
templateIndex++;
|
|
31179
|
+
}
|
|
31180
|
+
return templateIndex === template.length;
|
|
31181
|
+
}
|
|
31182
|
+
function disable() {
|
|
31183
|
+
const namespaces = [
|
|
31184
|
+
...createDebug2.names,
|
|
31185
|
+
...createDebug2.skips.map((namespace) => "-" + namespace)
|
|
31186
|
+
].join(",");
|
|
31187
|
+
createDebug2.enable("");
|
|
31188
|
+
return namespaces;
|
|
31189
|
+
}
|
|
31190
|
+
function enabled(name) {
|
|
31191
|
+
for (const skip of createDebug2.skips) {
|
|
31192
|
+
if (matchesTemplate(name, skip)) {
|
|
31193
|
+
return false;
|
|
31194
|
+
}
|
|
31195
|
+
}
|
|
31196
|
+
for (const ns of createDebug2.names) {
|
|
31197
|
+
if (matchesTemplate(name, ns)) {
|
|
31198
|
+
return true;
|
|
31199
|
+
}
|
|
31200
|
+
}
|
|
31201
|
+
return false;
|
|
31202
|
+
}
|
|
31203
|
+
function coerce(val) {
|
|
31204
|
+
if (val instanceof Error) {
|
|
31205
|
+
return val.stack || val.message;
|
|
31206
|
+
}
|
|
31207
|
+
return val;
|
|
31208
|
+
}
|
|
31209
|
+
function destroy() {
|
|
31210
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
31211
|
+
}
|
|
31212
|
+
createDebug2.enable(createDebug2.load());
|
|
31213
|
+
return createDebug2;
|
|
31214
|
+
}
|
|
31215
|
+
module2.exports = setup;
|
|
31216
|
+
}
|
|
31217
|
+
});
|
|
31218
|
+
var require_browser3 = __commonJS2({
|
|
31219
|
+
"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js"(exports2, module2) {
|
|
31220
|
+
exports2.formatArgs = formatArgs;
|
|
31221
|
+
exports2.save = save;
|
|
31222
|
+
exports2.load = load;
|
|
31223
|
+
exports2.useColors = useColors;
|
|
31224
|
+
exports2.storage = localstorage();
|
|
31225
|
+
exports2.destroy = /* @__PURE__ */ (() => {
|
|
31226
|
+
let warned = false;
|
|
31227
|
+
return () => {
|
|
31228
|
+
if (!warned) {
|
|
31229
|
+
warned = true;
|
|
31230
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
31231
|
+
}
|
|
31232
|
+
};
|
|
31233
|
+
})();
|
|
31234
|
+
exports2.colors = [
|
|
31235
|
+
"#0000CC",
|
|
31236
|
+
"#0000FF",
|
|
31237
|
+
"#0033CC",
|
|
31238
|
+
"#0033FF",
|
|
31239
|
+
"#0066CC",
|
|
31240
|
+
"#0066FF",
|
|
31241
|
+
"#0099CC",
|
|
31242
|
+
"#0099FF",
|
|
31243
|
+
"#00CC00",
|
|
31244
|
+
"#00CC33",
|
|
31245
|
+
"#00CC66",
|
|
31246
|
+
"#00CC99",
|
|
31247
|
+
"#00CCCC",
|
|
31248
|
+
"#00CCFF",
|
|
31249
|
+
"#3300CC",
|
|
31250
|
+
"#3300FF",
|
|
31251
|
+
"#3333CC",
|
|
31252
|
+
"#3333FF",
|
|
31253
|
+
"#3366CC",
|
|
31254
|
+
"#3366FF",
|
|
31255
|
+
"#3399CC",
|
|
31256
|
+
"#3399FF",
|
|
31257
|
+
"#33CC00",
|
|
31258
|
+
"#33CC33",
|
|
31259
|
+
"#33CC66",
|
|
31260
|
+
"#33CC99",
|
|
31261
|
+
"#33CCCC",
|
|
31262
|
+
"#33CCFF",
|
|
31263
|
+
"#6600CC",
|
|
31264
|
+
"#6600FF",
|
|
31265
|
+
"#6633CC",
|
|
31266
|
+
"#6633FF",
|
|
31267
|
+
"#66CC00",
|
|
31268
|
+
"#66CC33",
|
|
31269
|
+
"#9900CC",
|
|
31270
|
+
"#9900FF",
|
|
31271
|
+
"#9933CC",
|
|
31272
|
+
"#9933FF",
|
|
31273
|
+
"#99CC00",
|
|
31274
|
+
"#99CC33",
|
|
31275
|
+
"#CC0000",
|
|
31276
|
+
"#CC0033",
|
|
31277
|
+
"#CC0066",
|
|
31278
|
+
"#CC0099",
|
|
31279
|
+
"#CC00CC",
|
|
31280
|
+
"#CC00FF",
|
|
31281
|
+
"#CC3300",
|
|
31282
|
+
"#CC3333",
|
|
31283
|
+
"#CC3366",
|
|
31284
|
+
"#CC3399",
|
|
31285
|
+
"#CC33CC",
|
|
31286
|
+
"#CC33FF",
|
|
31287
|
+
"#CC6600",
|
|
31288
|
+
"#CC6633",
|
|
31289
|
+
"#CC9900",
|
|
31290
|
+
"#CC9933",
|
|
31291
|
+
"#CCCC00",
|
|
31292
|
+
"#CCCC33",
|
|
31293
|
+
"#FF0000",
|
|
31294
|
+
"#FF0033",
|
|
31295
|
+
"#FF0066",
|
|
31296
|
+
"#FF0099",
|
|
31297
|
+
"#FF00CC",
|
|
31298
|
+
"#FF00FF",
|
|
31299
|
+
"#FF3300",
|
|
31300
|
+
"#FF3333",
|
|
31301
|
+
"#FF3366",
|
|
31302
|
+
"#FF3399",
|
|
31303
|
+
"#FF33CC",
|
|
31304
|
+
"#FF33FF",
|
|
31305
|
+
"#FF6600",
|
|
31306
|
+
"#FF6633",
|
|
31307
|
+
"#FF9900",
|
|
31308
|
+
"#FF9933",
|
|
31309
|
+
"#FFCC00",
|
|
31310
|
+
"#FFCC33"
|
|
31311
|
+
];
|
|
31312
|
+
function useColors() {
|
|
31313
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
31314
|
+
return true;
|
|
31315
|
+
}
|
|
31316
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
31317
|
+
return false;
|
|
31318
|
+
}
|
|
31319
|
+
let m;
|
|
31320
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
31321
|
+
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
31322
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
31323
|
+
typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
31324
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
31325
|
+
}
|
|
31326
|
+
function formatArgs(args) {
|
|
31327
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
|
|
31328
|
+
if (!this.useColors) {
|
|
31329
|
+
return;
|
|
31330
|
+
}
|
|
31331
|
+
const c = "color: " + this.color;
|
|
31332
|
+
args.splice(1, 0, c, "color: inherit");
|
|
31333
|
+
let index = 0;
|
|
31334
|
+
let lastC = 0;
|
|
31335
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
31336
|
+
if (match === "%%") {
|
|
31337
|
+
return;
|
|
31338
|
+
}
|
|
31339
|
+
index++;
|
|
31340
|
+
if (match === "%c") {
|
|
31341
|
+
lastC = index;
|
|
31342
|
+
}
|
|
31343
|
+
});
|
|
31344
|
+
args.splice(lastC, 0, c);
|
|
31345
|
+
}
|
|
31346
|
+
exports2.log = console.debug || console.log || (() => {
|
|
31347
|
+
});
|
|
31348
|
+
function save(namespaces) {
|
|
31349
|
+
try {
|
|
31350
|
+
if (namespaces) {
|
|
31351
|
+
exports2.storage.setItem("debug", namespaces);
|
|
31352
|
+
} else {
|
|
31353
|
+
exports2.storage.removeItem("debug");
|
|
31354
|
+
}
|
|
31355
|
+
} catch (error) {
|
|
31356
|
+
}
|
|
31357
|
+
}
|
|
31358
|
+
function load() {
|
|
31359
|
+
let r;
|
|
31360
|
+
try {
|
|
31361
|
+
r = exports2.storage.getItem("debug") || exports2.storage.getItem("DEBUG");
|
|
31362
|
+
} catch (error) {
|
|
31363
|
+
}
|
|
31364
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
31365
|
+
r = process.env.DEBUG;
|
|
31366
|
+
}
|
|
31367
|
+
return r;
|
|
31368
|
+
}
|
|
31369
|
+
function localstorage() {
|
|
31370
|
+
try {
|
|
31371
|
+
return localStorage;
|
|
31372
|
+
} catch (error) {
|
|
31373
|
+
}
|
|
31374
|
+
}
|
|
31375
|
+
module2.exports = require_common3()(exports2);
|
|
31376
|
+
var { formatters } = module2.exports;
|
|
31377
|
+
formatters.j = function(v) {
|
|
31378
|
+
try {
|
|
31379
|
+
return JSON.stringify(v);
|
|
31380
|
+
} catch (error) {
|
|
31381
|
+
return "[UnexpectedJSONParseError]: " + error.message;
|
|
31382
|
+
}
|
|
31383
|
+
};
|
|
31384
|
+
}
|
|
31385
|
+
});
|
|
31386
|
+
var require_has_flag2 = __commonJS2({
|
|
31387
|
+
"../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports2, module2) {
|
|
31388
|
+
"use strict";
|
|
31389
|
+
module2.exports = (flag, argv = process.argv) => {
|
|
31390
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
31391
|
+
const position = argv.indexOf(prefix + flag);
|
|
31392
|
+
const terminatorPosition = argv.indexOf("--");
|
|
31393
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
31394
|
+
};
|
|
31395
|
+
}
|
|
31396
|
+
});
|
|
31397
|
+
var require_supports_color2 = __commonJS2({
|
|
31398
|
+
"../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports2, module2) {
|
|
31399
|
+
"use strict";
|
|
31400
|
+
var os2 = __require2("os");
|
|
31401
|
+
var tty = __require2("tty");
|
|
31402
|
+
var hasFlag = require_has_flag2();
|
|
31403
|
+
var { env: env2 } = process;
|
|
31404
|
+
var forceColor;
|
|
31405
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
31406
|
+
forceColor = 0;
|
|
31407
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
31408
|
+
forceColor = 1;
|
|
31409
|
+
}
|
|
31410
|
+
if ("FORCE_COLOR" in env2) {
|
|
31411
|
+
if (env2.FORCE_COLOR === "true") {
|
|
31412
|
+
forceColor = 1;
|
|
31413
|
+
} else if (env2.FORCE_COLOR === "false") {
|
|
31414
|
+
forceColor = 0;
|
|
31415
|
+
} else {
|
|
31416
|
+
forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
|
|
31417
|
+
}
|
|
31418
|
+
}
|
|
31419
|
+
function translateLevel(level) {
|
|
31420
|
+
if (level === 0) {
|
|
31421
|
+
return false;
|
|
31422
|
+
}
|
|
31423
|
+
return {
|
|
31424
|
+
level,
|
|
31425
|
+
hasBasic: true,
|
|
31426
|
+
has256: level >= 2,
|
|
31427
|
+
has16m: level >= 3
|
|
31428
|
+
};
|
|
31429
|
+
}
|
|
31430
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
31431
|
+
if (forceColor === 0) {
|
|
31432
|
+
return 0;
|
|
31433
|
+
}
|
|
31434
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
31435
|
+
return 3;
|
|
31436
|
+
}
|
|
31437
|
+
if (hasFlag("color=256")) {
|
|
31438
|
+
return 2;
|
|
31439
|
+
}
|
|
31440
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
31441
|
+
return 0;
|
|
31442
|
+
}
|
|
31443
|
+
const min = forceColor || 0;
|
|
31444
|
+
if (env2.TERM === "dumb") {
|
|
31445
|
+
return min;
|
|
31446
|
+
}
|
|
31447
|
+
if (process.platform === "win32") {
|
|
31448
|
+
const osRelease = os2.release().split(".");
|
|
31449
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
31450
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
31451
|
+
}
|
|
31452
|
+
return 1;
|
|
31453
|
+
}
|
|
31454
|
+
if ("CI" in env2) {
|
|
31455
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
|
|
31456
|
+
return 1;
|
|
31457
|
+
}
|
|
31458
|
+
return min;
|
|
31459
|
+
}
|
|
31460
|
+
if ("TEAMCITY_VERSION" in env2) {
|
|
31461
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
31462
|
+
}
|
|
31463
|
+
if (env2.COLORTERM === "truecolor") {
|
|
31464
|
+
return 3;
|
|
31465
|
+
}
|
|
31466
|
+
if ("TERM_PROGRAM" in env2) {
|
|
31467
|
+
const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
31468
|
+
switch (env2.TERM_PROGRAM) {
|
|
31469
|
+
case "iTerm.app":
|
|
31470
|
+
return version >= 3 ? 3 : 2;
|
|
31471
|
+
case "Apple_Terminal":
|
|
31472
|
+
return 2;
|
|
31473
|
+
}
|
|
31474
|
+
}
|
|
31475
|
+
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
31476
|
+
return 2;
|
|
31477
|
+
}
|
|
31478
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
31479
|
+
return 1;
|
|
31480
|
+
}
|
|
31481
|
+
if ("COLORTERM" in env2) {
|
|
31482
|
+
return 1;
|
|
31483
|
+
}
|
|
31484
|
+
return min;
|
|
31485
|
+
}
|
|
31486
|
+
function getSupportLevel(stream) {
|
|
31487
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
31488
|
+
return translateLevel(level);
|
|
31489
|
+
}
|
|
31490
|
+
module2.exports = {
|
|
31491
|
+
supportsColor: getSupportLevel,
|
|
31492
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
31493
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
31494
|
+
};
|
|
31495
|
+
}
|
|
31496
|
+
});
|
|
31497
|
+
var require_node3 = __commonJS2({
|
|
31498
|
+
"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js"(exports2, module2) {
|
|
31499
|
+
var tty = __require2("tty");
|
|
31500
|
+
var util = __require2("util");
|
|
31501
|
+
exports2.init = init;
|
|
31502
|
+
exports2.log = log;
|
|
31503
|
+
exports2.formatArgs = formatArgs;
|
|
31504
|
+
exports2.save = save;
|
|
31505
|
+
exports2.load = load;
|
|
31506
|
+
exports2.useColors = useColors;
|
|
31507
|
+
exports2.destroy = util.deprecate(
|
|
31508
|
+
() => {
|
|
31509
|
+
},
|
|
31510
|
+
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
31511
|
+
);
|
|
31512
|
+
exports2.colors = [6, 2, 3, 4, 5, 1];
|
|
31513
|
+
try {
|
|
31514
|
+
const supportsColor = require_supports_color2();
|
|
31515
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
31516
|
+
exports2.colors = [
|
|
31517
|
+
20,
|
|
31518
|
+
21,
|
|
31519
|
+
26,
|
|
31520
|
+
27,
|
|
31521
|
+
32,
|
|
31522
|
+
33,
|
|
31523
|
+
38,
|
|
31524
|
+
39,
|
|
31525
|
+
40,
|
|
31526
|
+
41,
|
|
31527
|
+
42,
|
|
31528
|
+
43,
|
|
31529
|
+
44,
|
|
31530
|
+
45,
|
|
31531
|
+
56,
|
|
31532
|
+
57,
|
|
31533
|
+
62,
|
|
31534
|
+
63,
|
|
31535
|
+
68,
|
|
31536
|
+
69,
|
|
31537
|
+
74,
|
|
31538
|
+
75,
|
|
31539
|
+
76,
|
|
31540
|
+
77,
|
|
31541
|
+
78,
|
|
31542
|
+
79,
|
|
31543
|
+
80,
|
|
31544
|
+
81,
|
|
31545
|
+
92,
|
|
31546
|
+
93,
|
|
31547
|
+
98,
|
|
31548
|
+
99,
|
|
31549
|
+
112,
|
|
31550
|
+
113,
|
|
31551
|
+
128,
|
|
31552
|
+
129,
|
|
31553
|
+
134,
|
|
31554
|
+
135,
|
|
31555
|
+
148,
|
|
31556
|
+
149,
|
|
31557
|
+
160,
|
|
31558
|
+
161,
|
|
31559
|
+
162,
|
|
31560
|
+
163,
|
|
31561
|
+
164,
|
|
31562
|
+
165,
|
|
31563
|
+
166,
|
|
31564
|
+
167,
|
|
31565
|
+
168,
|
|
31566
|
+
169,
|
|
31567
|
+
170,
|
|
31568
|
+
171,
|
|
31569
|
+
172,
|
|
31570
|
+
173,
|
|
31571
|
+
178,
|
|
31572
|
+
179,
|
|
31573
|
+
184,
|
|
31574
|
+
185,
|
|
31575
|
+
196,
|
|
31576
|
+
197,
|
|
31577
|
+
198,
|
|
31578
|
+
199,
|
|
31579
|
+
200,
|
|
31580
|
+
201,
|
|
31581
|
+
202,
|
|
31582
|
+
203,
|
|
31583
|
+
204,
|
|
31584
|
+
205,
|
|
31585
|
+
206,
|
|
31586
|
+
207,
|
|
31587
|
+
208,
|
|
31588
|
+
209,
|
|
31589
|
+
214,
|
|
31590
|
+
215,
|
|
31591
|
+
220,
|
|
31592
|
+
221
|
|
31593
|
+
];
|
|
31594
|
+
}
|
|
31595
|
+
} catch (error) {
|
|
31596
|
+
}
|
|
31597
|
+
exports2.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
31598
|
+
return /^debug_/i.test(key);
|
|
31599
|
+
}).reduce((obj2, key) => {
|
|
31600
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
31601
|
+
return k.toUpperCase();
|
|
31602
|
+
});
|
|
31603
|
+
let val = process.env[key];
|
|
31604
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
31605
|
+
val = true;
|
|
31606
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
31607
|
+
val = false;
|
|
31608
|
+
} else if (val === "null") {
|
|
31609
|
+
val = null;
|
|
31610
|
+
} else {
|
|
31611
|
+
val = Number(val);
|
|
31612
|
+
}
|
|
31613
|
+
obj2[prop] = val;
|
|
31614
|
+
return obj2;
|
|
31615
|
+
}, {});
|
|
31616
|
+
function useColors() {
|
|
31617
|
+
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
31618
|
+
}
|
|
31619
|
+
function formatArgs(args) {
|
|
31620
|
+
const { namespace: name, useColors: useColors2 } = this;
|
|
31621
|
+
if (useColors2) {
|
|
31622
|
+
const c = this.color;
|
|
31623
|
+
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
31624
|
+
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
31625
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
31626
|
+
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
31627
|
+
} else {
|
|
31628
|
+
args[0] = getDate() + name + " " + args[0];
|
|
31629
|
+
}
|
|
31630
|
+
}
|
|
31631
|
+
function getDate() {
|
|
31632
|
+
if (exports2.inspectOpts.hideDate) {
|
|
31633
|
+
return "";
|
|
31634
|
+
}
|
|
31635
|
+
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
31636
|
+
}
|
|
31637
|
+
function log(...args) {
|
|
31638
|
+
return process.stderr.write(util.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
|
|
31639
|
+
}
|
|
31640
|
+
function save(namespaces) {
|
|
31641
|
+
if (namespaces) {
|
|
31642
|
+
process.env.DEBUG = namespaces;
|
|
31643
|
+
} else {
|
|
31644
|
+
delete process.env.DEBUG;
|
|
31645
|
+
}
|
|
31646
|
+
}
|
|
31647
|
+
function load() {
|
|
31648
|
+
return process.env.DEBUG;
|
|
31649
|
+
}
|
|
31650
|
+
function init(debug2) {
|
|
31651
|
+
debug2.inspectOpts = {};
|
|
31652
|
+
const keys = Object.keys(exports2.inspectOpts);
|
|
31653
|
+
for (let i = 0; i < keys.length; i++) {
|
|
31654
|
+
debug2.inspectOpts[keys[i]] = exports2.inspectOpts[keys[i]];
|
|
31655
|
+
}
|
|
31656
|
+
}
|
|
31657
|
+
module2.exports = require_common3()(exports2);
|
|
31658
|
+
var { formatters } = module2.exports;
|
|
31659
|
+
formatters.o = function(v) {
|
|
31660
|
+
this.inspectOpts.colors = this.useColors;
|
|
31661
|
+
return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
31662
|
+
};
|
|
31663
|
+
formatters.O = function(v) {
|
|
31664
|
+
this.inspectOpts.colors = this.useColors;
|
|
31665
|
+
return util.inspect(v, this.inspectOpts);
|
|
31666
|
+
};
|
|
31667
|
+
}
|
|
31668
|
+
});
|
|
31669
|
+
var require_src3 = __commonJS2({
|
|
31670
|
+
"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js"(exports2, module2) {
|
|
31671
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
31672
|
+
module2.exports = require_browser3();
|
|
31673
|
+
} else {
|
|
31674
|
+
module2.exports = require_node3();
|
|
31675
|
+
}
|
|
31676
|
+
}
|
|
31677
|
+
});
|
|
31678
|
+
var import_debug2 = __toESM2(require_src3());
|
|
31679
|
+
var logInfo2 = (0, import_debug2.default)("info");
|
|
31680
|
+
var logTask2 = (0, import_debug2.default)("task");
|
|
31681
|
+
var logError2 = (0, import_debug2.default)("error");
|
|
31682
|
+
var logDetail = (0, import_debug2.default)("detail");
|
|
31683
|
+
function logNamespace(namespace) {
|
|
31684
|
+
logInfo2.namespace = `INFO:${namespace}`;
|
|
31685
|
+
logTask2.namespace = `TASK:${namespace}`;
|
|
31686
|
+
logError2.namespace = `ERROR:${namespace}`;
|
|
31687
|
+
logDetail.namespace = `DETAIL:${namespace}`;
|
|
31688
|
+
logInfo2.color = "45";
|
|
31689
|
+
logTask2.color = "40";
|
|
31690
|
+
logError2.color = "160";
|
|
31691
|
+
logDetail.color = "240";
|
|
31692
|
+
}
|
|
31693
|
+
|
|
30897
31694
|
// src/logic/adbDeviceKit.ts
|
|
30898
31695
|
function ensureAdbPathFromResources() {
|
|
30899
31696
|
const adbPath = getAdbBinaryPath();
|
|
@@ -30965,16 +31762,10 @@ var AdbDeviceKit = class {
|
|
|
30965
31762
|
}
|
|
30966
31763
|
}
|
|
30967
31764
|
async getAllDeviceProperties() {
|
|
30968
|
-
if (!await this.hasUsbDebugging()) {
|
|
30969
|
-
this.waitForUsbDebugging(1e4);
|
|
30970
|
-
}
|
|
30971
31765
|
return this.device.getProperties();
|
|
30972
31766
|
}
|
|
30973
31767
|
async getDeviceProperties(properties) {
|
|
30974
31768
|
logTask(`Getting properties ${properties.join(", ")} for device ${this.deviceId}`);
|
|
30975
|
-
if (!await this.hasUsbDebugging()) {
|
|
30976
|
-
this.waitForUsbDebugging(1e4);
|
|
30977
|
-
}
|
|
30978
31769
|
const propertiesValues = await Promise.all(
|
|
30979
31770
|
properties.map((property) => this.getProperty(this.device, property))
|
|
30980
31771
|
);
|
|
@@ -30982,23 +31773,14 @@ var AdbDeviceKit = class {
|
|
|
30982
31773
|
}
|
|
30983
31774
|
async installApp(appPath) {
|
|
30984
31775
|
logTask(`Installing app ${appPath} on device ${this.deviceId}`);
|
|
30985
|
-
if (!await this.hasUsbDebugging()) {
|
|
30986
|
-
this.waitForUsbDebugging(1e4);
|
|
30987
|
-
}
|
|
30988
31776
|
await this.device.install(appPath);
|
|
30989
31777
|
}
|
|
30990
31778
|
async uninstallApp(packageName) {
|
|
30991
31779
|
logTask(`Uninstalling app ${packageName} on device ${this.deviceId}`);
|
|
30992
|
-
if (!await this.hasUsbDebugging()) {
|
|
30993
|
-
this.waitForUsbDebugging(1e4);
|
|
30994
|
-
}
|
|
30995
31780
|
await this.device.uninstall(packageName);
|
|
30996
31781
|
}
|
|
30997
31782
|
async isAppInstalled(packageName) {
|
|
30998
31783
|
logTask(`Checking if app ${packageName} is installed on device ${this.deviceId}`);
|
|
30999
|
-
if (!await this.hasUsbDebugging()) {
|
|
31000
|
-
this.waitForUsbDebugging(1e4);
|
|
31001
|
-
}
|
|
31002
31784
|
return await this.device.isInstalled(packageName);
|
|
31003
31785
|
}
|
|
31004
31786
|
/**
|
|
@@ -31006,7 +31788,6 @@ var AdbDeviceKit = class {
|
|
|
31006
31788
|
* @returns The adb client
|
|
31007
31789
|
*/
|
|
31008
31790
|
async getClient() {
|
|
31009
|
-
await this.waitForUsbDebugging(1e4);
|
|
31010
31791
|
return this.client;
|
|
31011
31792
|
}
|
|
31012
31793
|
async hasUsbDebugging() {
|
|
@@ -31015,19 +31796,23 @@ var AdbDeviceKit = class {
|
|
|
31015
31796
|
}
|
|
31016
31797
|
async waitForUsbDebugging(timeout2 = 12e4, numberOfAllowedAttempts = 5) {
|
|
31017
31798
|
if (await this.hasUsbDebugging()) {
|
|
31799
|
+
logDetail("USB debugging is already enabled");
|
|
31018
31800
|
return true;
|
|
31019
31801
|
}
|
|
31020
31802
|
let count = numberOfAllowedAttempts;
|
|
31021
31803
|
const tracker = await this.client.trackDevices();
|
|
31022
31804
|
return new Promise((resolve, reject) => {
|
|
31023
31805
|
const timeoutId = setTimeout(() => {
|
|
31806
|
+
logError("Timeout waiting for USB debugging");
|
|
31024
31807
|
reject(new Error("Timeout waiting for USB debugging"));
|
|
31025
31808
|
}, timeout2);
|
|
31026
31809
|
tracker.on("remove", (_) => {
|
|
31027
31810
|
clearTimeout(timeoutId);
|
|
31811
|
+
logError("Device removed from tracker");
|
|
31028
31812
|
});
|
|
31029
31813
|
tracker.on("add", (device) => {
|
|
31030
31814
|
if (device.type === "device") {
|
|
31815
|
+
logDetail("Device added to tracker");
|
|
31031
31816
|
clearTimeout(timeoutId);
|
|
31032
31817
|
resolve(true);
|
|
31033
31818
|
}
|
|
@@ -31036,8 +31821,10 @@ var AdbDeviceKit = class {
|
|
|
31036
31821
|
count--;
|
|
31037
31822
|
if (device.type === "device" && count > 0) {
|
|
31038
31823
|
clearTimeout(timeoutId);
|
|
31824
|
+
logDetail("Device changed in tracker");
|
|
31039
31825
|
resolve(true);
|
|
31040
31826
|
} else if (count === 0) {
|
|
31827
|
+
logDetail("No device found in tracker");
|
|
31041
31828
|
this.client.kill();
|
|
31042
31829
|
resolve(false);
|
|
31043
31830
|
}
|
|
@@ -31061,10 +31848,12 @@ var AdbDeviceKit = class {
|
|
|
31061
31848
|
return this.port;
|
|
31062
31849
|
}
|
|
31063
31850
|
async getDeviceClient() {
|
|
31064
|
-
await this.waitForUsbDebugging(1e4);
|
|
31065
31851
|
return this.device;
|
|
31066
31852
|
}
|
|
31067
31853
|
};
|
|
31854
|
+
|
|
31855
|
+
// src/index.ts
|
|
31856
|
+
logNamespace("adb-kit");
|
|
31068
31857
|
export {
|
|
31069
31858
|
AdbDeviceKit
|
|
31070
31859
|
};
|