nativescript 8.8.0 → 8.8.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 +12 -0
- package/lib/base-package-manager.js +11 -1
- package/lib/bootstrap.js +5 -1
- package/lib/bun-package-manager.js +17 -1
- package/lib/color.js +3 -0
- package/lib/commands/add-platform.js +1 -0
- package/lib/commands/apple-login.js +1 -0
- package/lib/commands/appstore-list.js +1 -0
- package/lib/commands/appstore-upload.js +4 -0
- package/lib/commands/build.js +3 -2
- package/lib/commands/clean.js +22 -1
- package/lib/commands/command-base.js +1 -0
- package/lib/commands/config.js +3 -0
- package/lib/commands/create-project.js +6 -0
- package/lib/commands/debug.js +6 -1
- package/lib/commands/deploy.js +3 -2
- package/lib/commands/embedding/embed.js +7 -0
- package/lib/commands/extensibility/install-extension.js +1 -0
- package/lib/commands/extensibility/list-extensions.js +1 -0
- package/lib/commands/extensibility/uninstall-extension.js +1 -0
- package/lib/commands/fonts.js +1 -0
- package/lib/commands/generate-assets.js +1 -0
- package/lib/commands/generate-help.js +1 -0
- package/lib/commands/generate.js +12 -2
- package/lib/commands/info.js +1 -0
- package/lib/commands/install.js +1 -0
- package/lib/commands/list-platforms.js +1 -0
- package/lib/commands/migrate.js +1 -0
- package/lib/commands/native-add.js +5 -0
- package/lib/commands/platform-clean.js +1 -0
- package/lib/commands/plugin/add-plugin.js +1 -0
- package/lib/commands/plugin/build-plugin.js +1 -0
- package/lib/commands/plugin/create-plugin.js +5 -0
- package/lib/commands/plugin/list-plugins.js +1 -0
- package/lib/commands/plugin/remove-plugin.js +2 -0
- package/lib/commands/plugin/update-plugin.js +1 -0
- package/lib/commands/post-install.js +6 -0
- package/lib/commands/prepare.js +4 -3
- package/lib/commands/preview.js +2 -0
- package/lib/commands/remove-platform.js +1 -0
- package/lib/commands/resources/resources-update.js +2 -0
- package/lib/commands/run.js +1 -0
- package/lib/commands/setup.js +1 -0
- package/lib/commands/start.js +1 -0
- package/lib/commands/test-init.js +4 -0
- package/lib/commands/test.js +9 -2
- package/lib/commands/typings.js +2 -1
- package/lib/commands/update-platform.js +5 -0
- package/lib/commands/update.js +2 -0
- package/lib/common/bootstrap.js +1 -0
- package/lib/common/child-process.js +3 -0
- package/lib/common/codeGeneration/code-entity.js +1 -0
- package/lib/common/codeGeneration/code-printer.js +1 -0
- package/lib/common/command-params.js +1 -0
- package/lib/common/commands/analytics.js +3 -0
- package/lib/common/commands/autocompletion.js +3 -0
- package/lib/common/commands/device/device-log-stream.js +1 -0
- package/lib/common/commands/device/get-file.js +2 -0
- package/lib/common/commands/device/list-applications.js +1 -0
- package/lib/common/commands/device/list-devices.js +3 -0
- package/lib/common/commands/device/list-files.js +2 -0
- package/lib/common/commands/device/put-file.js +2 -0
- package/lib/common/commands/device/run-application.js +1 -0
- package/lib/common/commands/device/stop-application.js +1 -0
- package/lib/common/commands/device/uninstall-application.js +1 -0
- package/lib/common/commands/doctor.js +3 -2
- package/lib/common/commands/generate-messages.js +1 -0
- package/lib/common/commands/help.js +1 -0
- package/lib/common/commands/package-manager-get.js +1 -0
- package/lib/common/commands/package-manager-set.js +1 -0
- package/lib/common/commands/post-install.js +1 -0
- package/lib/common/commands/preuninstall.js +11 -2
- package/lib/common/commands/proxy/proxy-base.js +4 -0
- package/lib/common/commands/proxy/proxy-clear.js +1 -0
- package/lib/common/commands/proxy/proxy-get.js +1 -0
- package/lib/common/commands/proxy/proxy-set.js +1 -0
- package/lib/common/common-lib.js +1 -0
- package/lib/common/constants.js +11 -0
- package/lib/common/decorators.js +48 -0
- package/lib/common/dispatchers.js +10 -1
- package/lib/common/errors.js +13 -3
- package/lib/common/file-system.js +13 -2
- package/lib/common/header.js +3 -0
- package/lib/common/helpers.js +89 -3
- package/lib/common/host-info.js +4 -0
- package/lib/common/http-client.js +20 -0
- package/lib/common/logger/appenders/cli-appender.js +4 -0
- package/lib/common/logger/appenders/emit-appender.js +4 -0
- package/lib/common/logger/layouts/cli-layout.js +1 -0
- package/lib/common/logger/logger.js +5 -0
- package/lib/common/messages/messages.js +6 -0
- package/lib/common/mobile/android/android-application-manager.js +20 -1
- package/lib/common/mobile/android/android-debug-bridge-result-handler.js +1 -0
- package/lib/common/mobile/android/android-debug-bridge.js +6 -0
- package/lib/common/mobile/android/android-device-file-system.js +4 -0
- package/lib/common/mobile/android/android-device-hash-service.js +3 -0
- package/lib/common/mobile/android/android-device.js +8 -0
- package/lib/common/mobile/android/android-emulator-services.js +2 -1
- package/lib/common/mobile/android/android-ini-file-parser.js +9 -0
- package/lib/common/mobile/android/android-log-filter.js +4 -0
- package/lib/common/mobile/android/android-virtual-device-service.js +30 -1
- package/lib/common/mobile/android/device-android-debug-bridge.js +1 -0
- package/lib/common/mobile/android/genymotion/genymotion-service.js +5 -0
- package/lib/common/mobile/android/genymotion/virtualbox-service.js +11 -0
- package/lib/common/mobile/android/logcat-helper.js +13 -0
- package/lib/common/mobile/application-manager-base.js +6 -0
- package/lib/common/mobile/device-emitter.js +4 -0
- package/lib/common/mobile/device-log-emitter.js +1 -0
- package/lib/common/mobile/device-log-provider-base.js +1 -0
- package/lib/common/mobile/device-log-provider.js +23 -0
- package/lib/common/mobile/device-platforms-constants.js +1 -0
- package/lib/common/mobile/emulator-helper.js +4 -0
- package/lib/common/mobile/ios/device/ios-application-manager.js +3 -0
- package/lib/common/mobile/ios/device/ios-device-file-system.js +1 -0
- package/lib/common/mobile/ios/device/ios-device-operations.js +4 -0
- package/lib/common/mobile/ios/device/ios-device.js +4 -0
- package/lib/common/mobile/ios/ios-device-base.js +1 -0
- package/lib/common/mobile/ios/ios-device-product-name-mapper.js +2 -0
- package/lib/common/mobile/ios/ios-log-filter.js +1 -0
- package/lib/common/mobile/ios/simulator/ios-emulator-services.js +4 -0
- package/lib/common/mobile/ios/simulator/ios-sim-resolver.js +1 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +6 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-device.js +5 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-file-system.js +1 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.js +1 -0
- package/lib/common/mobile/local-to-device-path-data-factory.js +1 -0
- package/lib/common/mobile/log-filter.js +2 -0
- package/lib/common/mobile/logging-levels.js +1 -0
- package/lib/common/mobile/mobile-core/android-device-discovery.js +2 -0
- package/lib/common/mobile/mobile-core/android-emulator-discovery.js +3 -0
- package/lib/common/mobile/mobile-core/android-process-service.js +32 -0
- package/lib/common/mobile/mobile-core/device-discovery.js +1 -0
- package/lib/common/mobile/mobile-core/devices-service.js +69 -0
- package/lib/common/mobile/mobile-core/ios-device-discovery.js +2 -0
- package/lib/common/mobile/mobile-core/ios-simulator-discovery.js +3 -0
- package/lib/common/mobile/mobile-helper.js +1 -0
- package/lib/common/mobile/wp8/wp8-emulator-services.js +1 -0
- package/lib/common/opener.js +1 -0
- package/lib/common/os-info.js +1 -0
- package/lib/common/plist-parser.js +1 -0
- package/lib/common/project-helper.js +1 -0
- package/lib/common/prompter.js +9 -1
- package/lib/common/queue.js +1 -0
- package/lib/common/resource-loader.js +1 -0
- package/lib/common/services/auto-completion-service.js +13 -1
- package/lib/common/services/cancellation.js +2 -1
- package/lib/common/services/commands-service.js +17 -6
- package/lib/common/services/help-service.js +11 -3
- package/lib/common/services/hooks-service.js +13 -0
- package/lib/common/services/ios-notification-service.js +1 -0
- package/lib/common/services/json-file-settings-service.js +6 -0
- package/lib/common/services/lock-service.js +6 -0
- package/lib/common/services/message-contract-generator.js +1 -0
- package/lib/common/services/messages-service.js +1 -0
- package/lib/common/services/micro-templating-service.js +6 -0
- package/lib/common/services/net-service.js +3 -0
- package/lib/common/services/project-files-manager.js +5 -0
- package/lib/common/services/project-files-provider-base.js +1 -0
- package/lib/common/services/proxy-service.js +1 -0
- package/lib/common/services/qr.js +1 -0
- package/lib/common/services/settings-service.js +1 -0
- package/lib/common/services/xcode-select-service.js +1 -0
- package/lib/common/utils.js +1 -0
- package/lib/common/validators/project-name-validator.js +1 -0
- package/lib/common/validators/validation-result.js +1 -0
- package/lib/common/verify-node-version.js +8 -1
- package/lib/common/yok.js +32 -11
- package/lib/config.js +22 -1
- package/lib/constants-provider.js +1 -0
- package/lib/constants.js +53 -0
- package/lib/controllers/build-controller.js +4 -3
- package/lib/controllers/debug-controller.js +8 -3
- package/lib/controllers/deploy-controller.js +1 -0
- package/lib/controllers/migrate-controller.js +91 -3
- package/lib/controllers/platform-controller.js +9 -1
- package/lib/controllers/prepare-controller.js +17 -4
- package/lib/controllers/run-controller.js +17 -1
- package/lib/controllers/update-controller-base.js +1 -0
- package/lib/controllers/update-controller.js +11 -0
- package/lib/data/build-data.js +1 -0
- package/lib/data/controller-data-base.js +1 -0
- package/lib/data/debug-data.js +1 -0
- package/lib/data/platform-data.js +1 -0
- package/lib/data/prepare-data.js +1 -0
- package/lib/data/run-data.js +1 -0
- package/lib/detached-processes/cleanup-js-subprocess.js +8 -2
- package/lib/detached-processes/cleanup-process.js +18 -14
- package/lib/detached-processes/file-log-service.js +2 -1
- package/lib/device-path-provider.js +1 -0
- package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +7 -0
- package/lib/device-sockets/ios/notification.js +3 -0
- package/lib/device-sockets/ios/socket-request-executor.js +3 -0
- package/lib/helpers/android-bundle-validator-helper.js +2 -1
- package/lib/helpers/deploy-command-helper.js +1 -0
- package/lib/helpers/key-command-helper.js +4 -2
- package/lib/helpers/livesync-command-helper.js +4 -1
- package/lib/helpers/network-connectivity-validator.js +1 -0
- package/lib/helpers/options-track-helper.js +3 -2
- package/lib/helpers/package-path-helper.js +1 -0
- package/lib/helpers/platform-command-helper.js +7 -2
- package/lib/helpers/version-validator-helper.js +1 -0
- package/lib/key-commands/bootstrap.js +3 -2
- package/lib/key-commands/index.js +5 -4
- package/lib/nativescript-cli-lib-bootstrap.js +4 -0
- package/lib/nativescript-cli-lib.js +1 -0
- package/lib/nativescript-cli.js +10 -1
- package/lib/node/pbxproj-dom-xcode.js +1 -0
- package/lib/node/xcode.js +1 -0
- package/lib/node-package-manager.js +11 -1
- package/lib/options.js +143 -118
- package/lib/package-installation-manager.js +8 -1
- package/lib/package-manager.js +2 -0
- package/lib/platform-command-param.js +1 -0
- package/lib/pnpm-package-manager.js +4 -1
- package/lib/project-data.js +12 -0
- package/lib/providers/project-files-provider.js +1 -0
- package/lib/resolvers/livesync-service-resolver.js +1 -0
- package/lib/services/analytics/analytics-broker-process.js +10 -6
- package/lib/services/analytics/analytics-broker.js +2 -1
- package/lib/services/analytics/analytics-service.js +29 -25
- package/lib/services/analytics/google-analytics-provider.js +13 -12
- package/lib/services/analytics-settings-service.js +5 -0
- package/lib/services/android/android-bundle-tool-service.js +1 -0
- package/lib/services/android/gradle-build-args-service.js +3 -0
- package/lib/services/android/gradle-build-service.js +1 -0
- package/lib/services/android/gradle-command-service.js +6 -1
- package/lib/services/android-device-debug-service.js +6 -0
- package/lib/services/android-plugin-build-service.js +33 -1
- package/lib/services/android-project-service.js +71 -4
- package/lib/services/android-resources-migration-service.js +7 -0
- package/lib/services/apple-portal/apple-portal-application-service.js +1 -0
- package/lib/services/apple-portal/apple-portal-cookie-service.js +1 -0
- package/lib/services/apple-portal/apple-portal-session-service.js +6 -4
- package/lib/services/assets-generation/assets-generation-service.js +16 -5
- package/lib/services/build-artifacts-service.js +2 -1
- package/lib/services/build-data-service.js +1 -0
- package/lib/services/build-info-file-service.js +1 -0
- package/lib/services/cleanup-service.js +13 -9
- package/lib/services/cocoapods-platform-manager.js +9 -0
- package/lib/services/cocoapods-service.js +21 -1
- package/lib/services/debug-data-service.js +1 -0
- package/lib/services/debug-service-base.js +7 -0
- package/lib/services/device/device-install-app-service.js +2 -1
- package/lib/services/doctor-service.js +21 -6
- package/lib/services/extensibility-service.js +8 -0
- package/lib/services/files-hash-service.js +1 -0
- package/lib/services/hmr-status-service.js +2 -0
- package/lib/services/info-service.js +1 -0
- package/lib/services/initialize-service.js +5 -1
- package/lib/services/ios/export-options-plist-service.js +4 -0
- package/lib/services/ios/ios-signing-service.js +4 -0
- package/lib/services/ios/spm-service.js +9 -0
- package/lib/services/ios/xcodebuild-args-service.js +9 -0
- package/lib/services/ios/xcodebuild-command-service.js +1 -0
- package/lib/services/ios/xcodebuild-service.js +1 -0
- package/lib/services/ios-debugger-port-service.js +1 -0
- package/lib/services/ios-device-debug-service.js +1 -0
- package/lib/services/ios-entitlements-service.js +1 -0
- package/lib/services/ios-extensions-service.js +1 -0
- package/lib/services/ios-log-filter.js +20 -0
- package/lib/services/ios-native-target-service.js +6 -4
- package/lib/services/ios-project-service.js +94 -2
- package/lib/services/ios-provision-service.js +3 -0
- package/lib/services/ios-watch-app-service.js +1 -0
- package/lib/services/ip-service.js +2 -0
- package/lib/services/itmstransporter-service.js +1 -0
- package/lib/services/karma-execution.js +2 -0
- package/lib/services/livesync/android-device-livesync-service-base.js +1 -0
- package/lib/services/livesync/android-device-livesync-service.js +2 -0
- package/lib/services/livesync/android-device-livesync-sockets-service.js +3 -0
- package/lib/services/livesync/android-livesync-service.js +1 -0
- package/lib/services/livesync/android-livesync-tool.js +4 -0
- package/lib/services/livesync/device-livesync-service-base.js +2 -0
- package/lib/services/livesync/ios-device-livesync-service.js +7 -0
- package/lib/services/livesync/ios-livesync-service.js +2 -0
- package/lib/services/livesync/livesync-socket.js +1 -0
- package/lib/services/livesync/platform-livesync-service-base.js +5 -0
- package/lib/services/livesync-process-data-service.js +1 -0
- package/lib/services/log-parser-service.js +1 -0
- package/lib/services/log-source-map-service.js +15 -0
- package/lib/services/marking-mode-service.js +8 -5
- package/lib/services/metadata-filtering-service.js +1 -0
- package/lib/services/npm-config-service.js +4 -0
- package/lib/services/pacote-service.js +7 -0
- package/lib/services/performance-service.js +3 -1
- package/lib/services/platform/add-platform-service.js +49 -2
- package/lib/services/platform/platform-validation-service.js +1 -0
- package/lib/services/platform/prepare-native-platform-service.js +5 -2
- package/lib/services/platform-environment-requirements.js +8 -3
- package/lib/services/platform-project-service-base.js +1 -0
- package/lib/services/platforms-data-service.js +1 -0
- package/lib/services/plugins-service.js +20 -2
- package/lib/services/prepare-data-service.js +1 -0
- package/lib/services/project-backup-service.js +4 -0
- package/lib/services/project-changes-service.js +14 -3
- package/lib/services/project-cleanup-service.js +2 -0
- package/lib/services/project-config-service.js +22 -2
- package/lib/services/project-data-service.js +36 -7
- package/lib/services/project-name-service.js +1 -0
- package/lib/services/project-service.js +10 -0
- package/lib/services/project-templates-service.js +3 -2
- package/lib/services/qr-code-terminal-service.js +1 -0
- package/lib/services/require-service.js +1 -0
- package/lib/services/start-service.js +1 -0
- package/lib/services/temp-service.js +1 -0
- package/lib/services/terminal-spinner-service.js +2 -0
- package/lib/services/test-execution-service.js +9 -2
- package/lib/services/test-initialization-service.js +4 -0
- package/lib/services/timeline-profiler-service.js +1 -0
- package/lib/services/user-settings-service.js +1 -0
- package/lib/services/versions-service.js +6 -4
- package/lib/services/watch-ignore-list-service.js +1 -0
- package/lib/services/webpack/webpack-compiler-service.js +42 -1
- package/lib/services/xcconfig-service.js +2 -0
- package/lib/services/xcproj-service.js +1 -0
- package/lib/shared-event-bus.js +6 -0
- package/lib/sys-info.js +2 -1
- package/lib/tools/config-manipulation/config-transformer.js +12 -0
- package/lib/tools/node-modules/node-modules-builder.js +1 -0
- package/lib/tools/node-modules/node-modules-dependencies-builder.js +6 -0
- package/lib/yarn-package-manager.js +1 -0
- package/lib/yarn2-package-manager.js +3 -0
- package/node_modules/@npmcli/move-file/node_modules/mkdirp/CHANGELOG.md +15 -0
- package/node_modules/rimraf/CHANGELOG.md +65 -0
- package/node_modules/stringify-package/CHANGELOG.md +16 -0
- package/package.json +2 -2
|
@@ -38,12 +38,14 @@ class CreatePluginCommand {
|
|
|
38
38
|
const selectedTemplate = this.$options.template;
|
|
39
39
|
const selectedPath = path.resolve(pathToProject || ".");
|
|
40
40
|
const projectDir = path.join(selectedPath, pluginRepoName);
|
|
41
|
+
// Must be out of try catch block, because will throw error if folder alredy exists and we don't want to delete it.
|
|
41
42
|
this.ensurePackageDir(projectDir);
|
|
42
43
|
try {
|
|
43
44
|
yield this.downloadPackage(selectedTemplate, projectDir);
|
|
44
45
|
yield this.setupSeed(projectDir, pluginRepoName);
|
|
45
46
|
}
|
|
46
47
|
catch (err) {
|
|
48
|
+
// The call to this.ensurePackageDir() above will throw error if folder alredy exists, so it is safe to delete here.
|
|
47
49
|
this.$fs.deleteDirectory(projectDir);
|
|
48
50
|
throw err;
|
|
49
51
|
}
|
|
@@ -83,6 +85,7 @@ class CreatePluginCommand {
|
|
|
83
85
|
!config.includeTypeScriptDemo)) {
|
|
84
86
|
this.$logger.printMarkdown("Using default values for plugin creation options since your shell is not interactive.");
|
|
85
87
|
}
|
|
88
|
+
// run postclone script manually and kill it if it takes more than 10 sec
|
|
86
89
|
const pathToPostCloneScript = path.join("scripts", "postclone");
|
|
87
90
|
const params = [
|
|
88
91
|
pathToPostCloneScript,
|
|
@@ -143,6 +146,7 @@ class CreatePluginCommand {
|
|
|
143
146
|
getPluginNameSource(pluginNameSource, pluginRepoName) {
|
|
144
147
|
return __awaiter(this, void 0, void 0, function* () {
|
|
145
148
|
if (!pluginNameSource) {
|
|
149
|
+
// remove nativescript- prefix for naming plugin files
|
|
146
150
|
const prefix = "nativescript-";
|
|
147
151
|
pluginNameSource = pluginRepoName.toLowerCase().startsWith(prefix)
|
|
148
152
|
? pluginRepoName.slice(prefix.length, pluginRepoName.length)
|
|
@@ -173,3 +177,4 @@ class CreatePluginCommand {
|
|
|
173
177
|
}
|
|
174
178
|
exports.CreatePluginCommand = CreatePluginCommand;
|
|
175
179
|
yok_1.injector.registerCommand(["plugin|create"], CreatePluginCommand);
|
|
180
|
+
//# sourceMappingURL=create-plugin.js.map
|
|
@@ -33,6 +33,7 @@ class RemovePluginCommand {
|
|
|
33
33
|
}
|
|
34
34
|
let pluginNames = [];
|
|
35
35
|
try {
|
|
36
|
+
// try installing the plugins, so we can get information from node_modules about their native code, libs, etc.
|
|
36
37
|
const installedPlugins = yield this.$pluginsService.getAllInstalledPlugins(this.$projectData);
|
|
37
38
|
pluginNames = installedPlugins.map((pl) => pl.name);
|
|
38
39
|
}
|
|
@@ -50,3 +51,4 @@ class RemovePluginCommand {
|
|
|
50
51
|
}
|
|
51
52
|
exports.RemovePluginCommand = RemovePluginCommand;
|
|
52
53
|
yok_1.injector.registerCommand("plugin|remove", RemovePluginCommand);
|
|
54
|
+
//# sourceMappingURL=remove-plugin.js.map
|
|
@@ -29,13 +29,18 @@ class PostInstallCliCommand {
|
|
|
29
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30
30
|
const isRunningWithSudoUser = !!process.env.SUDO_USER;
|
|
31
31
|
if (!this.$hostInfo.isWindows) {
|
|
32
|
+
// when running under 'sudo' we create a working dir with wrong owner (root) and
|
|
33
|
+
// it is no longer accessible for the user initiating the installation
|
|
34
|
+
// patch the owner here
|
|
32
35
|
if (isRunningWithSudoUser) {
|
|
36
|
+
// TODO: Check if this is the correct place, probably we should set this at the end of the command.
|
|
33
37
|
yield this.$fs.setCurrentUserAsOwner(this.$settingsService.getProfileDir(), process.env.SUDO_USER);
|
|
34
38
|
}
|
|
35
39
|
}
|
|
36
40
|
const canExecutePostInstallTask = !isRunningWithSudoUser || (0, helpers_1.doesCurrentNpmCommandMatch)([/^--unsafe-perm$/]);
|
|
37
41
|
if (canExecutePostInstallTask) {
|
|
38
42
|
yield this.$helpService.generateHtmlPages();
|
|
43
|
+
// Explicitly ask for confirmation of usage-reporting:
|
|
39
44
|
yield this.$analyticsService.checkConsent();
|
|
40
45
|
yield this.$commandsService.tryExecuteCommand("autocomplete", []);
|
|
41
46
|
}
|
|
@@ -55,3 +60,4 @@ class PostInstallCliCommand {
|
|
|
55
60
|
}
|
|
56
61
|
exports.PostInstallCliCommand = PostInstallCliCommand;
|
|
57
62
|
yok_1.injector.registerCommand("post-install-cli", PostInstallCliCommand);
|
|
63
|
+
//# sourceMappingURL=post-install.js.map
|
package/lib/commands/prepare.js
CHANGED
|
@@ -26,13 +26,13 @@ class PrepareCommand extends command_base_1.ValidatePlatformCommandBase {
|
|
|
26
26
|
this.allowedParameters = [this.$platformCommandParameter];
|
|
27
27
|
this.dashedOptions = {
|
|
28
28
|
watch: {
|
|
29
|
-
type: "boolean"
|
|
29
|
+
type: "boolean" /* OptionType.Boolean */,
|
|
30
30
|
default: false,
|
|
31
31
|
hasSensitiveValue: false,
|
|
32
32
|
},
|
|
33
|
-
hmr: { type: "boolean"
|
|
33
|
+
hmr: { type: "boolean" /* OptionType.Boolean */, default: false, hasSensitiveValue: false },
|
|
34
34
|
whatever: {
|
|
35
|
-
type: "boolean"
|
|
35
|
+
type: "boolean" /* OptionType.Boolean */,
|
|
36
36
|
default: false,
|
|
37
37
|
hasSensitiveValue: false,
|
|
38
38
|
},
|
|
@@ -70,3 +70,4 @@ class PrepareCommand extends command_base_1.ValidatePlatformCommandBase {
|
|
|
70
70
|
}
|
|
71
71
|
exports.PrepareCommand = PrepareCommand;
|
|
72
72
|
yok_1.injector.registerCommand("prepare", PrepareCommand);
|
|
73
|
+
//# sourceMappingURL=prepare.js.map
|
package/lib/commands/preview.js
CHANGED
|
@@ -34,6 +34,7 @@ class PreviewCommand {
|
|
|
34
34
|
execute(args) {
|
|
35
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
36
36
|
if (!this.$options.disableNpmInstall) {
|
|
37
|
+
// ensure latest is installed
|
|
37
38
|
yield this.$packageManager.install(`${PREVIEW_CLI_PACKAGE}@latest`, this.$projectData.projectDir, {
|
|
38
39
|
"save-dev": true,
|
|
39
40
|
"save-exact": true,
|
|
@@ -91,3 +92,4 @@ class PreviewCommand {
|
|
|
91
92
|
}
|
|
92
93
|
exports.PreviewCommand = PreviewCommand;
|
|
93
94
|
yok_1.injector.registerCommand("preview", PreviewCommand);
|
|
95
|
+
//# sourceMappingURL=preview.js.map
|
|
@@ -27,6 +27,7 @@ class ResourcesUpdateCommand {
|
|
|
27
27
|
canExecute(args) {
|
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29
29
|
if (!args || args.length === 0) {
|
|
30
|
+
// Command defaults to migrating the Android App_Resources, unless explicitly specified
|
|
30
31
|
args = ["android"];
|
|
31
32
|
}
|
|
32
33
|
for (const platform of args) {
|
|
@@ -43,3 +44,4 @@ class ResourcesUpdateCommand {
|
|
|
43
44
|
}
|
|
44
45
|
exports.ResourcesUpdateCommand = ResourcesUpdateCommand;
|
|
45
46
|
yok_1.injector.registerCommand("resources|update", ResourcesUpdateCommand);
|
|
47
|
+
//# sourceMappingURL=resources-update.js.map
|
package/lib/commands/run.js
CHANGED
|
@@ -175,3 +175,4 @@ class RunVisionOSCommand extends RunIosCommand {
|
|
|
175
175
|
exports.RunVisionOSCommand = RunVisionOSCommand;
|
|
176
176
|
yok_1.injector.registerCommand("run|vision", RunVisionOSCommand);
|
|
177
177
|
yok_1.injector.registerCommand("run|visionos", RunVisionOSCommand);
|
|
178
|
+
//# sourceMappingURL=run.js.map
|
package/lib/commands/setup.js
CHANGED
package/lib/commands/start.js
CHANGED
|
@@ -76,6 +76,8 @@ class TestInitCommand {
|
|
|
76
76
|
continue;
|
|
77
77
|
}
|
|
78
78
|
const dependencyVersion = modulePeerDependencies[peerDependency] || "*";
|
|
79
|
+
// catch errors when a peerDependency is already installed
|
|
80
|
+
// e.g karma is installed; karma-jasmine depends on karma and will try to install it again
|
|
79
81
|
try {
|
|
80
82
|
yield this.$packageManager.install(`${peerDependency}@${dependencyVersion}`, projectDir, {
|
|
81
83
|
"save-dev": true,
|
|
@@ -127,6 +129,7 @@ class TestInitCommand {
|
|
|
127
129
|
const targetExampleTestRelativePath = path.relative(projectDir, targetExampleTestPath);
|
|
128
130
|
bufferedLogs.push(`Added example test: ${color_1.color.yellow(targetExampleTestRelativePath)}`);
|
|
129
131
|
}
|
|
132
|
+
// test main entry
|
|
130
133
|
const testMainResourcesPath = this.$resources.resolvePath(`test/test-main${projectFilesExtension}`);
|
|
131
134
|
const testMainPath = path.join(this.$projectData.appDirectoryPath, `test${projectFilesExtension}`);
|
|
132
135
|
if (!this.$fs.exists(testMainPath)) {
|
|
@@ -165,3 +168,4 @@ class TestInitCommand {
|
|
|
165
168
|
}
|
|
166
169
|
}
|
|
167
170
|
yok_1.injector.registerCommand("test|init", TestInitCommand);
|
|
171
|
+
//# sourceMappingURL=test-init.js.map
|
package/lib/commands/test.js
CHANGED
|
@@ -16,7 +16,7 @@ class TestCommandBase {
|
|
|
16
16
|
constructor() {
|
|
17
17
|
this.allowedParameters = [];
|
|
18
18
|
this.dashedOptions = {
|
|
19
|
-
hmr: { type: "boolean"
|
|
19
|
+
hmr: { type: "boolean" /* OptionType.Boolean */, default: false, hasSensitiveValue: false },
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
execute(args) {
|
|
@@ -36,6 +36,8 @@ class TestCommandBase {
|
|
|
36
36
|
deviceId: this.$options.device,
|
|
37
37
|
});
|
|
38
38
|
devices = [selectedDeviceForDebug];
|
|
39
|
+
// const debugData = this.getDebugData(platform, projectData, deployOptions, { device: selectedDeviceForDebug.deviceInfo.identifier });
|
|
40
|
+
// await this.$debugService.debug(debugData, this.$options);
|
|
39
41
|
}
|
|
40
42
|
else {
|
|
41
43
|
devices = yield this.$liveSyncCommandHelper.getDeviceInstances(this.platform);
|
|
@@ -49,6 +51,7 @@ class TestCommandBase {
|
|
|
49
51
|
devices.forEach((device) => (deviceDebugMap[device.deviceInfo.identifier] = this.$options.debugBrk));
|
|
50
52
|
const deviceDescriptors = yield this.$liveSyncCommandHelper.createDeviceDescriptors(devices, this.platform, { deviceDebugMap });
|
|
51
53
|
yield this.$testExecutionService.startKarmaServer(this.platform, liveSyncInfo, deviceDescriptors);
|
|
54
|
+
// if we got here, it means karma exited with exit code 0 (success)
|
|
52
55
|
process.exit(0);
|
|
53
56
|
});
|
|
54
57
|
}
|
|
@@ -56,6 +59,9 @@ class TestCommandBase {
|
|
|
56
59
|
return __awaiter(this, void 0, void 0, function* () {
|
|
57
60
|
if (!this.$options.force) {
|
|
58
61
|
if (this.$options.hmr) {
|
|
62
|
+
// With HMR we are not restarting after LiveSync which is causing a 30 seconds app start on Android
|
|
63
|
+
// because the Runtime does not watch for the `/data/local/tmp<appId>-livesync-in-progress` file deletion.
|
|
64
|
+
// The App is closing itself after each test execution and the bug will be reproducible on each LiveSync.
|
|
59
65
|
this.$errors.fail("The `--hmr` option is not supported for this command.");
|
|
60
66
|
}
|
|
61
67
|
yield this.$migrateController.validate({
|
|
@@ -75,7 +81,7 @@ class TestCommandBase {
|
|
|
75
81
|
if (!canStartKarmaServer) {
|
|
76
82
|
this.$errors.fail({
|
|
77
83
|
formatStr: "Error: In order to run unit tests, your project must already be configured by running $ ns test init.",
|
|
78
|
-
errorCode: 133
|
|
84
|
+
errorCode: 133 /* ErrorCodes.TESTS_INIT_REQUIRED */,
|
|
79
85
|
});
|
|
80
86
|
}
|
|
81
87
|
return output.canExecute && canStartKarmaServer;
|
|
@@ -144,3 +150,4 @@ class TestIosCommand extends TestCommandBase {
|
|
|
144
150
|
}
|
|
145
151
|
yok_1.injector.registerCommand("test|android", TestAndroidCommand);
|
|
146
152
|
yok_1.injector.registerCommand("test|ios", TestIosCommand);
|
|
153
|
+
//# sourceMappingURL=test.js.map
|
package/lib/commands/typings.js
CHANGED
|
@@ -102,7 +102,7 @@ class TypingsCommand {
|
|
|
102
102
|
value: item.id,
|
|
103
103
|
};
|
|
104
104
|
}), true, {
|
|
105
|
-
optionsPerPage: process.stdout.rows - 6,
|
|
105
|
+
optionsPerPage: process.stdout.rows - 6, // 6 lines are taken up by the instructions
|
|
106
106
|
});
|
|
107
107
|
this.$logger.clearScreen();
|
|
108
108
|
return items
|
|
@@ -178,3 +178,4 @@ class TypingsCommand {
|
|
|
178
178
|
}
|
|
179
179
|
exports.TypingsCommand = TypingsCommand;
|
|
180
180
|
yok_1.injector.registerCommand("typings", TypingsCommand);
|
|
181
|
+
//# sourceMappingURL=typings.js.map
|
|
@@ -43,6 +43,10 @@ class UpdatePlatformCommand {
|
|
|
43
43
|
platform,
|
|
44
44
|
options: this.$options,
|
|
45
45
|
};
|
|
46
|
+
// If version is not specified, we know the command will install the latest compatible Android runtime.
|
|
47
|
+
// The latest compatible Android runtime supports Java version, so we do not need to pass it here.
|
|
48
|
+
// Passing projectDir to the @nativescript/doctor validation will cause it to check the runtime from the current package.json
|
|
49
|
+
// So in this case, where we do not want to validate the runtime, just do not pass both projectDir and runtimeVersion.
|
|
46
50
|
if (versionToBeInstalled) {
|
|
47
51
|
checkEnvironmentRequirementsInput.projectDir = this.$projectData.projectDir;
|
|
48
52
|
checkEnvironmentRequirementsInput.runtimeVersion = versionToBeInstalled;
|
|
@@ -55,3 +59,4 @@ class UpdatePlatformCommand {
|
|
|
55
59
|
}
|
|
56
60
|
exports.UpdatePlatformCommand = UpdatePlatformCommand;
|
|
57
61
|
yok_1.injector.registerCommand("platform|update", UpdatePlatformCommand);
|
|
62
|
+
//# sourceMappingURL=update-platform.js.map
|
package/lib/commands/update.js
CHANGED
|
@@ -27,6 +27,7 @@ class UpdateCommand {
|
|
|
27
27
|
execute(args) {
|
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29
29
|
if (this.$options.markingMode) {
|
|
30
|
+
// ns update --markingMode
|
|
30
31
|
yield this.$markingModeService.handleMarkingModeFullDeprecation({
|
|
31
32
|
projectDir: this.$projectData.projectDir,
|
|
32
33
|
forceSwitch: true,
|
|
@@ -68,3 +69,4 @@ UpdateCommand.SHOULD_MIGRATE_PROJECT_MESSAGE = 'This project is not compatible w
|
|
|
68
69
|
UpdateCommand.PROJECT_UP_TO_DATE_MESSAGE = "This project is up to date.";
|
|
69
70
|
exports.UpdateCommand = UpdateCommand;
|
|
70
71
|
yok_1.injector.registerCommand("update", UpdateCommand);
|
|
72
|
+
//# sourceMappingURL=update.js.map
|
package/lib/common/bootstrap.js
CHANGED
|
@@ -95,3 +95,4 @@ yok_1.injector.require("xcodeSelectService", "./services/xcode-select-service");
|
|
|
95
95
|
yok_1.injector.require("net", "./services/net-service");
|
|
96
96
|
yok_1.injector.require("qr", "./services/qr");
|
|
97
97
|
yok_1.injector.require(["lockfile", "lockService"], "./services/lock-service");
|
|
98
|
+
//# sourceMappingURL=bootstrap.js.map
|
|
@@ -60,6 +60,7 @@ class ChildProcess extends events_1.EventEmitter {
|
|
|
60
60
|
spawn(command, args, options) {
|
|
61
61
|
var _a;
|
|
62
62
|
if (command.charAt(0) === ".") {
|
|
63
|
+
// resolve relative paths to full paths to avoid node Spawn ENOENT errors on some setups.
|
|
63
64
|
const cwd = (_a = options === null || options === void 0 ? void 0 : options.cwd) !== null && _a !== void 0 ? _a : process.cwd();
|
|
64
65
|
command = (0, path_1.resolve)(cwd, command);
|
|
65
66
|
}
|
|
@@ -71,6 +72,7 @@ class ChildProcess extends events_1.EventEmitter {
|
|
|
71
72
|
return child_process.fork(modulePath, args, options);
|
|
72
73
|
}
|
|
73
74
|
spawnFromEvent(command, args, event, options, spawnFromEventOptions) {
|
|
75
|
+
// event should be exit or close
|
|
74
76
|
return new Promise((resolve, reject) => {
|
|
75
77
|
const childProcess = this.spawn(command, args, options);
|
|
76
78
|
let isResolved = false;
|
|
@@ -215,3 +217,4 @@ class ChildProcess extends events_1.EventEmitter {
|
|
|
215
217
|
}
|
|
216
218
|
exports.ChildProcess = ChildProcess;
|
|
217
219
|
yok_1.injector.register("childProcess", ChildProcess);
|
|
220
|
+
//# sourceMappingURL=child-process.js.map
|
|
@@ -49,9 +49,11 @@ class AnalyticsCommand {
|
|
|
49
49
|
switch (arg.toLowerCase()) {
|
|
50
50
|
case "enable":
|
|
51
51
|
yield this.$analyticsService.setStatus(this.settingName, true);
|
|
52
|
+
// TODO(Analytics): await this.$analyticsService.track(this.settingName, "enabled");
|
|
52
53
|
this.$logger.info(`${this.humanReadableSettingName} is now enabled.`);
|
|
53
54
|
break;
|
|
54
55
|
case "disable":
|
|
56
|
+
// TODO(Analytics): await this.$analyticsService.track(this.settingName, "disabled");
|
|
55
57
|
yield this.$analyticsService.setStatus(this.settingName, false);
|
|
56
58
|
this.$logger.info(`${this.humanReadableSettingName} is now disabled.`);
|
|
57
59
|
break;
|
|
@@ -79,3 +81,4 @@ class ErrorReportingCommand extends AnalyticsCommand {
|
|
|
79
81
|
}
|
|
80
82
|
exports.ErrorReportingCommand = ErrorReportingCommand;
|
|
81
83
|
yok_1.injector.registerCommand("error-reporting", ErrorReportingCommand);
|
|
84
|
+
//# sourceMappingURL=analytics.js.map
|
|
@@ -25,6 +25,7 @@ class AutoCompleteCommand {
|
|
|
25
25
|
if (helpers.isInteractive()) {
|
|
26
26
|
if (this.$autoCompletionService.isAutoCompletionEnabled()) {
|
|
27
27
|
if (this.$autoCompletionService.isObsoleteAutoCompletionEnabled()) {
|
|
28
|
+
// obsolete autocompletion is enabled, update it to the new one:
|
|
28
29
|
yield this.$autoCompletionService.enableAutoCompletion();
|
|
29
30
|
}
|
|
30
31
|
else {
|
|
@@ -39,6 +40,7 @@ class AutoCompleteCommand {
|
|
|
39
40
|
yield this.$autoCompletionService.enableAutoCompletion();
|
|
40
41
|
}
|
|
41
42
|
else {
|
|
43
|
+
// make sure we've removed all autocompletion code from all shell profiles
|
|
42
44
|
this.$autoCompletionService.disableAutoCompletion();
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -108,3 +110,4 @@ class AutoCompleteStatusCommand {
|
|
|
108
110
|
}
|
|
109
111
|
exports.AutoCompleteStatusCommand = AutoCompleteStatusCommand;
|
|
110
112
|
yok_1.injector.registerCommand("autocomplete|status", AutoCompleteStatusCommand);
|
|
113
|
+
//# sourceMappingURL=autocompletion.js.map
|
|
@@ -42,3 +42,4 @@ class OpenDeviceLogStreamCommand {
|
|
|
42
42
|
OpenDeviceLogStreamCommand.NOT_SPECIFIED_DEVICE_ERROR_MESSAGE = "More than one device found. Specify device explicitly.";
|
|
43
43
|
exports.OpenDeviceLogStreamCommand = OpenDeviceLogStreamCommand;
|
|
44
44
|
yok_1.injector.registerCommand(["device|log", "devices|log"], OpenDeviceLogStreamCommand);
|
|
45
|
+
//# sourceMappingURL=device-log-stream.js.map
|
|
@@ -35,6 +35,7 @@ class GetFileCommand {
|
|
|
35
35
|
this.$projectData.initializeProjectData();
|
|
36
36
|
}
|
|
37
37
|
catch (err) {
|
|
38
|
+
// ignore the error
|
|
38
39
|
}
|
|
39
40
|
if (!this.$projectData.projectIdentifiers) {
|
|
40
41
|
this.$errors.fail("Please enter application identifier or execute this command in project.");
|
|
@@ -52,3 +53,4 @@ class GetFileCommand {
|
|
|
52
53
|
}
|
|
53
54
|
exports.GetFileCommand = GetFileCommand;
|
|
54
55
|
yok_1.injector.registerCommand(["device|get-file", "devices|get-file"], GetFileCommand);
|
|
56
|
+
//# sourceMappingURL=get-file.js.map
|
|
@@ -103,6 +103,7 @@ class ListDevicesCommand {
|
|
|
103
103
|
"Version",
|
|
104
104
|
"Device Identifier",
|
|
105
105
|
"Image Identifier",
|
|
106
|
+
// "Error Help",
|
|
106
107
|
], []);
|
|
107
108
|
for (const info of emulators) {
|
|
108
109
|
table.push([
|
|
@@ -111,6 +112,7 @@ class ListDevicesCommand {
|
|
|
111
112
|
info.version,
|
|
112
113
|
info.identifier || "",
|
|
113
114
|
info.imageIdentifier || "",
|
|
115
|
+
// info.errorHelp || "",
|
|
114
116
|
]);
|
|
115
117
|
}
|
|
116
118
|
this.$logger.info(table.toString());
|
|
@@ -148,3 +150,4 @@ class ListiOSDevicesCommand {
|
|
|
148
150
|
}
|
|
149
151
|
}
|
|
150
152
|
yok_1.injector.registerCommand(["device|ios", "devices|ios"], ListiOSDevicesCommand);
|
|
153
|
+
//# sourceMappingURL=list-devices.js.map
|
|
@@ -36,6 +36,7 @@ class ListFilesCommand {
|
|
|
36
36
|
this.$projectData.initializeProjectData();
|
|
37
37
|
}
|
|
38
38
|
catch (err) {
|
|
39
|
+
// ignore the error
|
|
39
40
|
}
|
|
40
41
|
if (!this.$projectData.projectIdentifiers) {
|
|
41
42
|
this.$errors.fail("Please enter application identifier or execute this command in project.");
|
|
@@ -53,3 +54,4 @@ class ListFilesCommand {
|
|
|
53
54
|
}
|
|
54
55
|
exports.ListFilesCommand = ListFilesCommand;
|
|
55
56
|
yok_1.injector.registerCommand(["device|list-files", "devices|list-files"], ListFilesCommand);
|
|
57
|
+
//# sourceMappingURL=list-files.js.map
|
|
@@ -36,6 +36,7 @@ class PutFileCommand {
|
|
|
36
36
|
this.$projectData.initializeProjectData();
|
|
37
37
|
}
|
|
38
38
|
catch (err) {
|
|
39
|
+
// ignore the error
|
|
39
40
|
}
|
|
40
41
|
if (!this.$projectData.projectIdentifiers) {
|
|
41
42
|
this.$errors.fail("Please enter application identifier or execute this command in project.");
|
|
@@ -53,3 +54,4 @@ class PutFileCommand {
|
|
|
53
54
|
}
|
|
54
55
|
exports.PutFileCommand = PutFileCommand;
|
|
55
56
|
yok_1.injector.registerCommand(["device|put-file", "devices|put-file"], PutFileCommand);
|
|
57
|
+
//# sourceMappingURL=put-file.js.map
|
|
@@ -29,7 +29,7 @@ class DoctorIosCommand {
|
|
|
29
29
|
trackResult: false,
|
|
30
30
|
projectDir: this.$projectHelper.projectDir,
|
|
31
31
|
forceCheck: true,
|
|
32
|
-
platform: "ios"
|
|
32
|
+
platform: "ios" /* PlatformTypes.ios */,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -46,9 +46,10 @@ class DoctorAndroidCommand {
|
|
|
46
46
|
trackResult: false,
|
|
47
47
|
projectDir: this.$projectHelper.projectDir,
|
|
48
48
|
forceCheck: true,
|
|
49
|
-
platform: "android"
|
|
49
|
+
platform: "android" /* PlatformTypes.android */,
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
exports.DoctorAndroidCommand = DoctorAndroidCommand;
|
|
54
54
|
yok_1.injector.registerCommand("doctor|android", DoctorAndroidCommand);
|
|
55
|
+
//# sourceMappingURL=doctor.js.map
|
|
@@ -43,3 +43,4 @@ GenerateMessages.MESSAGES_DEFINITIONS_FILE_NAME = "messages.interface.d.ts";
|
|
|
43
43
|
GenerateMessages.MESSAGES_IMPLEMENTATION_FILE_NAME = "messages.ts";
|
|
44
44
|
exports.GenerateMessages = GenerateMessages;
|
|
45
45
|
yok_1.injector.registerCommand("dev-generate-messages", GenerateMessages);
|
|
46
|
+
//# sourceMappingURL=generate-messages.js.map
|
|
@@ -15,12 +15,16 @@ const helpers_1 = require("../helpers");
|
|
|
15
15
|
const constants_1 = require("../../constants");
|
|
16
16
|
const yok_1 = require("../yok");
|
|
17
17
|
class PreUninstallCommand {
|
|
18
|
-
constructor($analyticsService, $extensibilityService, $fs,
|
|
18
|
+
constructor($analyticsService, $extensibilityService, $fs,
|
|
19
|
+
// private $opener: IOpener,
|
|
20
|
+
$packageInstallationManager, $settingsService) {
|
|
19
21
|
this.$analyticsService = $analyticsService;
|
|
20
22
|
this.$extensibilityService = $extensibilityService;
|
|
21
23
|
this.$fs = $fs;
|
|
22
24
|
this.$packageInstallationManager = $packageInstallationManager;
|
|
23
25
|
this.$settingsService = $settingsService;
|
|
26
|
+
// disabled for now (6/24/2020)
|
|
27
|
+
// private static FEEDBACK_FORM_URL = "https://www.nativescript.org/uninstall-feedback";
|
|
24
28
|
this.allowedParameters = [];
|
|
25
29
|
}
|
|
26
30
|
execute(args) {
|
|
@@ -34,7 +38,7 @@ class PreUninstallCommand {
|
|
|
34
38
|
/^unlink$/,
|
|
35
39
|
]);
|
|
36
40
|
yield this.$analyticsService.trackEventActionInGoogleAnalytics({
|
|
37
|
-
action: "Uninstall CLI"
|
|
41
|
+
action: "Uninstall CLI" /* TrackActionNames.UninstallCLI */,
|
|
38
42
|
additionalData: `isIntentionalUninstall${constants_1.AnalyticsEventLabelDelimiter}${isIntentionalUninstall}${constants_1.AnalyticsEventLabelDelimiter}isInteractive${constants_1.AnalyticsEventLabelDelimiter}${!!(0, helpers_1.isInteractive)()}`,
|
|
39
43
|
});
|
|
40
44
|
if (isIntentionalUninstall) {
|
|
@@ -53,9 +57,14 @@ class PreUninstallCommand {
|
|
|
53
57
|
}
|
|
54
58
|
handleFeedbackForm() {
|
|
55
59
|
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
// disabled for now (6/24/2020)
|
|
61
|
+
// if (isInteractive()) {
|
|
62
|
+
// this.$opener.open(PreUninstallCommand.FEEDBACK_FORM_URL);
|
|
63
|
+
// }
|
|
56
64
|
return Promise.resolve();
|
|
57
65
|
});
|
|
58
66
|
}
|
|
59
67
|
}
|
|
60
68
|
exports.PreUninstallCommand = PreUninstallCommand;
|
|
61
69
|
yok_1.injector.registerCommand("dev-preuninstall", PreUninstallCommand);
|
|
70
|
+
//# sourceMappingURL=preuninstall.js.map
|
|
@@ -22,7 +22,10 @@ class ProxyCommandBase {
|
|
|
22
22
|
tryTrackUsage() {
|
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
24
|
try {
|
|
25
|
+
// TODO(Analytics): Check why we have set the `disableAnalytics` to true and we track the command as separate one
|
|
26
|
+
// instead of tracking it through the commandsService.
|
|
25
27
|
this.$logger.trace(this.commandName);
|
|
28
|
+
// await this.$analyticsService.trackFeature(this.commandName);
|
|
26
29
|
}
|
|
27
30
|
catch (ex) {
|
|
28
31
|
this.$logger.trace("Error in trying to track proxy command usage:");
|
|
@@ -32,3 +35,4 @@ class ProxyCommandBase {
|
|
|
32
35
|
}
|
|
33
36
|
}
|
|
34
37
|
exports.ProxyCommandBase = ProxyCommandBase;
|
|
38
|
+
//# sourceMappingURL=proxy-base.js.map
|
package/lib/common/common-lib.js
CHANGED
package/lib/common/constants.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SOCKET_CONNECTION_TIMEOUT_MS = exports.AndroidVirtualDevice = exports.ATTACH_REQUEST_EVENT_NAME = exports.DEBUGGER_PORT_FOUND_EVENT_NAME = exports.DEFAULT_CHUNK_SIZE = exports.HttpProtocolToPort = exports.HttpStatusCodes = exports.Proxy = exports.IOS_RELAY_NOTIFICATION_COMMAND_TYPE = exports.IOS_OBSERVE_NOTIFICATION_COMMAND_TYPE = exports.IOS_POST_NOTIFICATION_COMMAND_TYPE = exports.FileExtensions = exports.TNS_CORE_MODULES = exports.NODE_MODULES_DIR_NAME = exports.Configurations = exports.TARGET_FRAMEWORK_IDENTIFIERS = exports.FAIL_LIVESYNC_LOG_REGEX = exports.IOS_APP_CRASH_LOG_REG_EXP = exports.IOS_LOG_PREDICATE = exports.DEVICE_LOG_EVENT_NAME = exports.EmulatorDiscoveryNames = exports.DeviceDiscoveryEventNames = exports.HmrConstants = exports.LiveSyncPaths = exports.APPLE_VENDOR_NAME = exports.NOT_RUNNING_EMULATOR_STATUS = exports.RUNNING_EMULATOR_STATUS = exports.CONNECTED_STATUS = exports.UNREACHABLE_STATUS = exports.ERROR_NO_VALID_SUBCOMMAND_FORMAT = exports.ERROR_CANNOT_RESOLVE_DEVICE = exports.ERROR_NO_DEVICES_CANT_USE_IOS_SIMULATOR = exports.ERROR_CANT_USE_SIMULATOR = exports.ERROR_NO_DEVICES = exports.APP_RESOURCES_FOLDER_NAME = exports.DeviceTypes = exports.ProvisionType = void 0;
|
|
4
|
+
// enumeration taken from ProvisionType.cs
|
|
4
5
|
class ProvisionType {
|
|
5
6
|
}
|
|
6
7
|
ProvisionType.Development = "Development";
|
|
@@ -82,6 +83,9 @@ Proxy.USE_PROXY = "USE_PROXY";
|
|
|
82
83
|
Proxy.PROXY_PORT = "PROXY_PORT";
|
|
83
84
|
Proxy.PROXY_HOSTNAME = "PROXY_HOSTNAME";
|
|
84
85
|
exports.Proxy = Proxy;
|
|
86
|
+
/**
|
|
87
|
+
* Http status codes available from `require("http").STATUS_CODES`.
|
|
88
|
+
*/
|
|
85
89
|
class HttpStatusCodes {
|
|
86
90
|
}
|
|
87
91
|
HttpStatusCodes.SEE_OTHER = 303;
|
|
@@ -106,7 +110,13 @@ AndroidVirtualDevice.INI_FILES_MASK = /^(.*)\.ini$/i;
|
|
|
106
110
|
AndroidVirtualDevice.AVD_FILES_MASK = /^(.*)\.avd$/i;
|
|
107
111
|
AndroidVirtualDevice.MIN_ANDROID_APILEVEL = 17;
|
|
108
112
|
AndroidVirtualDevice.MIN_ANDROID_VERSION = "4.2";
|
|
113
|
+
/**
|
|
114
|
+
* The message that is printed from `avdmanager list avds`
|
|
115
|
+
*/
|
|
109
116
|
AndroidVirtualDevice.AVAILABLE_AVDS_MESSAGE = "Available Android Virtual Devices:";
|
|
117
|
+
/**
|
|
118
|
+
* The delimiter between devices that is used from `avdmanager list avds`
|
|
119
|
+
*/
|
|
110
120
|
AndroidVirtualDevice.AVD_LIST_DELIMITER = "---------";
|
|
111
121
|
AndroidVirtualDevice.CONFIG_INI_FILE_NAME = "config.ini";
|
|
112
122
|
AndroidVirtualDevice.INI_FILE_EXTENSION = ".ini";
|
|
@@ -120,3 +130,4 @@ AndroidVirtualDevice.GENYMOTION_DEFAULT_STDERR_STRING = "Logging activities to f
|
|
|
120
130
|
AndroidVirtualDevice.UNABLE_TO_START_EMULATOR_MESSAGE = "Cannot run the app in the selected native emulator. Try to restart the adb server by running the `adb kill-server` command in the Command Prompt, or increase the allocated RAM of the virtual device through the Android Virtual Device manager. NativeScript CLI users can try to increase the timeout of the operation by adding the `--timeout` flag.";
|
|
121
131
|
exports.AndroidVirtualDevice = AndroidVirtualDevice;
|
|
122
132
|
exports.SOCKET_CONNECTION_TIMEOUT_MS = 30000;
|
|
133
|
+
//# sourceMappingURL=constants.js.map
|