nativescript 9.0.3 → 9.0.4-dev.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/lib/android-tools-info.js +0 -12
- package/lib/base-package-manager.js +0 -7
- package/lib/bootstrap.js +1 -5
- package/lib/bun-package-manager.js +1 -14
- package/lib/color.js +0 -4
- package/lib/commands/add-platform.js +0 -1
- package/lib/commands/apple-login.js +0 -1
- package/lib/commands/appstore-list.js +0 -1
- package/lib/commands/appstore-upload.js +0 -3
- package/lib/commands/build.js +2 -3
- package/lib/commands/clean.js +1 -22
- package/lib/commands/command-base.js +0 -1
- package/lib/commands/config.js +0 -5
- package/lib/commands/create-project.js +0 -6
- package/lib/commands/debug.js +1 -6
- package/lib/commands/deploy.js +2 -3
- package/lib/commands/embedding/embed.js +0 -7
- package/lib/commands/extensibility/install-extension.js +0 -1
- package/lib/commands/extensibility/list-extensions.js +0 -1
- package/lib/commands/extensibility/uninstall-extension.js +0 -1
- package/lib/commands/fonts.js +0 -1
- package/lib/commands/generate-assets.js +0 -1
- package/lib/commands/generate-help.js +0 -1
- package/lib/commands/generate.js +1 -48
- package/lib/commands/hooks/common.js +1 -2
- package/lib/commands/hooks/hooks-lock.js +0 -1
- package/lib/commands/hooks/hooks.js +0 -1
- package/lib/commands/info.js +0 -1
- package/lib/commands/install.js +0 -1
- package/lib/commands/list-platforms.js +0 -1
- package/lib/commands/migrate.js +0 -1
- package/lib/commands/native-add.js +0 -5
- package/lib/commands/platform-clean.js +0 -1
- package/lib/commands/plugin/add-plugin.js +0 -1
- package/lib/commands/plugin/build-plugin.js +0 -1
- package/lib/commands/plugin/create-plugin.js +0 -5
- package/lib/commands/plugin/list-plugins.js +0 -1
- package/lib/commands/plugin/remove-plugin.js +0 -2
- package/lib/commands/plugin/update-plugin.js +0 -1
- package/lib/commands/post-install.js +0 -6
- package/lib/commands/prepare.js +3 -4
- package/lib/commands/preview.js +0 -2
- package/lib/commands/remove-platform.js +0 -1
- package/lib/commands/resources/resources-update.js +0 -2
- package/lib/commands/run.js +0 -1
- package/lib/commands/setup.js +0 -1
- package/lib/commands/start.js +0 -1
- package/lib/commands/test-init.js +0 -4
- package/lib/commands/test.js +2 -9
- package/lib/commands/typings.js +1 -2
- package/lib/commands/update-platform.js +0 -5
- package/lib/commands/update.js +0 -2
- package/lib/commands/widget.js +1 -20
- package/lib/common/bootstrap.js +0 -1
- package/lib/common/child-process.js +0 -3
- package/lib/common/codeGeneration/code-entity.js +0 -1
- package/lib/common/codeGeneration/code-printer.js +0 -1
- package/lib/common/command-params.js +0 -1
- package/lib/common/commands/analytics.js +0 -3
- package/lib/common/commands/autocompletion.js +0 -3
- package/lib/common/commands/device/device-log-stream.js +0 -1
- package/lib/common/commands/device/get-file.js +0 -2
- package/lib/common/commands/device/list-applications.js +0 -1
- package/lib/common/commands/device/list-devices.js +0 -3
- package/lib/common/commands/device/list-files.js +0 -2
- package/lib/common/commands/device/put-file.js +0 -2
- package/lib/common/commands/device/run-application.js +0 -1
- package/lib/common/commands/device/stop-application.js +0 -1
- package/lib/common/commands/device/uninstall-application.js +0 -1
- package/lib/common/commands/doctor.js +2 -3
- package/lib/common/commands/generate-messages.js +0 -1
- package/lib/common/commands/help.js +0 -1
- package/lib/common/commands/package-manager-get.js +0 -1
- package/lib/common/commands/package-manager-set.js +0 -1
- package/lib/common/commands/post-install.js +0 -1
- package/lib/common/commands/preuninstall.js +2 -11
- package/lib/common/commands/proxy/proxy-base.js +0 -4
- package/lib/common/commands/proxy/proxy-clear.js +0 -1
- package/lib/common/commands/proxy/proxy-get.js +0 -1
- package/lib/common/commands/proxy/proxy-set.js +0 -1
- package/lib/common/common-lib.js +0 -1
- package/lib/common/constants.js +0 -11
- package/lib/common/decorators.js +0 -48
- package/lib/common/dispatchers.js +1 -10
- package/lib/common/errors.js +3 -13
- package/lib/common/file-system.js +2 -13
- package/lib/common/header.js +0 -3
- package/lib/common/helpers.js +3 -89
- package/lib/common/host-info.js +0 -4
- package/lib/common/http-client.js +0 -20
- package/lib/common/logger/appenders/cli-appender.js +0 -4
- package/lib/common/logger/appenders/emit-appender.js +0 -4
- package/lib/common/logger/layouts/cli-layout.js +0 -1
- package/lib/common/logger/logger.js +0 -5
- package/lib/common/messages/messages.js +0 -6
- package/lib/common/mobile/android/android-application-manager.js +1 -20
- package/lib/common/mobile/android/android-debug-bridge-result-handler.js +0 -1
- package/lib/common/mobile/android/android-debug-bridge.js +0 -6
- package/lib/common/mobile/android/android-device-file-system.js +0 -4
- package/lib/common/mobile/android/android-device-hash-service.js +0 -3
- package/lib/common/mobile/android/android-device.js +0 -8
- package/lib/common/mobile/android/android-emulator-services.js +1 -2
- package/lib/common/mobile/android/android-ini-file-parser.js +0 -9
- package/lib/common/mobile/android/android-log-filter.js +0 -4
- package/lib/common/mobile/android/android-virtual-device-service.js +0 -26
- package/lib/common/mobile/android/device-android-debug-bridge.js +0 -1
- package/lib/common/mobile/android/genymotion/genymotion-service.js +1 -6
- package/lib/common/mobile/android/genymotion/virtualbox-service.js +0 -11
- package/lib/common/mobile/android/logcat-helper.js +0 -13
- package/lib/common/mobile/application-manager-base.js +0 -6
- package/lib/common/mobile/device-emitter.js +0 -4
- package/lib/common/mobile/device-log-emitter.js +0 -1
- package/lib/common/mobile/device-log-provider-base.js +0 -1
- package/lib/common/mobile/device-log-provider.js +0 -23
- package/lib/common/mobile/device-platforms-constants.js +0 -1
- package/lib/common/mobile/emulator-helper.js +0 -3
- package/lib/common/mobile/ios/device/ios-application-manager.js +0 -3
- package/lib/common/mobile/ios/device/ios-device-file-system.js +0 -1
- package/lib/common/mobile/ios/device/ios-device-operations.js +0 -4
- package/lib/common/mobile/ios/device/ios-device.js +0 -4
- package/lib/common/mobile/ios/ios-device-base.js +0 -1
- package/lib/common/mobile/ios/ios-device-product-name-mapper.js +0 -2
- package/lib/common/mobile/ios/ios-log-filter.js +0 -1
- package/lib/common/mobile/ios/simulator/ios-emulator-services.js +0 -4
- package/lib/common/mobile/ios/simulator/ios-sim-resolver.js +0 -1
- package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +0 -6
- package/lib/common/mobile/ios/simulator/ios-simulator-device.js +0 -5
- package/lib/common/mobile/ios/simulator/ios-simulator-file-system.js +0 -1
- package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.js +0 -1
- package/lib/common/mobile/local-to-device-path-data-factory.js +0 -1
- package/lib/common/mobile/log-filter.js +0 -2
- package/lib/common/mobile/logging-levels.js +0 -1
- package/lib/common/mobile/mobile-core/android-device-discovery.js +0 -2
- package/lib/common/mobile/mobile-core/android-emulator-discovery.js +0 -3
- package/lib/common/mobile/mobile-core/android-process-service.js +0 -32
- package/lib/common/mobile/mobile-core/device-discovery.js +0 -1
- package/lib/common/mobile/mobile-core/devices-service.js +0 -69
- package/lib/common/mobile/mobile-core/ios-device-discovery.js +0 -2
- package/lib/common/mobile/mobile-core/ios-simulator-discovery.js +0 -3
- package/lib/common/mobile/mobile-helper.js +0 -1
- package/lib/common/mobile/wp8/wp8-emulator-services.js +0 -1
- package/lib/common/opener.js +0 -1
- package/lib/common/os-info.js +0 -1
- package/lib/common/plist-parser.js +0 -1
- package/lib/common/project-helper.js +0 -1
- package/lib/common/prompter.js +1 -9
- package/lib/common/queue.js +0 -1
- package/lib/common/resource-loader.js +0 -1
- package/lib/common/services/auto-completion-service.js +1 -13
- package/lib/common/services/cancellation.js +1 -2
- package/lib/common/services/commands-service.js +6 -17
- package/lib/common/services/help-service.js +3 -11
- package/lib/common/services/hooks-service.js +0 -13
- package/lib/common/services/ios-notification-service.js +0 -1
- package/lib/common/services/json-file-settings-service.js +0 -6
- package/lib/common/services/lock-service.js +0 -6
- package/lib/common/services/message-contract-generator.js +0 -1
- package/lib/common/services/messages-service.js +0 -1
- package/lib/common/services/micro-templating-service.js +0 -6
- package/lib/common/services/net-service.js +0 -3
- package/lib/common/services/project-files-manager.js +0 -5
- package/lib/common/services/project-files-provider-base.js +0 -1
- package/lib/common/services/proxy-service.js +0 -1
- package/lib/common/services/qr.js +0 -1
- package/lib/common/services/settings-service.js +0 -1
- package/lib/common/services/xcode-select-service.js +0 -1
- package/lib/common/utils.js +0 -1
- package/lib/common/validators/project-name-validator.js +0 -1
- package/lib/common/validators/validation-result.js +0 -1
- package/lib/common/verify-node-version.js +1 -8
- package/lib/common/yok.js +11 -32
- package/lib/config.js +1 -22
- package/lib/constants-provider.js +0 -1
- package/lib/constants.js +0 -53
- package/lib/controllers/build-controller.js +3 -4
- package/lib/controllers/debug-controller.js +3 -8
- package/lib/controllers/deploy-controller.js +0 -1
- package/lib/controllers/migrate-controller.js +4 -90
- package/lib/controllers/platform-controller.js +1 -9
- package/lib/controllers/prepare-controller.js +4 -17
- package/lib/controllers/run-controller.js +1 -17
- package/lib/controllers/update-controller-base.js +0 -1
- package/lib/controllers/update-controller.js +0 -11
- package/lib/data/build-data.js +0 -1
- package/lib/data/controller-data-base.js +0 -1
- package/lib/data/debug-data.js +0 -1
- package/lib/data/platform-data.js +0 -1
- package/lib/data/prepare-data.js +0 -1
- package/lib/data/run-data.js +0 -1
- package/lib/detached-processes/cleanup-js-subprocess.js +2 -8
- package/lib/detached-processes/cleanup-process.js +14 -18
- package/lib/detached-processes/file-log-service.js +1 -2
- package/lib/device-path-provider.js +0 -1
- package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +0 -7
- package/lib/device-sockets/ios/notification.js +0 -3
- package/lib/device-sockets/ios/socket-request-executor.js +0 -3
- package/lib/helpers/android-bundle-validator-helper.js +1 -2
- package/lib/helpers/deploy-command-helper.js +0 -1
- package/lib/helpers/key-command-helper.js +2 -4
- package/lib/helpers/livesync-command-helper.js +1 -4
- package/lib/helpers/network-connectivity-validator.js +0 -1
- package/lib/helpers/options-track-helper.js +2 -3
- package/lib/helpers/package-path-helper.js +0 -1
- package/lib/helpers/platform-command-helper.js +2 -7
- package/lib/helpers/version-validator-helper.js +0 -1
- package/lib/key-commands/bootstrap.js +2 -3
- package/lib/key-commands/index.js +4 -5
- package/lib/nativescript-cli-lib-bootstrap.js +0 -4
- package/lib/nativescript-cli-lib.js +0 -1
- package/lib/nativescript-cli.js +1 -11
- package/lib/node/pbxproj-dom-xcode.js +0 -1
- package/lib/node/xcode.js +0 -1
- package/lib/node-package-manager.js +1 -11
- package/lib/options.js +119 -144
- package/lib/package-installation-manager.js +1 -8
- package/lib/package-manager.js +0 -2
- package/lib/platform-command-param.js +0 -1
- package/lib/pnpm-package-manager.js +1 -4
- package/lib/project-data.js +0 -12
- package/lib/providers/project-files-provider.js +0 -1
- package/lib/resolvers/livesync-service-resolver.js +0 -1
- package/lib/services/analytics/analytics-broker-process.js +6 -10
- package/lib/services/analytics/analytics-broker.js +1 -2
- package/lib/services/analytics/analytics-service.js +25 -29
- package/lib/services/analytics/google-analytics-provider.js +12 -13
- package/lib/services/analytics-settings-service.js +0 -5
- package/lib/services/android/android-bundle-tool-service.js +0 -1
- package/lib/services/android/gradle-build-args-service.js +0 -3
- package/lib/services/android/gradle-build-service.js +0 -1
- package/lib/services/android/gradle-command-service.js +0 -1
- package/lib/services/android-device-debug-service.js +0 -6
- package/lib/services/android-plugin-build-service.js +2 -31
- package/lib/services/android-project-service.js +4 -71
- package/lib/services/android-resources-migration-service.js +0 -7
- package/lib/services/apple-portal/apple-portal-application-service.js +0 -1
- package/lib/services/apple-portal/apple-portal-cookie-service.js +0 -1
- package/lib/services/apple-portal/apple-portal-session-service.js +4 -6
- package/lib/services/apple-portal/srp/srp-wrapper.js +1 -4
- package/lib/services/assets-generation/assets-generation-service.js +5 -10
- package/lib/services/build-artifacts-service.js +1 -2
- package/lib/services/build-data-service.js +0 -1
- package/lib/services/build-info-file-service.js +0 -1
- package/lib/services/bundler/bundler-compiler-service.js +1 -68
- package/lib/services/bundler/bundler.js +0 -1
- package/lib/services/cleanup-service.js +9 -13
- package/lib/services/cocoapods-platform-manager.js +0 -9
- package/lib/services/cocoapods-service.js +1 -21
- package/lib/services/debug-data-service.js +0 -1
- package/lib/services/debug-service-base.js +0 -7
- package/lib/services/device/device-install-app-service.js +1 -2
- package/lib/services/doctor-service.js +6 -21
- package/lib/services/extensibility-service.js +0 -8
- package/lib/services/files-hash-service.js +0 -1
- package/lib/services/hmr-status-service.js +0 -2
- package/lib/services/info-service.js +0 -1
- package/lib/services/initialize-service.js +1 -5
- package/lib/services/ios/export-options-plist-service.js +0 -4
- package/lib/services/ios/ios-signing-service.js +10 -7
- package/lib/services/ios/spm-service.js +0 -18
- package/lib/services/ios/xcodebuild-args-service.js +0 -11
- package/lib/services/ios/xcodebuild-command-service.js +0 -1
- package/lib/services/ios/xcodebuild-service.js +1 -2
- package/lib/services/ios-debugger-port-service.js +0 -1
- package/lib/services/ios-device-debug-service.js +0 -1
- package/lib/services/ios-entitlements-service.js +3 -2
- package/lib/services/ios-extensions-service.js +0 -1
- package/lib/services/ios-log-filter.js +0 -20
- package/lib/services/ios-native-target-service.js +4 -6
- package/lib/services/ios-project-service.js +11 -105
- package/lib/services/ios-provision-service.js +0 -3
- package/lib/services/ios-watch-app-service.js +0 -1
- package/lib/services/ip-service.js +0 -2
- package/lib/services/itmstransporter-service.js +0 -1
- package/lib/services/karma-execution.js +0 -2
- package/lib/services/livesync/android-device-livesync-service-base.js +0 -1
- package/lib/services/livesync/android-device-livesync-service.js +0 -2
- package/lib/services/livesync/android-device-livesync-sockets-service.js +0 -3
- package/lib/services/livesync/android-livesync-service.js +0 -1
- package/lib/services/livesync/android-livesync-tool.js +0 -4
- package/lib/services/livesync/device-livesync-service-base.js +0 -2
- package/lib/services/livesync/ios-device-livesync-service.js +0 -7
- package/lib/services/livesync/ios-livesync-service.js +0 -2
- package/lib/services/livesync/livesync-socket.js +0 -1
- package/lib/services/livesync/platform-livesync-service-base.js +0 -5
- package/lib/services/livesync-process-data-service.js +0 -1
- package/lib/services/log-parser-service.js +0 -1
- package/lib/services/log-source-map-service.js +0 -15
- package/lib/services/marking-mode-service.js +5 -8
- package/lib/services/metadata-filtering-service.js +0 -1
- package/lib/services/npm-config-service.js +0 -4
- package/lib/services/pacote-service.js +0 -7
- package/lib/services/performance-service.js +1 -3
- package/lib/services/platform/add-platform-service.js +2 -49
- package/lib/services/platform/platform-validation-service.js +0 -1
- package/lib/services/platform/prepare-native-platform-service.js +2 -5
- package/lib/services/platform-environment-requirements.js +3 -8
- package/lib/services/platform-project-service-base.js +0 -1
- package/lib/services/platforms-data-service.js +0 -1
- package/lib/services/plugins-service.js +2 -20
- package/lib/services/prepare-data-service.js +0 -1
- package/lib/services/project-backup-service.js +0 -4
- package/lib/services/project-changes-service.js +3 -14
- package/lib/services/project-cleanup-service.js +0 -2
- package/lib/services/project-config-service.js +2 -21
- package/lib/services/project-data-service.js +7 -36
- package/lib/services/project-name-service.js +0 -1
- package/lib/services/project-service.js +0 -10
- package/lib/services/project-templates-service.js +2 -3
- package/lib/services/qr-code-terminal-service.js +0 -1
- package/lib/services/require-service.js +0 -1
- package/lib/services/start-service.js +0 -1
- package/lib/services/temp-service.js +0 -3
- package/lib/services/terminal-spinner-service.js +0 -2
- package/lib/services/test-execution-service.js +2 -9
- package/lib/services/test-initialization-service.js +0 -4
- package/lib/services/timeline-profiler-service.js +0 -1
- package/lib/services/user-settings-service.js +0 -1
- package/lib/services/versions-service.js +4 -6
- package/lib/services/watch-ignore-list-service.js +0 -1
- package/lib/services/xcconfig-service.js +0 -2
- package/lib/services/xcproj-service.js +0 -1
- package/lib/shared-event-bus.js +0 -6
- package/lib/sys-info.js +1 -2
- package/lib/tools/config-manipulation/config-transformer.js +0 -12
- package/lib/tools/node-modules/node-modules-builder.js +0 -1
- package/lib/tools/node-modules/node-modules-dependencies-builder.js +0 -6
- package/lib/yarn-package-manager.js +0 -1
- package/lib/yarn2-package-manager.js +0 -3
- package/package.json +1 -1
|
@@ -78,14 +78,11 @@ class RunController extends events_1.EventEmitter {
|
|
|
78
78
|
const { projectDir, deviceIdentifiers, stopOptions } = data;
|
|
79
79
|
const liveSyncProcessInfo = this.$liveSyncProcessDataService.getPersistedData(projectDir);
|
|
80
80
|
if (liveSyncProcessInfo && !liveSyncProcessInfo.isStopped) {
|
|
81
|
-
// In case we are coming from error during livesync, the current action is the one that erred (but we are still executing it),
|
|
82
|
-
// so we cannot await it as this will cause infinite loop.
|
|
83
81
|
const shouldAwaitPendingOperation = !stopOptions || stopOptions.shouldAwaitAllActions;
|
|
84
82
|
const deviceIdentifiersToRemove = deviceIdentifiers && deviceIdentifiers.length
|
|
85
83
|
? deviceIdentifiers
|
|
86
84
|
: _.map(liveSyncProcessInfo.deviceDescriptors, (d) => d.identifier);
|
|
87
85
|
const removedDeviceIdentifiers = _.remove(liveSyncProcessInfo.deviceDescriptors, (descriptor) => _.includes(deviceIdentifiersToRemove, descriptor.identifier)).map((descriptor) => descriptor.identifier);
|
|
88
|
-
// Handle the case when no more devices left for any of the persisted platforms
|
|
89
86
|
for (let i = 0; i < liveSyncProcessInfo.platforms.length; i++) {
|
|
90
87
|
const platform = liveSyncProcessInfo.platforms[i];
|
|
91
88
|
const devices = this.$devicesService.getDevicesForPlatform(platform);
|
|
@@ -93,7 +90,6 @@ class RunController extends events_1.EventEmitter {
|
|
|
93
90
|
await this.$prepareController.stopWatchers(projectDir, platform);
|
|
94
91
|
}
|
|
95
92
|
}
|
|
96
|
-
// In case deviceIdentifiers are not passed, we should stop the whole LiveSync.
|
|
97
93
|
if (!deviceIdentifiers ||
|
|
98
94
|
!deviceIdentifiers.length ||
|
|
99
95
|
!liveSyncProcessInfo.deviceDescriptors ||
|
|
@@ -124,7 +120,6 @@ class RunController extends events_1.EventEmitter {
|
|
|
124
120
|
shouldAwaitPendingOperation) {
|
|
125
121
|
await liveSyncProcessInfo.currentSyncAction;
|
|
126
122
|
}
|
|
127
|
-
// Emit RunOnDevice stopped when we've really stopped.
|
|
128
123
|
_.each(removedDeviceIdentifiers, (deviceIdentifier) => {
|
|
129
124
|
this.emitCore(constants_2.RunOnDeviceEvents.runOnDeviceStopped, {
|
|
130
125
|
projectDir,
|
|
@@ -162,8 +157,6 @@ class RunController extends events_1.EventEmitter {
|
|
|
162
157
|
shouldSkipEmitLiveSyncNotification: true,
|
|
163
158
|
shouldCheckDeveloperDiscImage: true,
|
|
164
159
|
});
|
|
165
|
-
// we do not stop the application when debugBrk is false, so we need to attach, instead of launch
|
|
166
|
-
// if we try to send the launch request, the debugger port will not be printed and the command will timeout
|
|
167
160
|
debugOptions.start = !debugOptions.debugBrk;
|
|
168
161
|
debugOptions.forceDebuggerAttachedEvent = refreshInfo.didRestart;
|
|
169
162
|
await this.$debugController.enableDebuggingCoreWithoutWaitingCurrentAction(projectData.projectDir, deviceDescriptor.identifier, debugOptions);
|
|
@@ -231,7 +224,6 @@ class RunController extends events_1.EventEmitter {
|
|
|
231
224
|
getDeviceDescriptorsForInitialSync(projectDir, deviceDescriptors) {
|
|
232
225
|
const currentRunData = this.$liveSyncProcessDataService.getPersistedData(projectDir);
|
|
233
226
|
const isAlreadyLiveSyncing = currentRunData && !currentRunData.isStopped;
|
|
234
|
-
// Prevent cases where liveSync is called consecutive times with the same device, for example [ A, B, C ] and then [ A, B, D ] - we want to execute initialSync only for D.
|
|
235
227
|
const deviceDescriptorsForInitialSync = isAlreadyLiveSyncing
|
|
236
228
|
? _.differenceBy(deviceDescriptors, currentRunData.deviceDescriptors, "identifier")
|
|
237
229
|
: deviceDescriptors;
|
|
@@ -285,8 +277,6 @@ class RunController extends events_1.EventEmitter {
|
|
|
285
277
|
const platformData = this.$platformsDataService.getPlatformData(device.deviceInfo.platform, projectData);
|
|
286
278
|
try {
|
|
287
279
|
let packageFilePath = null;
|
|
288
|
-
// Case where we have three devices attached, a change that requires build is found,
|
|
289
|
-
// we'll rebuild the app only for the first device, but we should install new package on all three devices.
|
|
290
280
|
if (rebuiltInformation[platformData.platformNameLowerCase] &&
|
|
291
281
|
(this.$mobileHelper.isAndroidPlatform(platformData.platformNameLowerCase) ||
|
|
292
282
|
rebuiltInformation[platformData.platformNameLowerCase]
|
|
@@ -310,7 +300,7 @@ class RunController extends events_1.EventEmitter {
|
|
|
310
300
|
}
|
|
311
301
|
else {
|
|
312
302
|
await this.$analyticsService.trackEventActionInGoogleAnalytics({
|
|
313
|
-
action: "LiveSync"
|
|
303
|
+
action: "LiveSync",
|
|
314
304
|
device,
|
|
315
305
|
projectDir: projectData.projectDir,
|
|
316
306
|
});
|
|
@@ -380,9 +370,6 @@ class RunController extends events_1.EventEmitter {
|
|
|
380
370
|
const watchInfo = {
|
|
381
371
|
liveSyncDeviceData: deviceDescriptor,
|
|
382
372
|
projectData,
|
|
383
|
-
// todo: remove stale files once everything is stable
|
|
384
|
-
// currently, watcher fires multiple times & may clean up unsynced files
|
|
385
|
-
// filesToRemove: data.staleFiles ?? [],
|
|
386
373
|
filesToRemove: [],
|
|
387
374
|
filesToSync,
|
|
388
375
|
hmrData: data.hmrData,
|
|
@@ -428,7 +415,6 @@ class RunController extends events_1.EventEmitter {
|
|
|
428
415
|
const fullSyncAction = async () => {
|
|
429
416
|
watchInfo.filesToSync = allAppFiles;
|
|
430
417
|
const fullLiveSyncResultInfo = await platformLiveSyncService.liveSyncWatchAction(device, watchInfo);
|
|
431
|
-
// IMPORTANT: keep the same instance as we rely on side effects
|
|
432
418
|
_.assign(liveSyncResultInfo, fullLiveSyncResultInfo);
|
|
433
419
|
};
|
|
434
420
|
await this.$hooksService.executeBeforeHooks("watchAction", {
|
|
@@ -443,7 +429,6 @@ class RunController extends events_1.EventEmitter {
|
|
|
443
429
|
await this.refreshApplication(projectData, liveSyncResultInfo, data, deviceDescriptor, fullSyncAction);
|
|
444
430
|
if (!liveSyncResultInfo.didRecover && isInHMRMode) {
|
|
445
431
|
const status = await this.$hmrStatusService.getHmrStatus(device.deviceInfo.identifier, data.hmrData.hash);
|
|
446
|
-
// the timeout is assumed OK as the app could be blocked on a breakpoint
|
|
447
432
|
if (status === constants_1.HmrConstants.HMR_ERROR_STATUS) {
|
|
448
433
|
await fullSyncAction();
|
|
449
434
|
liveSyncResultInfo.isFullSync = true;
|
|
@@ -525,4 +510,3 @@ __decorate([
|
|
|
525
510
|
(0, decorators_1.cache)()
|
|
526
511
|
], RunController.prototype, "attachDeviceLostHandler", null);
|
|
527
512
|
yok_1.injector.register("runController", RunController);
|
|
528
|
-
//# sourceMappingURL=run-controller.js.map
|
|
@@ -28,15 +28,12 @@ class UpdateController extends update_controller_base_1.UpdateControllerBase {
|
|
|
28
28
|
this.spinner = this.$terminalSpinnerService.createSpinner();
|
|
29
29
|
const projectData = this.$projectDataService.getProjectData(updateOptions.projectDir);
|
|
30
30
|
updateOptions.version = updateOptions.version || constants_1.PackageVersion.LATEST;
|
|
31
|
-
// back up project files and folders
|
|
32
31
|
this.spinner.info("Backing up project files before update");
|
|
33
32
|
await this.backupProject();
|
|
34
33
|
this.spinner.succeed("Project files have been backed up");
|
|
35
|
-
// clean up project files
|
|
36
34
|
this.spinner.info("Cleaning up project files before update");
|
|
37
35
|
await this.cleanUpProject();
|
|
38
36
|
this.spinner.succeed("Project files have been cleaned up");
|
|
39
|
-
// update dependencies
|
|
40
37
|
this.spinner.info("Updating project dependencies");
|
|
41
38
|
await this.updateDependencies(projectData, updateOptions.version);
|
|
42
39
|
this.spinner.succeed("Project dependencies have been updated");
|
|
@@ -82,10 +79,6 @@ class UpdateController extends update_controller_base_1.UpdateControllerBase {
|
|
|
82
79
|
if (!shouldUpdate) {
|
|
83
80
|
return;
|
|
84
81
|
}
|
|
85
|
-
// check if the coerced version is the same as desired and prefix it with a ~
|
|
86
|
-
// for example:
|
|
87
|
-
// 8.0.0 -> ~8.0.0
|
|
88
|
-
// 8.0.8-next-XXX -> 8.0.8-next-XXX
|
|
89
82
|
const updatedVersion = (() => {
|
|
90
83
|
if (desiredVersion === version) {
|
|
91
84
|
return desiredVersion;
|
|
@@ -138,11 +131,9 @@ class UpdateController extends update_controller_base_1.UpdateControllerBase {
|
|
|
138
131
|
}
|
|
139
132
|
exports.UpdateController = UpdateController;
|
|
140
133
|
UpdateController.updatableDependencies = [
|
|
141
|
-
// dependencies
|
|
142
134
|
{
|
|
143
135
|
packageName: "@nativescript/core",
|
|
144
136
|
},
|
|
145
|
-
// devDependencies
|
|
146
137
|
{
|
|
147
138
|
packageName: "@nativescript/webpack",
|
|
148
139
|
isDev: true,
|
|
@@ -151,7 +142,6 @@ UpdateController.updatableDependencies = [
|
|
|
151
142
|
packageName: "@nativescript/types",
|
|
152
143
|
isDev: true,
|
|
153
144
|
},
|
|
154
|
-
// runtimes
|
|
155
145
|
{
|
|
156
146
|
packageName: "@nativescript/ios",
|
|
157
147
|
isDev: true,
|
|
@@ -171,4 +161,3 @@ UpdateController.pathsToBackup = [
|
|
|
171
161
|
constants.CONFIG_NS_FILE_NAME,
|
|
172
162
|
];
|
|
173
163
|
yok_1.injector.register("updateController", UpdateController);
|
|
174
|
-
//# sourceMappingURL=update-controller.js.map
|
package/lib/data/build-data.js
CHANGED
package/lib/data/debug-data.js
CHANGED
package/lib/data/prepare-data.js
CHANGED
package/lib/data/run-data.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
// NOTE: This file is used to call JS functions when cleaning resources used by CLI, after the CLI is killed.
|
|
5
|
-
// The instances here are not shared with the ones in main CLI process.
|
|
6
4
|
const fs = require("fs");
|
|
7
5
|
const uuid_1 = require("uuid");
|
|
8
6
|
const file_log_service_1 = require("./file-log-service");
|
|
@@ -11,7 +9,6 @@ const pathToBootstrap = process.argv[2];
|
|
|
11
9
|
if (!pathToBootstrap || !fs.existsSync(pathToBootstrap)) {
|
|
12
10
|
throw new Error("Invalid path to bootstrap.");
|
|
13
11
|
}
|
|
14
|
-
// After requiring the bootstrap we can use $injector
|
|
15
12
|
require(pathToBootstrap);
|
|
16
13
|
const logFile = process.argv[3];
|
|
17
14
|
const jsFilePath = process.argv[4];
|
|
@@ -35,7 +32,6 @@ catch (err) {
|
|
|
35
32
|
const logMessage = (msg, type) => {
|
|
36
33
|
fileLogService.logData({ message: `[${uniqueId}] ${msg}`, type });
|
|
37
34
|
};
|
|
38
|
-
/* tslint:disable:no-floating-promises */
|
|
39
35
|
(async () => {
|
|
40
36
|
try {
|
|
41
37
|
logMessage(`Requiring file ${jsFilePath}`);
|
|
@@ -47,13 +43,11 @@ const logMessage = (msg, type) => {
|
|
|
47
43
|
logMessage(`Finished execution with data: ${JSON.stringify(data)} to the default function exported by currently required file ${jsFilePath}`);
|
|
48
44
|
}
|
|
49
45
|
catch (err) {
|
|
50
|
-
logMessage(`Unable to execute action of file ${jsFilePath} when passed data is ${JSON.stringify(data)}. Error is: ${err}.`, "Error"
|
|
46
|
+
logMessage(`Unable to execute action of file ${jsFilePath} when passed data is ${JSON.stringify(data)}. Error is: ${err}.`, "Error");
|
|
51
47
|
}
|
|
52
48
|
}
|
|
53
49
|
}
|
|
54
50
|
catch (err) {
|
|
55
|
-
logMessage(`Unable to require file: ${jsFilePath}. Error is: ${err}.`, "Error"
|
|
51
|
+
logMessage(`Unable to require file: ${jsFilePath}. Error is: ${err}.`, "Error");
|
|
56
52
|
}
|
|
57
53
|
})();
|
|
58
|
-
/* tslint:enable:no-floating-promises */
|
|
59
|
-
//# sourceMappingURL=cleanup-js-subprocess.js.map
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// NOTE: This file is used to clean up resources used by CLI, when the CLI is killed.
|
|
4
|
-
// The instances here are not shared with the ones in main CLI process.
|
|
5
3
|
const fs = require("fs");
|
|
6
4
|
const path = require("path");
|
|
7
5
|
const shelljs = require("shelljs");
|
|
@@ -13,7 +11,6 @@ if (!pathToBootstrap || !fs.existsSync(pathToBootstrap)) {
|
|
|
13
11
|
throw new Error("Invalid path to bootstrap.");
|
|
14
12
|
}
|
|
15
13
|
const logFile = process.argv[3];
|
|
16
|
-
// After requiring the bootstrap we can use $injector
|
|
17
14
|
require(pathToBootstrap);
|
|
18
15
|
const fileLogService = yok_1.injector.resolve(file_log_service_1.FileLogService, {
|
|
19
16
|
logFile,
|
|
@@ -66,7 +63,7 @@ const executeJSCleanup = async (jsCommand) => {
|
|
|
66
63
|
catch (err) {
|
|
67
64
|
fileLogService.logData({
|
|
68
65
|
message: `Unable to execute action for file ${jsCommand.filePath} with data ${JSON.stringify(jsCommand.data)}. Error is: ${err}.`,
|
|
69
|
-
type: "Error"
|
|
66
|
+
type: "Error",
|
|
70
67
|
});
|
|
71
68
|
}
|
|
72
69
|
};
|
|
@@ -91,7 +88,7 @@ const executeCleanup = async () => {
|
|
|
91
88
|
catch (err) {
|
|
92
89
|
fileLogService.logData({
|
|
93
90
|
message: `Unable to execute command: ${JSON.stringify(commandInfo)}. Error is: ${err}.`,
|
|
94
|
-
type: "Error"
|
|
91
|
+
type: "Error",
|
|
95
92
|
});
|
|
96
93
|
}
|
|
97
94
|
}
|
|
@@ -105,7 +102,7 @@ const executeCleanup = async () => {
|
|
|
105
102
|
catch (err) {
|
|
106
103
|
fileLogService.logData({
|
|
107
104
|
message: `Unable to delete files: ${JSON.stringify(filesToDelete)}. Error is: ${err}.`,
|
|
108
|
-
type: "Error"
|
|
105
|
+
type: "Error",
|
|
109
106
|
});
|
|
110
107
|
}
|
|
111
108
|
}
|
|
@@ -227,36 +224,36 @@ process.on("message", async (cleanupProcessMessage) => {
|
|
|
227
224
|
message: `cleanup-process received message of type: ${JSON.stringify(cleanupProcessMessage)}`,
|
|
228
225
|
});
|
|
229
226
|
switch (cleanupProcessMessage.messageType) {
|
|
230
|
-
case "AddCleanCommand"
|
|
227
|
+
case "AddCleanCommand":
|
|
231
228
|
addCleanupAction(cleanupProcessMessage.commandInfo);
|
|
232
229
|
break;
|
|
233
|
-
case "RemoveCleanCommand"
|
|
230
|
+
case "RemoveCleanCommand":
|
|
234
231
|
removeCleanupAction(cleanupProcessMessage.commandInfo);
|
|
235
232
|
break;
|
|
236
|
-
case "AddRequest"
|
|
233
|
+
case "AddRequest":
|
|
237
234
|
addRequest(cleanupProcessMessage.requestInfo);
|
|
238
235
|
break;
|
|
239
|
-
case "RemoveRequest"
|
|
236
|
+
case "RemoveRequest":
|
|
240
237
|
removeRequest(cleanupProcessMessage.requestInfo);
|
|
241
238
|
break;
|
|
242
|
-
case "AddDeleteFileAction"
|
|
239
|
+
case "AddDeleteFileAction":
|
|
243
240
|
addDeleteAction(cleanupProcessMessage.filePath);
|
|
244
241
|
break;
|
|
245
|
-
case "RemoveDeleteFileAction"
|
|
242
|
+
case "RemoveDeleteFileAction":
|
|
246
243
|
removeDeleteAction(cleanupProcessMessage.filePath);
|
|
247
244
|
break;
|
|
248
|
-
case "AddJSFileToRequire"
|
|
245
|
+
case "AddJSFileToRequire":
|
|
249
246
|
const jsCleanupMessage = cleanupProcessMessage;
|
|
250
247
|
addJSFile(jsCleanupMessage.jsCommand);
|
|
251
248
|
break;
|
|
252
|
-
case "RemoveJSFileToRequire"
|
|
249
|
+
case "RemoveJSFileToRequire":
|
|
253
250
|
const msgToRemove = cleanupProcessMessage;
|
|
254
251
|
removeJSFile(msgToRemove.jsCommand);
|
|
255
252
|
break;
|
|
256
253
|
default:
|
|
257
254
|
fileLogService.logData({
|
|
258
255
|
message: `Unable to handle message of type ${cleanupProcessMessage.messageType}. Full message is ${JSON.stringify(cleanupProcessMessage)}`,
|
|
259
|
-
type: "Error"
|
|
256
|
+
type: "Error",
|
|
260
257
|
});
|
|
261
258
|
break;
|
|
262
259
|
}
|
|
@@ -270,7 +267,6 @@ process.on("disconnect", async () => {
|
|
|
270
267
|
process.exit();
|
|
271
268
|
});
|
|
272
269
|
fileLogService.logData({
|
|
273
|
-
message: `cleanup-process will send ${"ProcessReadyToReceive"
|
|
270
|
+
message: `cleanup-process will send ${"ProcessReadyToReceive"} message`,
|
|
274
271
|
});
|
|
275
|
-
process.send("ProcessReadyToReceive"
|
|
276
|
-
//# sourceMappingURL=cleanup-process.js.map
|
|
272
|
+
process.send("ProcessReadyToReceive");
|
|
@@ -11,11 +11,10 @@ class FileLogService {
|
|
|
11
11
|
logData(fileLoggingMessage) {
|
|
12
12
|
if (this.logFile && fileLoggingMessage && fileLoggingMessage.message) {
|
|
13
13
|
fileLoggingMessage.type =
|
|
14
|
-
fileLoggingMessage.type || "Info"
|
|
14
|
+
fileLoggingMessage.type || "Info";
|
|
15
15
|
const formattedDate = (0, helpers_1.getFixedLengthDateString)();
|
|
16
16
|
this.$fs.appendFile(this.logFile, `[${formattedDate}] [${fileLoggingMessage.type}] ${fileLoggingMessage.message}${os_1.EOL}`);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
exports.FileLogService = FileLogService;
|
|
21
|
-
//# sourceMappingURL=file-log-service.js.map
|
|
@@ -76,7 +76,6 @@ class AppDebugSocketProxyFactory extends events_1.EventEmitter {
|
|
|
76
76
|
const existingWebProxy = this.deviceWebServers[`${device.deviceInfo.identifier}-${appId}`];
|
|
77
77
|
const result = existingWebProxy ||
|
|
78
78
|
(await this.addWebSocketProxy(device, appId, projectName, projectDir));
|
|
79
|
-
// TODO: do not remove till VSCode waits for this message in order to reattach
|
|
80
79
|
this.$logger.info("Opened localhost " + result.options.port);
|
|
81
80
|
return result;
|
|
82
81
|
}
|
|
@@ -87,13 +86,8 @@ class AppDebugSocketProxyFactory extends events_1.EventEmitter {
|
|
|
87
86
|
if (existingServer) {
|
|
88
87
|
this.$errors.fail(`Web socket proxy is already running for device '${device.deviceInfo.identifier}' and app '${appId}'`);
|
|
89
88
|
}
|
|
90
|
-
// NOTE: We will try to provide command line options to select ports, at least on the localhost.
|
|
91
89
|
const localPort = await this.$net.getAvailablePortInRange(41000);
|
|
92
90
|
this.$logger.info("\nSetting up debugger proxy...\nPress Ctrl + C to terminate, or disconnect.\n");
|
|
93
|
-
// NB: When the inspector frontend connects we might not have connected to the inspector backend yet.
|
|
94
|
-
// That's why we use the verifyClient callback of the websocket server to stall the upgrade request until we connect.
|
|
95
|
-
// We store the socket that connects us to the device in the upgrade request object itself and later on retrieve it
|
|
96
|
-
// in the connection callback.
|
|
97
91
|
let currentAppSocket = null;
|
|
98
92
|
let currentWebSocket = null;
|
|
99
93
|
const server = new ws.Server({
|
|
@@ -206,4 +200,3 @@ class AppDebugSocketProxyFactory extends events_1.EventEmitter {
|
|
|
206
200
|
}
|
|
207
201
|
exports.AppDebugSocketProxyFactory = AppDebugSocketProxyFactory;
|
|
208
202
|
yok_1.injector.register("appDebugSocketProxyFactory", AppDebugSocketProxyFactory);
|
|
209
|
-
//# sourceMappingURL=app-debug-socket-proxy-factory.js.map
|
|
@@ -6,8 +6,6 @@ const constants_1 = require("../../common/constants");
|
|
|
6
6
|
const yok_1 = require("../../common/yok");
|
|
7
7
|
class IOSNotification extends events_1.EventEmitter {
|
|
8
8
|
getAttachRequest(appId, deviceId) {
|
|
9
|
-
// It could be too early to emit this event, but we rely that if you construct attach request,
|
|
10
|
-
// you will execute it immediately.
|
|
11
9
|
this.emit(constants_1.ATTACH_REQUEST_EVENT_NAME, { deviceId, appId });
|
|
12
10
|
return this.formatNotification(IOSNotification.ATTACH_REQUEST_NOTIFICATION_NAME, appId);
|
|
13
11
|
}
|
|
@@ -30,4 +28,3 @@ IOSNotification.APP_REFRESH_STARTED_NOTIFICATION_NAME = "AppRefreshStarted";
|
|
|
30
28
|
IOSNotification.ATTACH_REQUEST_NOTIFICATION_NAME = "AttachRequest";
|
|
31
29
|
IOSNotification.READY_FOR_ATTACH_NOTIFICATION_NAME = "ReadyForAttach";
|
|
32
30
|
yok_1.injector.register("iOSNotification", IOSNotification);
|
|
33
|
-
//# sourceMappingURL=notification.js.map
|
|
@@ -25,8 +25,6 @@ class IOSSocketRequestExecutor {
|
|
|
25
25
|
async executeRequest(mainRequestName, successfulyExecutedNotificationName, appId, deviceId, timeout) {
|
|
26
26
|
let isSuccessful = false;
|
|
27
27
|
try {
|
|
28
|
-
// We should create this promise here because we need to send the ObserveNotification on the device
|
|
29
|
-
// before we send the PostNotification.
|
|
30
28
|
const socket = await this.$iOSNotificationService.postNotification(deviceId, successfulyExecutedNotificationName, constants.IOS_OBSERVE_NOTIFICATION_COMMAND_TYPE);
|
|
31
29
|
const notificationPromise = this.$iOSNotificationService.awaitNotification(deviceId, +socket, timeout);
|
|
32
30
|
await this.$iOSNotificationService.postNotification(deviceId, mainRequestName);
|
|
@@ -41,4 +39,3 @@ class IOSSocketRequestExecutor {
|
|
|
41
39
|
}
|
|
42
40
|
exports.IOSSocketRequestExecutor = IOSSocketRequestExecutor;
|
|
43
41
|
yok_1.injector.register("iOSSocketRequestExecutor", IOSSocketRequestExecutor);
|
|
44
|
-
//# sourceMappingURL=socket-request-executor.js.map
|
|
@@ -22,7 +22,7 @@ class AndroidBundleValidatorHelper extends version_validator_helper_1.VersionVal
|
|
|
22
22
|
}
|
|
23
23
|
validateRuntimeVersion(projectData) {
|
|
24
24
|
if (this.$options.aab) {
|
|
25
|
-
const runtimePackage = this.$projectDataService.getRuntimePackage(projectData.projectDir, "android"
|
|
25
|
+
const runtimePackage = this.$projectDataService.getRuntimePackage(projectData.projectDir, "android");
|
|
26
26
|
const androidRuntimeVersion = runtimePackage
|
|
27
27
|
? runtimePackage.version
|
|
28
28
|
: "";
|
|
@@ -50,4 +50,3 @@ exports.AndroidBundleValidatorHelper = AndroidBundleValidatorHelper;
|
|
|
50
50
|
AndroidBundleValidatorHelper.MIN_RUNTIME_VERSION = "5.0.0";
|
|
51
51
|
AndroidBundleValidatorHelper.MIN_ANDROID_WITH_AAB_SUPPORT = "4.4.0";
|
|
52
52
|
yok_1.injector.register("androidBundleValidatorHelper", AndroidBundleValidatorHelper);
|
|
53
|
-
//# sourceMappingURL=android-bundle-validator-helper.js.map
|
|
@@ -9,8 +9,7 @@ class KeyCommandHelper {
|
|
|
9
9
|
this.overrides = {};
|
|
10
10
|
this.onKeyPressed = async (data) => {
|
|
11
11
|
const key = data.toString();
|
|
12
|
-
|
|
13
|
-
if (this.keyCommandExecutionBlocked && key !== "\u0003" /* SpecialKeys.CtrlC */)
|
|
12
|
+
if (this.keyCommandExecutionBlocked && key !== "\u0003")
|
|
14
13
|
return;
|
|
15
14
|
try {
|
|
16
15
|
const exists = yok_1.injector.getRegisteredKeyCommandsNames().includes(key);
|
|
@@ -33,7 +32,7 @@ class KeyCommandHelper {
|
|
|
33
32
|
return;
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
|
-
if (keyCommand.key !== "\u0003"
|
|
35
|
+
if (keyCommand.key !== "\u0003") {
|
|
37
36
|
const line = ` ${color_1.color.dim("→")} ${color_1.color.bold(keyCommand.key)} — ${keyCommand.description}`;
|
|
38
37
|
const lineLength = (0, node_util_1.stripVTControlCharacters)(line).length - 1;
|
|
39
38
|
console.log(color_1.color.dim(` ┌${"─".repeat(lineLength)}┐`));
|
|
@@ -115,4 +114,3 @@ class KeyCommandHelper {
|
|
|
115
114
|
}
|
|
116
115
|
exports.default = KeyCommandHelper;
|
|
117
116
|
yok_1.injector.register("keyCommandHelper", KeyCommandHelper);
|
|
118
|
-
//# sourceMappingURL=key-command-helper.js.map
|
|
@@ -25,7 +25,6 @@ class LiveSyncCommandHelper {
|
|
|
25
25
|
get $platformsDataService() {
|
|
26
26
|
return this.$injector.resolve("platformsDataService");
|
|
27
27
|
}
|
|
28
|
-
// TODO: Remove this and replace it with buildData
|
|
29
28
|
getLiveSyncData(projectDir) {
|
|
30
29
|
const liveSyncInfo = {
|
|
31
30
|
projectDir,
|
|
@@ -55,7 +54,6 @@ class LiveSyncCommandHelper {
|
|
|
55
54
|
return devices;
|
|
56
55
|
}
|
|
57
56
|
async createDeviceDescriptors(devices, platform, additionalOptions) {
|
|
58
|
-
// Now let's take data for each device:
|
|
59
57
|
const deviceDescriptors = devices.map((d) => {
|
|
60
58
|
const outputPath = additionalOptions &&
|
|
61
59
|
additionalOptions.getOutputDirectory &&
|
|
@@ -135,7 +133,7 @@ class LiveSyncCommandHelper {
|
|
|
135
133
|
const remainingDevicesToSync = devices.map((d) => d.deviceInfo.identifier);
|
|
136
134
|
_.remove(remainingDevicesToSync, (d) => d === data.deviceIdentifier);
|
|
137
135
|
if (remainingDevicesToSync.length === 0 && !data.keepProcessAlive) {
|
|
138
|
-
process.exit(134
|
|
136
|
+
process.exit(134);
|
|
139
137
|
}
|
|
140
138
|
});
|
|
141
139
|
}
|
|
@@ -205,4 +203,3 @@ class LiveSyncCommandHelper {
|
|
|
205
203
|
}
|
|
206
204
|
exports.LiveSyncCommandHelper = LiveSyncCommandHelper;
|
|
207
205
|
yok_1.injector.register("liveSyncCommandHelper", LiveSyncCommandHelper);
|
|
208
|
-
//# sourceMappingURL=livesync-command-helper.js.map
|
|
@@ -34,4 +34,3 @@ NetworkConnectivityValidator.DNS_LOOKUP_URL = "play.nativescript.org";
|
|
|
34
34
|
NetworkConnectivityValidator.NO_INTERNET_ERROR_CODE = "ENOTFOUND";
|
|
35
35
|
NetworkConnectivityValidator.NO_INTERNET_ERROR_MESSAGE = "No internet connection. Check your internet settings and try again.";
|
|
36
36
|
yok_1.injector.register("networkConnectivityValidator", NetworkConnectivityValidator);
|
|
37
|
-
//# sourceMappingURL=network-connectivity-validator.js.map
|
|
@@ -11,7 +11,7 @@ class OptionsTracker {
|
|
|
11
11
|
async trackOptions(options) {
|
|
12
12
|
const trackObject = this.getTrackObject(options);
|
|
13
13
|
await this.$analyticsService.trackEventActionInGoogleAnalytics({
|
|
14
|
-
action: "Options"
|
|
14
|
+
action: "Options",
|
|
15
15
|
additionalData: JSON.stringify(trackObject),
|
|
16
16
|
});
|
|
17
17
|
}
|
|
@@ -58,7 +58,7 @@ class OptionsTracker {
|
|
|
58
58
|
return true;
|
|
59
59
|
}
|
|
60
60
|
const optionDef = options[key];
|
|
61
|
-
if (optionDef && optionDef.type === "boolean"
|
|
61
|
+
if (optionDef && optionDef.type === "boolean") {
|
|
62
62
|
if ((optionDef.default !== true && value === false) ||
|
|
63
63
|
(optionDef.default === true && value === true)) {
|
|
64
64
|
return true;
|
|
@@ -75,4 +75,3 @@ OptionsTracker.PRIVATE_REPLACE_VALUE = "private";
|
|
|
75
75
|
OptionsTracker.PATH_REPLACE_VALUE = "_localpath";
|
|
76
76
|
OptionsTracker.SIZE_EXEEDED_REPLACE_VALUE = "sizeExceeded";
|
|
77
77
|
yok_1.injector.register("optionsTracker", OptionsTracker);
|
|
78
|
-
//# sourceMappingURL=options-track-helper.js.map
|
|
@@ -4,4 +4,3 @@ exports.resolvePackageJSONPath = exports.resolvePackagePath = void 0;
|
|
|
4
4
|
const resolve_package_path_1 = require("@rigor789/resolve-package-path");
|
|
5
5
|
Object.defineProperty(exports, "resolvePackagePath", { enumerable: true, get: function () { return resolve_package_path_1.resolvePackagePath; } });
|
|
6
6
|
Object.defineProperty(exports, "resolvePackageJSONPath", { enumerable: true, get: function () { return resolve_package_path_1.resolvePackageJSONPath; } });
|
|
7
|
-
//# sourceMappingURL=package-path-helper.js.map
|
|
@@ -70,10 +70,6 @@ class PlatformCommandHelper {
|
|
|
70
70
|
const platformDir = path.join(projectData.platformsDir, platform.toLowerCase());
|
|
71
71
|
this.$fs.deleteDirectory(platformDir);
|
|
72
72
|
await this.$packageInstallationManager.uninstall(platformData.frameworkPackageName, projectData.projectDir);
|
|
73
|
-
// this.$projectDataService.removeNSProperty(
|
|
74
|
-
// projectData.projectDir,
|
|
75
|
-
// platformData.frameworkPackageName
|
|
76
|
-
// );
|
|
77
73
|
this.$logger.info(`Platform ${platform} successfully removed.`);
|
|
78
74
|
}
|
|
79
75
|
catch (err) {
|
|
@@ -112,7 +108,7 @@ class PlatformCommandHelper {
|
|
|
112
108
|
const installedPlatforms = this.getInstalledPlatforms(projectData);
|
|
113
109
|
return _.filter(this.$mobileHelper.platformNames, (p) => {
|
|
114
110
|
return (installedPlatforms.indexOf(p) < 0 &&
|
|
115
|
-
this.$platformValidationService.isPlatformSupportedForOS(p, projectData));
|
|
111
|
+
this.$platformValidationService.isPlatformSupportedForOS(p, projectData));
|
|
116
112
|
});
|
|
117
113
|
}
|
|
118
114
|
getPreparedPlatforms(projectData) {
|
|
@@ -136,7 +132,7 @@ class PlatformCommandHelper {
|
|
|
136
132
|
return true;
|
|
137
133
|
}
|
|
138
134
|
return (prepareInfo.nativePlatformStatus !==
|
|
139
|
-
"1"
|
|
135
|
+
"1");
|
|
140
136
|
}
|
|
141
137
|
async updatePlatform(platform, version, projectData) {
|
|
142
138
|
const platformData = this.$platformsDataService.getPlatformData(platform, projectData);
|
|
@@ -182,4 +178,3 @@ class PlatformCommandHelper {
|
|
|
182
178
|
}
|
|
183
179
|
exports.PlatformCommandHelper = PlatformCommandHelper;
|
|
184
180
|
yok_1.injector.register("platformCommandHelper", PlatformCommandHelper);
|
|
185
|
-
//# sourceMappingURL=platform-command-helper.js.map
|
|
@@ -13,10 +13,9 @@ yok_1.injector.requireKeyCommand("R", path);
|
|
|
13
13
|
yok_1.injector.requireKeyCommand("w", path);
|
|
14
14
|
yok_1.injector.requireKeyCommand("c", path);
|
|
15
15
|
yok_1.injector.requireKeyCommand("n", path);
|
|
16
|
-
yok_1.injector.requireKeyCommand("?"
|
|
17
|
-
yok_1.injector.requireKeyCommand("\u0003"
|
|
16
|
+
yok_1.injector.requireKeyCommand("?", path);
|
|
17
|
+
yok_1.injector.requireKeyCommand("\u0003", path);
|
|
18
18
|
yok_1.injector.requireCommand("open|ios", path);
|
|
19
19
|
yok_1.injector.requireCommand("open|android", path);
|
|
20
20
|
yok_1.injector.requireCommand("open|visionos", path);
|
|
21
21
|
yok_1.injector.requireCommand("open|vision", path);
|
|
22
|
-
//# sourceMappingURL=bootstrap.js.map
|
|
@@ -294,7 +294,7 @@ class ShiftR {
|
|
|
294
294
|
exports.ShiftR = ShiftR;
|
|
295
295
|
class CtrlC {
|
|
296
296
|
constructor() {
|
|
297
|
-
this.key = "\u0003"
|
|
297
|
+
this.key = "\u0003";
|
|
298
298
|
this.platform = "all";
|
|
299
299
|
this.group = "Development Workflow";
|
|
300
300
|
this.willBlockKeyCommandExecution = false;
|
|
@@ -365,7 +365,7 @@ exports.N = N;
|
|
|
365
365
|
class QuestionMark {
|
|
366
366
|
constructor($keyCommandHelper) {
|
|
367
367
|
this.$keyCommandHelper = $keyCommandHelper;
|
|
368
|
-
this.key = "?"
|
|
368
|
+
this.key = "?";
|
|
369
369
|
this.platform = "all";
|
|
370
370
|
this.description = "Show this help";
|
|
371
371
|
this.group = "Development Workflow";
|
|
@@ -405,10 +405,9 @@ yok_1.injector.registerKeyCommand("w", W);
|
|
|
405
405
|
yok_1.injector.registerKeyCommand("c", C);
|
|
406
406
|
yok_1.injector.registerKeyCommand("A", ShiftA);
|
|
407
407
|
yok_1.injector.registerKeyCommand("n", N);
|
|
408
|
-
yok_1.injector.registerKeyCommand("?"
|
|
409
|
-
yok_1.injector.registerKeyCommand("\u0003"
|
|
408
|
+
yok_1.injector.registerKeyCommand("?", QuestionMark);
|
|
409
|
+
yok_1.injector.registerKeyCommand("\u0003", CtrlC);
|
|
410
410
|
yok_1.injector.registerCommand("open|ios", OpenIOSCommand);
|
|
411
411
|
yok_1.injector.registerCommand("open|visionos", OpenVisionOSCommand);
|
|
412
412
|
yok_1.injector.registerCommand("open|vision", OpenVisionOSCommand);
|
|
413
413
|
yok_1.injector.registerCommand("open|android", OpenAndroidCommand);
|
|
414
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -3,10 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const yok_1 = require("./common/yok");
|
|
4
4
|
require("./bootstrap");
|
|
5
5
|
yok_1.injector.overrideAlreadyRequiredModule = true;
|
|
6
|
-
// Temporary!!! Should not require appbuilder's entry point of mobile-cli-lib,
|
|
7
|
-
// but once we separate logics in mobile-cli-lib, we should be able to require only specific bootstrap.
|
|
8
|
-
// Use this hack for now, as this will allow requiring {N} CLI as library directly and executing some device specific operations.
|
|
9
6
|
yok_1.injector.requirePublicClass("deviceEmitter", "./common/mobile/device-emitter");
|
|
10
7
|
yok_1.injector.requirePublicClass("deviceLogProvider", "./common/mobile/device-log-emitter");
|
|
11
8
|
yok_1.injector.resolve("staticConfig").disableAnalytics = true;
|
|
12
|
-
//# sourceMappingURL=nativescript-cli-lib-bootstrap.js.map
|