nativescript 8.1.5 → 8.2.1
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/config/test-deps-versions-generated.json +1 -1
- package/lib/android-tools-info.js +2 -2
- package/lib/base-package-manager.js +3 -2
- package/lib/commands/appstore-list.js +1 -1
- package/lib/commands/build.js +1 -1
- package/lib/commands/clean.js +7 -3
- package/lib/commands/create-project.js +2 -2
- package/lib/commands/debug.js +3 -3
- package/lib/commands/deploy.js +1 -1
- package/lib/commands/fonts.js +1 -1
- package/lib/commands/generate.js +1 -1
- package/lib/commands/plugin/build-plugin.js +2 -0
- package/lib/commands/plugin/create-plugin.js +4 -4
- package/lib/commands/plugin/list-plugins.js +2 -2
- package/lib/commands/post-install.js +1 -1
- package/lib/commands/run.js +3 -3
- package/lib/commands/test-init.js +1 -1
- package/lib/commands/test.js +2 -1
- package/lib/commands/typings.js +35 -27
- package/lib/common/commands/device/list-devices.js +18 -7
- package/lib/common/commands/preuninstall.js +2 -2
- package/lib/common/commands/proxy/proxy-set.js +6 -6
- package/lib/common/dispatchers.js +1 -1
- package/lib/common/errors.js +2 -2
- package/lib/common/file-system.js +17 -17
- package/lib/common/helpers.js +6 -5
- package/lib/common/host-info.js +1 -1
- package/lib/common/http-client.js +1 -1
- package/lib/common/logger/layouts/cli-layout.js +1 -1
- package/lib/common/logger/logger.js +1 -1
- package/lib/common/mobile/android/android-application-manager.js +6 -6
- package/lib/common/mobile/android/android-debug-bridge.js +4 -4
- package/lib/common/mobile/android/android-device-file-system.js +3 -3
- package/lib/common/mobile/android/android-device-hash-service.js +4 -4
- package/lib/common/mobile/android/android-device.js +1 -1
- package/lib/common/mobile/android/android-emulator-services.js +6 -6
- package/lib/common/mobile/android/android-virtual-device-service.js +7 -7
- package/lib/common/mobile/android/genymotion/genymotion-service.js +3 -3
- package/lib/common/mobile/android/genymotion/virtualbox-service.js +2 -2
- package/lib/common/mobile/device-log-provider-base.js +1 -1
- package/lib/common/mobile/ios/device/ios-application-manager.js +2 -2
- package/lib/common/mobile/ios/device/ios-device-operations.js +2 -2
- package/lib/common/mobile/ios/device/ios-device.js +1 -1
- package/lib/common/mobile/ios/ios-device-base.js +1 -1
- package/lib/common/mobile/ios/simulator/ios-emulator-services.js +1 -1
- package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +3 -3
- package/lib/common/mobile/ios/simulator/ios-simulator-device.js +1 -1
- package/lib/common/mobile/mobile-core/android-process-service.js +1 -1
- package/lib/common/mobile/mobile-core/devices-service.js +22 -20
- package/lib/common/services/auto-completion-service.js +3 -3
- package/lib/common/services/hooks-service.js +2 -2
- package/lib/common/services/json-file-settings-service.js +1 -1
- package/lib/common/services/lock-service.js +2 -2
- package/lib/common/services/messages-service.js +1 -1
- package/lib/common/services/net-service.js +1 -1
- package/lib/common/services/qr.js +2 -2
- package/lib/common/services/settings-service.js +1 -1
- package/lib/common/services/xcode-select-service.js +1 -1
- package/lib/common/yok.js +2 -2
- package/lib/constants.js +8 -6
- package/lib/controllers/build-controller.js +6 -1
- package/lib/controllers/company-insights-controller.js +1 -1
- package/lib/controllers/debug-controller.js +3 -3
- package/lib/controllers/migrate-controller.js +16 -16
- package/lib/controllers/platform-controller.js +32 -6
- package/lib/controllers/prepare-controller.js +6 -6
- package/lib/controllers/preview-app-controller.js +3 -3
- package/lib/controllers/run-controller.js +4 -3
- package/lib/data/build-data.js +2 -0
- package/lib/declarations.d.ts +6 -0
- package/lib/definitions/android-plugin-migrator.d.ts +12 -0
- package/lib/definitions/build.d.ts +4 -1
- package/lib/definitions/gradle.d.ts +1 -0
- package/lib/definitions/platform.d.ts +12 -3
- package/lib/detached-processes/cleanup-js-subprocess.js +1 -1
- package/lib/detached-processes/file-log-service.js +1 -1
- package/lib/device-path-provider.js +1 -1
- package/lib/nativescript-cli.js +2 -2
- package/lib/node-package-manager.js +15 -10
- package/lib/options.js +4 -1
- package/lib/package-manager.js +17 -17
- package/lib/pnpm-package-manager.js +12 -8
- package/lib/project-data.js +3 -3
- package/lib/services/analytics/analytics-broker.js +1 -1
- package/lib/services/analytics/analytics-service.js +5 -5
- package/lib/services/analytics/google-analytics-provider.js +2 -2
- package/lib/services/analytics-settings-service.js +4 -4
- package/lib/services/android/android-bundle-tool-service.js +2 -2
- package/lib/services/android/gradle-build-args-service.js +3 -0
- package/lib/services/android/gradle-build-service.js +3 -1
- package/lib/services/android/gradle-command-service.js +2 -3
- package/lib/services/android-device-debug-service.js +3 -3
- package/lib/services/android-plugin-build-service.js +33 -13
- package/lib/services/android-project-service.js +35 -10
- package/lib/services/apple-portal/apple-portal-session-service.js +1 -1
- package/lib/services/assets-generation/assets-generation-service.js +2 -2
- package/lib/services/cleanup-service.js +2 -2
- package/lib/services/cocoapods-service.js +2 -1
- package/lib/services/doctor-service.js +3 -3
- package/lib/services/extensibility-service.js +4 -4
- package/lib/services/files-hash-service.js +1 -1
- package/lib/services/hmr-status-service.js +1 -1
- package/lib/services/ios-debugger-port-service.js +2 -2
- package/lib/services/ios-device-debug-service.js +4 -4
- package/lib/services/ios-project-service.js +6 -6
- package/lib/services/ios-provision-service.js +3 -3
- package/lib/services/ip-service.js +1 -1
- package/lib/services/itmstransporter-service.js +3 -3
- package/lib/services/karma-execution.js +1 -1
- package/lib/services/livesync/android-device-livesync-service.js +2 -2
- package/lib/services/livesync/android-livesync-service.js +2 -2
- package/lib/services/livesync/device-livesync-service-base.js +2 -2
- package/lib/services/livesync/ios-device-livesync-service.js +1 -1
- package/lib/services/livesync/ios-livesync-service.js +1 -1
- package/lib/services/livesync/platform-livesync-service-base.js +2 -2
- package/lib/services/livesync/playground/preview-app-files-service.js +1 -1
- package/lib/services/livesync/playground/preview-qr-code-service.js +1 -1
- package/lib/services/log-parser-service.js +1 -1
- package/lib/services/log-source-map-service.js +1 -1
- package/lib/services/pacote-service.js +1 -1
- package/lib/services/performance-service.js +1 -1
- package/lib/services/platform/add-platform-service.js +1 -1
- package/lib/services/platform/prepare-native-platform-service.js +2 -2
- package/lib/services/platform-environment-requirements.js +1 -1
- package/lib/services/plugins-service.js +2 -2
- package/lib/services/project-changes-service.js +2 -2
- package/lib/services/project-cleanup-service.js +3 -1
- package/lib/services/project-config-service.js +6 -6
- package/lib/services/project-data-service.js +9 -9
- package/lib/services/project-name-service.js +1 -1
- package/lib/services/project-service.js +7 -7
- package/lib/services/project-templates-service.js +1 -1
- package/lib/services/test-execution-service.js +1 -1
- package/lib/services/test-initialization-service.js +2 -2
- package/lib/services/webpack/webpack-compiler-service.js +6 -5
- package/lib/services/webpack/webpack.d.ts +1 -1
- package/lib/sys-info.js +5 -5
- package/lib/tools/node-modules/node-modules-builder.js +2 -2
- package/lib/tools/node-modules/node-modules-dependencies-builder.js +13 -6
- package/lib/yarn-package-manager.js +13 -8
- package/package.json +6 -6
- package/vendor/aab-tool/README.txt +1 -1
- package/vendor/aab-tool/bundletool.jar +0 -0
- package/vendor/gradle-plugin/build.gradle +127 -34
- package/vendor/gradle-plugin/gradle.properties +2 -0
|
@@ -76,7 +76,7 @@ let FileSystem = FileSystem_1 = class FileSystem {
|
|
|
76
76
|
this.createDirectory(destinationDir);
|
|
77
77
|
let proc;
|
|
78
78
|
if ($hostInfo.isWindows) {
|
|
79
|
-
proc = path_1.join(__dirname, "resources/platform-tools/unzip/win32/unzip");
|
|
79
|
+
proc = (0, path_1.join)(__dirname, "resources/platform-tools/unzip/win32/unzip");
|
|
80
80
|
}
|
|
81
81
|
else if ($hostInfo.isDarwin) {
|
|
82
82
|
proc = "unzip";
|
|
@@ -104,15 +104,15 @@ let FileSystem = FileSystem_1 = class FileSystem {
|
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
findFileCaseInsensitive(file) {
|
|
107
|
-
const dir = path_1.dirname(file);
|
|
108
|
-
const baseName = path_1.basename(file);
|
|
107
|
+
const dir = (0, path_1.dirname)(file);
|
|
108
|
+
const baseName = (0, path_1.basename)(file);
|
|
109
109
|
const entries = this.readDirectory(dir);
|
|
110
110
|
const match = minimatch.match(entries, baseName, {
|
|
111
111
|
nocase: true,
|
|
112
112
|
nonegate: true,
|
|
113
113
|
nonull: true,
|
|
114
114
|
})[0];
|
|
115
|
-
const result = path_1.join(dir, match);
|
|
115
|
+
const result = (0, path_1.join)(dir, match);
|
|
116
116
|
return result;
|
|
117
117
|
}
|
|
118
118
|
exists(path) {
|
|
@@ -159,7 +159,7 @@ let FileSystem = FileSystem_1 = class FileSystem {
|
|
|
159
159
|
}
|
|
160
160
|
switch (args.length) {
|
|
161
161
|
case 0:
|
|
162
|
-
resolve();
|
|
162
|
+
resolve(undefined);
|
|
163
163
|
break;
|
|
164
164
|
case 1:
|
|
165
165
|
resolve(args[0]);
|
|
@@ -204,12 +204,12 @@ let FileSystem = FileSystem_1 = class FileSystem {
|
|
|
204
204
|
readJson(filename, encoding) {
|
|
205
205
|
const data = this.readText(filename, encoding);
|
|
206
206
|
if (data) {
|
|
207
|
-
return helpers_1.parseJson(data);
|
|
207
|
+
return (0, helpers_1.parseJson)(data);
|
|
208
208
|
}
|
|
209
209
|
return null;
|
|
210
210
|
}
|
|
211
211
|
writeFile(filename, data, encoding) {
|
|
212
|
-
this.createDirectory(path_1.dirname(filename));
|
|
212
|
+
this.createDirectory((0, path_1.dirname)(filename));
|
|
213
213
|
if (!data) {
|
|
214
214
|
data = "";
|
|
215
215
|
}
|
|
@@ -223,7 +223,7 @@ let FileSystem = FileSystem_1 = class FileSystem {
|
|
|
223
223
|
space = this.getIndentationCharacter(filename);
|
|
224
224
|
}
|
|
225
225
|
let stringifiedData;
|
|
226
|
-
if (path_1.basename(filename) === constants_1.PACKAGE_JSON_FILE_NAME) {
|
|
226
|
+
if ((0, path_1.basename)(filename) === constants_1.PACKAGE_JSON_FILE_NAME) {
|
|
227
227
|
let newline = os_1.EOL;
|
|
228
228
|
if (fs.existsSync(filename)) {
|
|
229
229
|
const existingFile = this.readText(filename);
|
|
@@ -237,10 +237,10 @@ let FileSystem = FileSystem_1 = class FileSystem {
|
|
|
237
237
|
return this.writeFile(filename, stringifiedData, encoding);
|
|
238
238
|
}
|
|
239
239
|
copyFile(sourceFileName, destinationFileName) {
|
|
240
|
-
if (path_1.resolve(sourceFileName) === path_1.resolve(destinationFileName)) {
|
|
240
|
+
if ((0, path_1.resolve)(sourceFileName) === (0, path_1.resolve)(destinationFileName)) {
|
|
241
241
|
return;
|
|
242
242
|
}
|
|
243
|
-
this.createDirectory(path_1.dirname(destinationFileName));
|
|
243
|
+
this.createDirectory((0, path_1.dirname)(destinationFileName));
|
|
244
244
|
shelljs.cp("-rf", sourceFileName, destinationFileName);
|
|
245
245
|
const err = shelljs.error();
|
|
246
246
|
if (err) {
|
|
@@ -266,8 +266,8 @@ let FileSystem = FileSystem_1 = class FileSystem {
|
|
|
266
266
|
if (!this.exists(baseName)) {
|
|
267
267
|
return baseName;
|
|
268
268
|
}
|
|
269
|
-
const extension = path_1.extname(baseName);
|
|
270
|
-
const prefix = path_1.basename(baseName, extension);
|
|
269
|
+
const extension = (0, path_1.extname)(baseName);
|
|
270
|
+
const prefix = (0, path_1.basename)(baseName, extension);
|
|
271
271
|
for (let i = 2;; ++i) {
|
|
272
272
|
const numberedName = prefix + i + extension;
|
|
273
273
|
if (!this.exists(numberedName)) {
|
|
@@ -280,8 +280,8 @@ let FileSystem = FileSystem_1 = class FileSystem {
|
|
|
280
280
|
return directoryContent.length === 0;
|
|
281
281
|
}
|
|
282
282
|
isRelativePath(p) {
|
|
283
|
-
const normal = path_1.normalize(p);
|
|
284
|
-
const absolute = path_1.resolve(p);
|
|
283
|
+
const normal = (0, path_1.normalize)(p);
|
|
284
|
+
const absolute = (0, path_1.resolve)(p);
|
|
285
285
|
return normal !== absolute;
|
|
286
286
|
}
|
|
287
287
|
ensureDirectoryExists(directoryPath) {
|
|
@@ -328,7 +328,7 @@ let FileSystem = FileSystem_1 = class FileSystem {
|
|
|
328
328
|
}
|
|
329
329
|
const contents = this.readDirectory(directoryPath);
|
|
330
330
|
for (let i = 0; i < contents.length; ++i) {
|
|
331
|
-
const file = path_1.join(directoryPath, contents[i]);
|
|
331
|
+
const file = (0, path_1.join)(directoryPath, contents[i]);
|
|
332
332
|
let stat = null;
|
|
333
333
|
if (this.exists(file)) {
|
|
334
334
|
stat = this.getFsStats(file);
|
|
@@ -388,10 +388,10 @@ let FileSystem = FileSystem_1 = class FileSystem {
|
|
|
388
388
|
shelljs.rm(options, files);
|
|
389
389
|
}
|
|
390
390
|
deleteEmptyParents(directory) {
|
|
391
|
-
let parent = this.exists(directory) ? directory : path_1.dirname(directory);
|
|
391
|
+
let parent = this.exists(directory) ? directory : (0, path_1.dirname)(directory);
|
|
392
392
|
while (this.isEmptyDir(parent)) {
|
|
393
393
|
this.deleteDirectory(parent);
|
|
394
|
-
parent = path_1.dirname(parent);
|
|
394
|
+
parent = (0, path_1.dirname)(parent);
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
realpath(filePath) {
|
package/lib/common/helpers.js
CHANGED
|
@@ -9,7 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.getFormattedMilliseconds = exports.getFormattedDateComponent = exports.getFixedLengthDateString = exports.stringify = exports.getWinRegPropertyValue = exports.getValueFromNestedObject = exports.getPidFromiOSSimulatorLogs = exports.getProjectFilesConfig = exports.connectEventuallyUntilTimeout = exports.getHash = exports.connectEventually = exports.attachAwaitDetach = exports.isPromise = exports.hook = exports.decorateMethod = exports.appendZeroesToVersion = exports.getFuturesResults = exports.parseJson = exports.trimSymbol = exports.remove = exports.getMessageWithBorders = exports.createTable = exports.sleep = exports.getCurrentEpochTime = exports.isNullOrWhitespace = exports.fromWindowsRelativePathToUnix = exports.isNumberWithoutExponent = exports.block = exports.toBoolean = exports.isInteractive = exports.setIsInteractive = exports.getRelativeToRootPath = exports.formatListOfNames = exports.isResponseRedirect = exports.isRequestSuccessful = exports.stringReplaceAll = exports.createGUID = exports.quoteString = exports.getPropertyName = exports.settlePromises = exports.deferPromise = exports.executeActionByChunks = exports.getShortPluginName = exports.regExpEscape = exports.createRegExp = exports.isInstallingNativeScriptGlobally = exports.getCurrentNpmCommandArgv = exports.someWithRegExps = exports.doesCurrentNpmCommandMatch = exports.stripComments = void 0;
|
|
13
|
+
exports.hasValidAndroidSigning = exports.annotate = void 0;
|
|
13
14
|
const uuid_1 = require("uuid");
|
|
14
15
|
const os_1 = require("os");
|
|
15
16
|
const constants_1 = require("./constants");
|
|
@@ -145,7 +146,7 @@ function settlePromises(promises) {
|
|
|
145
146
|
const errors = [];
|
|
146
147
|
const length = promises.length;
|
|
147
148
|
if (!promises.length) {
|
|
148
|
-
resolve();
|
|
149
|
+
resolve(null);
|
|
149
150
|
}
|
|
150
151
|
_.forEach(promises, (currentPromise, index) => {
|
|
151
152
|
currentPromise
|
|
@@ -198,17 +199,17 @@ function quoteString(s) {
|
|
|
198
199
|
if (!s) {
|
|
199
200
|
return s;
|
|
200
201
|
}
|
|
201
|
-
return os_1.platform() === "win32" ? cmdQuote(s) : bashQuote(s);
|
|
202
|
+
return (0, os_1.platform)() === "win32" ? cmdQuote(s) : bashQuote(s);
|
|
202
203
|
}
|
|
203
204
|
exports.quoteString = quoteString;
|
|
204
205
|
function createGUID(useBraces) {
|
|
205
206
|
let output;
|
|
206
207
|
useBraces = useBraces === undefined ? true : useBraces;
|
|
207
208
|
if (useBraces) {
|
|
208
|
-
output = "{" + uuid_1.v4() + "}";
|
|
209
|
+
output = "{" + (0, uuid_1.v4)() + "}";
|
|
209
210
|
}
|
|
210
211
|
else {
|
|
211
|
-
output = uuid_1.v4();
|
|
212
|
+
output = (0, uuid_1.v4)();
|
|
212
213
|
}
|
|
213
214
|
return output;
|
|
214
215
|
}
|
package/lib/common/host-info.js
CHANGED
|
@@ -127,7 +127,7 @@ HostInfo.DARWIN_OS_NAME = "darwin";
|
|
|
127
127
|
HostInfo.LINUX_OS_NAME = "linux";
|
|
128
128
|
HostInfo.DOT_NET_REGISTRY_PATH = "\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Client";
|
|
129
129
|
__decorate([
|
|
130
|
-
decorators_1.cache()
|
|
130
|
+
(0, decorators_1.cache)()
|
|
131
131
|
], HostInfo.prototype, "getMacOSVersion", null);
|
|
132
132
|
exports.HostInfo = HostInfo;
|
|
133
133
|
yok_1.injector.register("hostInfo", HostInfo);
|
|
@@ -9,7 +9,7 @@ function layout(config) {
|
|
|
9
9
|
return function (logEvent) {
|
|
10
10
|
let msg = util_1.format.apply(null, logEvent.data);
|
|
11
11
|
if (logEvent.context[constants_1.LoggerConfigData.wrapMessageWithBorders]) {
|
|
12
|
-
msg = helpers_1.getMessageWithBorders(msg);
|
|
12
|
+
msg = (0, helpers_1.getMessageWithBorders)(msg);
|
|
13
13
|
}
|
|
14
14
|
if (!logEvent.context[constants_1.LoggerConfigData.skipNewLine]) {
|
|
15
15
|
msg += os_1.EOL;
|
|
@@ -59,9 +59,9 @@ class AndroidApplicationManager extends application_manager_base_1.ApplicationMa
|
|
|
59
59
|
const deviceRootPath = `${constants_1.LiveSyncPaths.ANDROID_TMP_DIR_NAME}/${appIdentifier}`;
|
|
60
60
|
yield this.adb.executeShellCommand(["rm", "-rf", deviceRootPath]);
|
|
61
61
|
}
|
|
62
|
-
const { dir, name, ext } = path_1.parse(packageFilePath);
|
|
62
|
+
const { dir, name, ext } = (0, path_1.parse)(packageFilePath);
|
|
63
63
|
if (ext === constants_2.AAB_EXTENSION_NAME) {
|
|
64
|
-
const apksOutputPath = path_1.join(dir, name) + constants_2.APKS_EXTENSION_NAME;
|
|
64
|
+
const apksOutputPath = (0, path_1.join)(dir, name) + constants_2.APKS_EXTENSION_NAME;
|
|
65
65
|
if (!this.hasValidApksFile(packageFilePath, apksOutputPath)) {
|
|
66
66
|
yield this.$androidBundleToolService.buildApks({
|
|
67
67
|
aabFilePath: packageFilePath,
|
|
@@ -152,7 +152,7 @@ class AndroidApplicationManager extends application_manager_base_1.ApplicationMa
|
|
|
152
152
|
processIdentifier = yield this.$androidProcessService.getAppProcessId(deviceIdentifier, appIdentifier);
|
|
153
153
|
if (!processIdentifier) {
|
|
154
154
|
this.$logger.trace(`Wasn't able to get pid of the app. Sleeping for "${this.PID_CHECK_INTERVAL}ms".`);
|
|
155
|
-
yield helpers_1.sleep(this.PID_CHECK_INTERVAL);
|
|
155
|
+
yield (0, helpers_1.sleep)(this.PID_CHECK_INTERVAL);
|
|
156
156
|
hasTimedOut =
|
|
157
157
|
new Date().getTime() - appIdCheckStartTime > this.PID_CHECK_TIMEOUT;
|
|
158
158
|
}
|
|
@@ -196,7 +196,7 @@ class AndroidApplicationManager extends application_manager_base_1.ApplicationMa
|
|
|
196
196
|
getFullyQualifiedActivityRegex(appIdentifier) {
|
|
197
197
|
const packageActivitySeparator = "\\/";
|
|
198
198
|
const fullJavaClassName = "([a-zA-Z_0-9]*\\.)*[A-Z_$]($[A-Z_$]|[$_\\w_])*";
|
|
199
|
-
return new RegExp(`${helpers_1.regExpEscape(appIdentifier)}${packageActivitySeparator}${fullJavaClassName}`, `m`);
|
|
199
|
+
return new RegExp(`${(0, helpers_1.regExpEscape)(appIdentifier)}${packageActivitySeparator}${fullJavaClassName}`, `m`);
|
|
200
200
|
}
|
|
201
201
|
hasValidApksFile(aabFilaPath, apksFilePath) {
|
|
202
202
|
let isValid = false;
|
|
@@ -209,9 +209,9 @@ class AndroidApplicationManager extends application_manager_base_1.ApplicationMa
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
__decorate([
|
|
212
|
-
helpers_1.hook("install")
|
|
212
|
+
(0, helpers_1.hook)("install")
|
|
213
213
|
], AndroidApplicationManager.prototype, "installApplication", null);
|
|
214
214
|
__decorate([
|
|
215
|
-
decorators_1.cache()
|
|
215
|
+
(0, decorators_1.cache)()
|
|
216
216
|
], AndroidApplicationManager.prototype, "getFullyQualifiedActivityRegex", null);
|
|
217
217
|
exports.AndroidApplicationManager = AndroidApplicationManager;
|
|
@@ -142,7 +142,7 @@ class AndroidDebugBridge {
|
|
|
142
142
|
}
|
|
143
143
|
pushFile(localFilePath, deviceFilePath) {
|
|
144
144
|
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
-
const fileDirectory = helpers_1.fromWindowsRelativePathToUnix(path.dirname(deviceFilePath));
|
|
145
|
+
const fileDirectory = (0, helpers_1.fromWindowsRelativePathToUnix)(path.dirname(deviceFilePath));
|
|
146
146
|
yield this.executeShellCommand(["mkdir", "-p", fileDirectory]);
|
|
147
147
|
yield this.executeCommand(["push", localFilePath, deviceFilePath]);
|
|
148
148
|
yield this.executeShellCommand(["chmod", "0777", fileDirectory]);
|
|
@@ -155,13 +155,13 @@ class AndroidDebugBridge {
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
__decorate([
|
|
158
|
-
decorators_1.cache()
|
|
158
|
+
(0, decorators_1.cache)()
|
|
159
159
|
], AndroidDebugBridge.prototype, "init", null);
|
|
160
160
|
__decorate([
|
|
161
|
-
decorators_1.invokeInit()
|
|
161
|
+
(0, decorators_1.invokeInit)()
|
|
162
162
|
], AndroidDebugBridge.prototype, "getPropertyValue", null);
|
|
163
163
|
__decorate([
|
|
164
|
-
decorators_1.invokeInit()
|
|
164
|
+
(0, decorators_1.invokeInit)()
|
|
165
165
|
], AndroidDebugBridge.prototype, "getDevices", null);
|
|
166
166
|
exports.AndroidDebugBridge = AndroidDebugBridge;
|
|
167
167
|
yok_1.injector.register("adb", AndroidDebugBridge);
|
|
@@ -86,9 +86,9 @@ class AndroidDeviceFileSystem {
|
|
|
86
86
|
directoriesToChmod.push(dirToChmod);
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
|
-
yield helpers_1.executeActionByChunks(localToDevicePaths, constants_1.DEFAULT_CHUNK_SIZE, action);
|
|
89
|
+
yield (0, helpers_1.executeActionByChunks)(localToDevicePaths, constants_1.DEFAULT_CHUNK_SIZE, action);
|
|
90
90
|
const dirsChmodAction = (directoryToChmod) => this.adb.executeShellCommand(["chmod", "0777", directoryToChmod]);
|
|
91
|
-
yield helpers_1.executeActionByChunks(_.uniq(directoriesToChmod), constants_1.DEFAULT_CHUNK_SIZE, dirsChmodAction);
|
|
91
|
+
yield (0, helpers_1.executeActionByChunks)(_.uniq(directoriesToChmod), constants_1.DEFAULT_CHUNK_SIZE, dirsChmodAction);
|
|
92
92
|
return transferredFiles;
|
|
93
93
|
});
|
|
94
94
|
}
|
|
@@ -127,7 +127,7 @@ class AndroidDeviceFileSystem {
|
|
|
127
127
|
transferredFiles.push(localToDevicePathData);
|
|
128
128
|
yield this.transferFile(localToDevicePathData.getLocalPath(), localToDevicePathData.getDevicePath());
|
|
129
129
|
});
|
|
130
|
-
yield helpers_1.executeActionByChunks(localToDevicePaths, constants_1.DEFAULT_CHUNK_SIZE, transferFileAction);
|
|
130
|
+
yield (0, helpers_1.executeActionByChunks)(localToDevicePaths, constants_1.DEFAULT_CHUNK_SIZE, transferFileAction);
|
|
131
131
|
return transferredFiles;
|
|
132
132
|
});
|
|
133
133
|
}
|
|
@@ -72,7 +72,7 @@ class AndroidDeviceHashService {
|
|
|
72
72
|
initialShasums[localPath] = yield this.$fs.getFileShasum(localPath);
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
|
-
yield helpers_1.executeActionByChunks(localToDevicePaths, constants_1.DEFAULT_CHUNK_SIZE, action);
|
|
75
|
+
yield (0, helpers_1.executeActionByChunks)(localToDevicePaths, constants_1.DEFAULT_CHUNK_SIZE, action);
|
|
76
76
|
return initialShasums;
|
|
77
77
|
});
|
|
78
78
|
}
|
|
@@ -122,12 +122,12 @@ class AndroidDeviceHashService {
|
|
|
122
122
|
}
|
|
123
123
|
AndroidDeviceHashService.HASH_FILE_NAME = "hashes";
|
|
124
124
|
__decorate([
|
|
125
|
-
decorators_1.cache()
|
|
125
|
+
(0, decorators_1.cache)()
|
|
126
126
|
], AndroidDeviceHashService.prototype, "hashFileDevicePath", null);
|
|
127
127
|
__decorate([
|
|
128
|
-
decorators_1.cache()
|
|
128
|
+
(0, decorators_1.cache)()
|
|
129
129
|
], AndroidDeviceHashService.prototype, "getHashFileLocalPath", null);
|
|
130
130
|
__decorate([
|
|
131
|
-
decorators_1.cache()
|
|
131
|
+
(0, decorators_1.cache)()
|
|
132
132
|
], AndroidDeviceHashService.prototype, "getTempDir", null);
|
|
133
133
|
exports.AndroidDeviceHashService = AndroidDeviceHashService;
|
|
@@ -83,7 +83,7 @@ class AndroidEmulatorServices {
|
|
|
83
83
|
startEmulatorCore(options) {
|
|
84
84
|
return __awaiter(this, void 0, void 0, function* () {
|
|
85
85
|
const timeout = options.timeout || constants_1.AndroidVirtualDevice.TIMEOUT_SECONDS;
|
|
86
|
-
const endTimeEpoch = helpers_1.getCurrentEpochTime() + this.$utils.getMilliSecondsTimeout(timeout);
|
|
86
|
+
const endTimeEpoch = (0, helpers_1.getCurrentEpochTime)() + this.$utils.getMilliSecondsTimeout(timeout);
|
|
87
87
|
const availableEmulators = (yield this.getEmulatorImages()).devices;
|
|
88
88
|
let emulator = this.$emulatorHelper.getEmulatorByStartEmulatorOptions(options, availableEmulators);
|
|
89
89
|
if (!emulator &&
|
|
@@ -110,7 +110,7 @@ class AndroidEmulatorServices {
|
|
|
110
110
|
}
|
|
111
111
|
this.spawnEmulator(emulator);
|
|
112
112
|
const isInfiniteWait = this.$utils.getMilliSecondsTimeout(timeout) === 0;
|
|
113
|
-
let hasTimeLeft = helpers_1.getCurrentEpochTime() < endTimeEpoch;
|
|
113
|
+
let hasTimeLeft = (0, helpers_1.getCurrentEpochTime)() < endTimeEpoch;
|
|
114
114
|
while (hasTimeLeft || isInfiniteWait) {
|
|
115
115
|
const emulators = (yield this.getEmulatorImages()).devices;
|
|
116
116
|
const newEmulator = _.find(emulators, (e) => e.imageIdentifier === emulator.imageIdentifier);
|
|
@@ -121,8 +121,8 @@ class AndroidEmulatorServices {
|
|
|
121
121
|
endTimeEpoch,
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
yield helpers_1.sleep(10000);
|
|
125
|
-
hasTimeLeft = helpers_1.getCurrentEpochTime() < endTimeEpoch;
|
|
124
|
+
yield (0, helpers_1.sleep)(10000);
|
|
125
|
+
hasTimeLeft = (0, helpers_1.getCurrentEpochTime)() < endTimeEpoch;
|
|
126
126
|
}
|
|
127
127
|
if (!hasTimeLeft && !isInfiniteWait) {
|
|
128
128
|
return {
|
|
@@ -175,7 +175,7 @@ class AndroidEmulatorServices {
|
|
|
175
175
|
[constants_2.LoggerConfigData.skipNewLine]: true,
|
|
176
176
|
});
|
|
177
177
|
const isInfiniteWait = this.$utils.getMilliSecondsTimeout(timeout || constants_1.AndroidVirtualDevice.TIMEOUT_SECONDS) === 0;
|
|
178
|
-
while (helpers_1.getCurrentEpochTime() < endTimeEpoch || isInfiniteWait) {
|
|
178
|
+
while ((0, helpers_1.getCurrentEpochTime)() < endTimeEpoch || isInfiniteWait) {
|
|
179
179
|
const isEmulatorBootCompleted = yield this.isEmulatorBootCompleted(emulator.identifier);
|
|
180
180
|
if (isEmulatorBootCompleted) {
|
|
181
181
|
this.$logger.info(os_1.EOL, { [constants_2.LoggerConfigData.skipNewLine]: true });
|
|
@@ -185,7 +185,7 @@ class AndroidEmulatorServices {
|
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
187
|
this.$logger.info(".", { [constants_2.LoggerConfigData.skipNewLine]: true });
|
|
188
|
-
yield helpers_1.sleep(10000);
|
|
188
|
+
yield (0, helpers_1.sleep)(10000);
|
|
189
189
|
}
|
|
190
190
|
return {
|
|
191
191
|
runningEmulator: null,
|
|
@@ -44,7 +44,7 @@ class AndroidVirtualDeviceService {
|
|
|
44
44
|
const availableEmulatorsOutput = yield this.getEmulatorImagesCore();
|
|
45
45
|
const avds = availableEmulatorsOutput.devices;
|
|
46
46
|
const runningEmulatorIds = yield this.getRunningEmulatorIds(adbDevicesOutput);
|
|
47
|
-
const runningEmulators = yield helpers_1.settlePromises(_.map(runningEmulatorIds, (emulatorId) => this.getRunningEmulatorData(emulatorId, avds)));
|
|
47
|
+
const runningEmulators = yield (0, helpers_1.settlePromises)(_.map(runningEmulatorIds, (emulatorId) => this.getRunningEmulatorData(emulatorId, avds)));
|
|
48
48
|
const devices = availableEmulatorsOutput.devices.map((emulator) => this.$emulatorHelper.getEmulatorByImageIdentifier(emulator.imageIdentifier, runningEmulators) || emulator);
|
|
49
49
|
return {
|
|
50
50
|
devices,
|
|
@@ -339,22 +339,22 @@ class AndroidVirtualDeviceService {
|
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
__decorate([
|
|
342
|
-
decorators_1.cache()
|
|
342
|
+
(0, decorators_1.cache)()
|
|
343
343
|
], AndroidVirtualDeviceService.prototype, "pathToEmulatorExecutable", null);
|
|
344
344
|
__decorate([
|
|
345
|
-
decorators_1.cache()
|
|
345
|
+
(0, decorators_1.cache)()
|
|
346
346
|
], AndroidVirtualDeviceService.prototype, "canExecuteAvdManagerCommand", null);
|
|
347
347
|
__decorate([
|
|
348
|
-
decorators_1.cache()
|
|
348
|
+
(0, decorators_1.cache)()
|
|
349
349
|
], AndroidVirtualDeviceService.prototype, "pathToAvdManagerExecutable", null);
|
|
350
350
|
__decorate([
|
|
351
|
-
decorators_1.cache()
|
|
351
|
+
(0, decorators_1.cache)()
|
|
352
352
|
], AndroidVirtualDeviceService.prototype, "pathToAndroidExecutable", null);
|
|
353
353
|
__decorate([
|
|
354
|
-
decorators_1.cache()
|
|
354
|
+
(0, decorators_1.cache)()
|
|
355
355
|
], AndroidVirtualDeviceService.prototype, "pathToAvdHomeDir", null);
|
|
356
356
|
__decorate([
|
|
357
|
-
decorators_1.cache()
|
|
357
|
+
(0, decorators_1.cache)()
|
|
358
358
|
], AndroidVirtualDeviceService.prototype, "getConfigurationError", null);
|
|
359
359
|
exports.AndroidVirtualDeviceService = AndroidVirtualDeviceService;
|
|
360
360
|
yok_1.injector.register("androidVirtualDeviceService", AndroidVirtualDeviceService);
|
|
@@ -39,7 +39,7 @@ class AndroidGenymotionService {
|
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
const availableEmulatorsOutput = yield this.getEmulatorImagesCore();
|
|
41
41
|
const runningEmulatorIds = yield this.getRunningEmulatorIds(adbDevicesOutput);
|
|
42
|
-
const runningEmulators = yield helpers_1.settlePromises(_.map(runningEmulatorIds, (emulatorId) => this.getRunningEmulatorData(emulatorId, availableEmulatorsOutput.devices)));
|
|
42
|
+
const runningEmulators = yield (0, helpers_1.settlePromises)(_.map(runningEmulatorIds, (emulatorId) => this.getRunningEmulatorData(emulatorId, availableEmulatorsOutput.devices)));
|
|
43
43
|
const devices = availableEmulatorsOutput.devices.map((emulator) => this.$emulatorHelper.getEmulatorByImageIdentifier(emulator.imageIdentifier, runningEmulators) || emulator);
|
|
44
44
|
return {
|
|
45
45
|
devices,
|
|
@@ -202,10 +202,10 @@ In case you have installed Genymotion in a different location, please add the pa
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
__decorate([
|
|
205
|
-
decorators_1.cache()
|
|
205
|
+
(0, decorators_1.cache)()
|
|
206
206
|
], AndroidGenymotionService.prototype, "getConfigurationPlatformSpecficErrorMessage", null);
|
|
207
207
|
__decorate([
|
|
208
|
-
decorators_1.cache()
|
|
208
|
+
(0, decorators_1.cache)()
|
|
209
209
|
], AndroidGenymotionService.prototype, "getConfigurationError", null);
|
|
210
210
|
exports.AndroidGenymotionService = AndroidGenymotionService;
|
|
211
211
|
yok_1.injector.register("androidGenymotionService", AndroidGenymotionService);
|
|
@@ -84,7 +84,7 @@ class VirtualBoxService {
|
|
|
84
84
|
if (this.$hostInfo.isWindows) {
|
|
85
85
|
let searchPath = null;
|
|
86
86
|
try {
|
|
87
|
-
const result = yield helpers_1.getWinRegPropertyValue("\\Software\\Oracle\\VirtualBox", "InstallDir");
|
|
87
|
+
const result = yield (0, helpers_1.getWinRegPropertyValue)("\\Software\\Oracle\\VirtualBox", "InstallDir");
|
|
88
88
|
searchPath = result && result.value ? result.value : null;
|
|
89
89
|
}
|
|
90
90
|
catch (err) {
|
|
@@ -115,7 +115,7 @@ class VirtualBoxService {
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
__decorate([
|
|
118
|
-
decorators_1.cache()
|
|
118
|
+
(0, decorators_1.cache)()
|
|
119
119
|
], VirtualBoxService.prototype, "getvBoxManagePath", null);
|
|
120
120
|
exports.VirtualBoxService = VirtualBoxService;
|
|
121
121
|
yok_1.injector.register("virtualBoxService", VirtualBoxService);
|
|
@@ -57,7 +57,7 @@ class DeviceLogProviderBase extends events_1.EventEmitter {
|
|
|
57
57
|
return this.devicesLogOptions[deviceIdentifier];
|
|
58
58
|
}
|
|
59
59
|
setDeviceLogOptionsProperty(deviceIdentifier, propNameFunction, propertyValue) {
|
|
60
|
-
const propertyName = helpers_1.getPropertyName(propNameFunction);
|
|
60
|
+
const propertyName = (0, helpers_1.getPropertyName)(propNameFunction);
|
|
61
61
|
if (propertyName) {
|
|
62
62
|
this.devicesLogOptions[deviceIdentifier] =
|
|
63
63
|
this.devicesLogOptions[deviceIdentifier] ||
|
|
@@ -151,9 +151,9 @@ class IOSApplicationManager extends application_manager_base_1.ApplicationManage
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
__decorate([
|
|
154
|
-
helpers_1.hook("install")
|
|
154
|
+
(0, helpers_1.hook)("install")
|
|
155
155
|
], IOSApplicationManager.prototype, "installApplication", null);
|
|
156
156
|
__decorate([
|
|
157
|
-
decorators_1.cache()
|
|
157
|
+
(0, decorators_1.cache)()
|
|
158
158
|
], IOSApplicationManager.prototype, "startDeviceLog", null);
|
|
159
159
|
exports.IOSApplicationManager = IOSApplicationManager;
|
|
@@ -225,10 +225,10 @@ class IOSDeviceOperations extends events_1.EventEmitter {
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
__decorate([
|
|
228
|
-
decorators_1.cache()
|
|
228
|
+
(0, decorators_1.cache)()
|
|
229
229
|
], IOSDeviceOperations.prototype, "startLookingForDevices", null);
|
|
230
230
|
__decorate([
|
|
231
|
-
decorators_1.cache()
|
|
231
|
+
(0, decorators_1.cache)()
|
|
232
232
|
], IOSDeviceOperations.prototype, "attacheDeviceLogDataHandler", null);
|
|
233
233
|
exports.IOSDeviceOperations = IOSDeviceOperations;
|
|
234
234
|
yok_1.injector.register("iosDeviceOperations", IOSDeviceOperations);
|
|
@@ -137,7 +137,7 @@ class IOSDevice extends ios_device_base_1.IOSDeviceBase {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
__decorate([
|
|
140
|
-
decorators_1.cache()
|
|
140
|
+
(0, decorators_1.cache)()
|
|
141
141
|
], IOSDevice.prototype, "openDeviceLogStream", null);
|
|
142
142
|
exports.IOSDevice = IOSDevice;
|
|
143
143
|
yok_1.injector.register("iOSDevice", IOSDevice);
|
|
@@ -73,7 +73,7 @@ class IOSSimulatorApplicationManager extends application_manager_base_1.Applicat
|
|
|
73
73
|
: {};
|
|
74
74
|
yield this.setDeviceLogData(appData);
|
|
75
75
|
const launchResult = yield this.iosSim.startApplication(this.device.deviceInfo.identifier, appData.appId, options);
|
|
76
|
-
const pid = helpers_1.getPidFromiOSSimulatorLogs(appData.appId, launchResult);
|
|
76
|
+
const pid = (0, helpers_1.getPidFromiOSSimulatorLogs)(appData.appId, launchResult);
|
|
77
77
|
this.$deviceLogProvider.setApplicationPidForDevice(this.device.deviceInfo.identifier, pid);
|
|
78
78
|
if (appData.waitForDebugger) {
|
|
79
79
|
this.attachNativeDebugger(appData.appId, pid);
|
|
@@ -139,9 +139,9 @@ class IOSSimulatorApplicationManager extends application_manager_base_1.Applicat
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
__decorate([
|
|
142
|
-
helpers_1.hook("install")
|
|
142
|
+
(0, helpers_1.hook)("install")
|
|
143
143
|
], IOSSimulatorApplicationManager.prototype, "installApplication", null);
|
|
144
144
|
__decorate([
|
|
145
|
-
decorators_1.cache()
|
|
145
|
+
(0, decorators_1.cache)()
|
|
146
146
|
], IOSSimulatorApplicationManager.prototype, "startDeviceLog", null);
|
|
147
147
|
exports.IOSSimulatorApplicationManager = IOSSimulatorApplicationManager;
|
|
@@ -253,7 +253,7 @@ class AndroidProcessService {
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
__decorate([
|
|
256
|
-
decorators_1.exported("androidProcessService")
|
|
256
|
+
(0, decorators_1.exported)("androidProcessService")
|
|
257
257
|
], AndroidProcessService.prototype, "getAppProcessId", null);
|
|
258
258
|
exports.AndroidProcessService = AndroidProcessService;
|
|
259
259
|
yok_1.injector.register("androidProcessService", AndroidProcessService);
|