nativescript 9.0.4-dev.0 → 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 +0 -1
- 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 +1 -100
- 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
|
@@ -119,17 +119,12 @@ class ExtensibilityService {
|
|
|
119
119
|
for (const extensionData of allExtensions) {
|
|
120
120
|
const extensionName = extensionData.package.name;
|
|
121
121
|
try {
|
|
122
|
-
// now get full package.json for the latest version of the package
|
|
123
122
|
const registryData = await this.$packageManager.getRegistryPackageData(extensionName);
|
|
124
123
|
const latestPackageData = registryData.versions[registryData["dist-tags"].latest];
|
|
125
124
|
const commands = latestPackageData &&
|
|
126
125
|
latestPackageData.nativescript &&
|
|
127
126
|
latestPackageData.nativescript.commands;
|
|
128
127
|
if (commands && commands.length) {
|
|
129
|
-
// For each default command we need to add its short syntax in the array of commands.
|
|
130
|
-
// For example in case there's a default command called devices list, the commands array will contain devices|*list.
|
|
131
|
-
// However, in case the user executes just ns devices, CLI will still execute the ns devices list command.
|
|
132
|
-
// So we need to add the devices command as well.
|
|
133
128
|
_.filter(commands, (command) => command.indexOf(inputOpts.defaultCommandDelimiter) !== -1).forEach((defaultCommand) => {
|
|
134
129
|
commands.push(defaultCommand.replace(defaultCommandRegExp, ""));
|
|
135
130
|
});
|
|
@@ -151,7 +146,6 @@ class ExtensibilityService {
|
|
|
151
146
|
}
|
|
152
147
|
}
|
|
153
148
|
catch (err) {
|
|
154
|
-
// We do not want to stop the whole process in case we are unable to find data for one of the extensions.
|
|
155
149
|
this.$logger.trace(`Unable to get data for ${extensionName}. Error is: ${err}`);
|
|
156
150
|
}
|
|
157
151
|
}
|
|
@@ -184,7 +178,6 @@ class ExtensibilityService {
|
|
|
184
178
|
this.assertExtensionsDirExists();
|
|
185
179
|
if (!this.$fs.exists(this.pathToPackageJson)) {
|
|
186
180
|
this.$logger.trace(`Creating ${this.pathToPackageJson}.`);
|
|
187
|
-
// create default package.json
|
|
188
181
|
this.$fs.writeJson(this.pathToPackageJson, {
|
|
189
182
|
name: "nativescript-extensibility",
|
|
190
183
|
version: "1.0.0",
|
|
@@ -206,4 +199,3 @@ __decorate([
|
|
|
206
199
|
(0, decorators_1.cache)()
|
|
207
200
|
], ExtensibilityService.prototype, "assertPackageJsonExists", null);
|
|
208
201
|
yok_1.injector.register("extensibilityService", ExtensibilityService);
|
|
209
|
-
//# sourceMappingURL=extensibility-service.js.map
|
|
@@ -56,7 +56,6 @@ class HmrStatusService {
|
|
|
56
56
|
name: "failedLiveSync",
|
|
57
57
|
platform: this.$devicePlatformsConstants.iOS.toLowerCase(),
|
|
58
58
|
});
|
|
59
|
-
// webpack5
|
|
60
59
|
const statusStringMap = {
|
|
61
60
|
success: constants_1.HmrConstants.HMR_SUCCESS_STATUS,
|
|
62
61
|
failure: constants_1.HmrConstants.HMR_ERROR_STATUS,
|
|
@@ -127,4 +126,3 @@ __decorate([
|
|
|
127
126
|
(0, decorators_1.cache)()
|
|
128
127
|
], HmrStatusService.prototype, "attachToHmrStatusEvent", null);
|
|
129
128
|
yok_1.injector.register("hmrStatusService", HmrStatusService);
|
|
130
|
-
//# sourceMappingURL=hmr-status-service.js.map
|
|
@@ -6,8 +6,6 @@ const _ = require("lodash");
|
|
|
6
6
|
const constants_1 = require("../constants");
|
|
7
7
|
const yok_1 = require("../common/yok");
|
|
8
8
|
class InitializeService {
|
|
9
|
-
// NOTE: Do not inject anything here, use $injector.resolve in the code
|
|
10
|
-
// Injecting something may lead to logger initialization, but we want to initialize it from here.
|
|
11
9
|
constructor($injector) {
|
|
12
10
|
this.$injector = $injector;
|
|
13
11
|
}
|
|
@@ -35,7 +33,6 @@ class InitializeService {
|
|
|
35
33
|
}
|
|
36
34
|
}
|
|
37
35
|
if ($options.json) {
|
|
38
|
-
// speed up --json commands by not gathering system warnings...
|
|
39
36
|
$logger.trace("Skipping system warnings for --json commands");
|
|
40
37
|
}
|
|
41
38
|
else {
|
|
@@ -47,7 +44,7 @@ class InitializeService {
|
|
|
47
44
|
const systemWarnings = await $sysInfo.getSystemWarnings();
|
|
48
45
|
_.each(systemWarnings, (systemWarning) => {
|
|
49
46
|
const message = `${os_1.EOL}${systemWarning.message}${os_1.EOL}`;
|
|
50
|
-
if (systemWarning.severity === "high"
|
|
47
|
+
if (systemWarning.severity === "high") {
|
|
51
48
|
$logger.error(message);
|
|
52
49
|
}
|
|
53
50
|
else {
|
|
@@ -58,4 +55,3 @@ class InitializeService {
|
|
|
58
55
|
}
|
|
59
56
|
exports.InitializeService = InitializeService;
|
|
60
57
|
yok_1.injector.register("initializeService", InitializeService);
|
|
61
|
-
//# sourceMappingURL=initialize-service.js.map
|
|
@@ -54,13 +54,11 @@ class ExportOptionsPlistService {
|
|
|
54
54
|
plistTemplate += `
|
|
55
55
|
</dict>
|
|
56
56
|
</plist>`;
|
|
57
|
-
// Save the options...
|
|
58
57
|
const exportOptionsPlistFilePath = await this.$tempService.path({
|
|
59
58
|
prefix: "export-",
|
|
60
59
|
suffix: ".plist",
|
|
61
60
|
});
|
|
62
61
|
this.$fs.writeFile(exportOptionsPlistFilePath, plistTemplate);
|
|
63
|
-
// The xcodebuild exportPath expects directory and writes the <project-name>.ipa at that directory.
|
|
64
62
|
const exportFileDir = path.resolve(path.dirname(archivePath));
|
|
65
63
|
const exportFilePath = path.join(exportFileDir, projectData.projectName + ".ipa");
|
|
66
64
|
return { exportFileDir, exportFilePath, exportOptionsPlistFilePath };
|
|
@@ -98,7 +96,6 @@ class ExportOptionsPlistService {
|
|
|
98
96
|
<false/>
|
|
99
97
|
</dict>
|
|
100
98
|
</plist>`;
|
|
101
|
-
// Save the options...
|
|
102
99
|
const exportOptionsPlistFilePath = await this.$tempService.path({
|
|
103
100
|
prefix: "export-",
|
|
104
101
|
suffix: ".plist",
|
|
@@ -121,4 +118,3 @@ class ExportOptionsPlistService {
|
|
|
121
118
|
}
|
|
122
119
|
exports.ExportOptionsPlistService = ExportOptionsPlistService;
|
|
123
120
|
yok_1.injector.register("exportOptionsPlistService", ExportOptionsPlistService);
|
|
124
|
-
//# sourceMappingURL=export-options-plist-service.js.map
|
|
@@ -8,11 +8,12 @@ const _ = require("lodash");
|
|
|
8
8
|
const yok_1 = require("../../common/yok");
|
|
9
9
|
const constants = require("../../constants");
|
|
10
10
|
class IOSSigningService {
|
|
11
|
-
constructor($errors, $fs, $iOSProvisionService, $logger, $pbxprojDomXcode, $prompter, $xcconfigService, $xcprojService) {
|
|
11
|
+
constructor($errors, $fs, $iOSProvisionService, $logger, $options, $pbxprojDomXcode, $prompter, $xcconfigService, $xcprojService) {
|
|
12
12
|
this.$errors = $errors;
|
|
13
13
|
this.$fs = $fs;
|
|
14
14
|
this.$iOSProvisionService = $iOSProvisionService;
|
|
15
15
|
this.$logger = $logger;
|
|
16
|
+
this.$options = $options;
|
|
16
17
|
this.$pbxprojDomXcode = $pbxprojDomXcode;
|
|
17
18
|
this.$prompter = $prompter;
|
|
18
19
|
this.$xcconfigService = $xcconfigService;
|
|
@@ -45,7 +46,6 @@ class IOSSigningService {
|
|
|
45
46
|
let shouldUpdateXcode = false;
|
|
46
47
|
if (signing && signing.style === "Automatic") {
|
|
47
48
|
if (signing.team !== teamId) {
|
|
48
|
-
// Maybe the provided team is name such as "Telerik AD" and we need to convert it to CH******37
|
|
49
49
|
const teamIdsForName = await this.$iOSProvisionService.getTeamIdsWithName(teamId);
|
|
50
50
|
if (!teamIdsForName.some((id) => id === signing.team)) {
|
|
51
51
|
shouldUpdateXcode = true;
|
|
@@ -79,7 +79,6 @@ class IOSSigningService {
|
|
|
79
79
|
}
|
|
80
80
|
async setupSigningFromProvision(projectRoot, projectData, provision, mobileProvisionData) {
|
|
81
81
|
if (!provision) {
|
|
82
|
-
// read uuid from Xcode an cache...
|
|
83
82
|
return;
|
|
84
83
|
}
|
|
85
84
|
const xcode = this.$pbxprojDomXcode.Xcode.open(this.getPbxProjPath(projectData, projectRoot));
|
|
@@ -112,7 +111,6 @@ class IOSSigningService {
|
|
|
112
111
|
this.$logger.trace(`Set Manual signing style and provisioning profile: ${configuration.name} (${configuration.uuid})`);
|
|
113
112
|
});
|
|
114
113
|
xcode.save();
|
|
115
|
-
// this.cache(uuid);
|
|
116
114
|
}
|
|
117
115
|
else {
|
|
118
116
|
this.$logger.trace(`The specified provisioning profile is already set in the Xcode: ${provision}`);
|
|
@@ -150,6 +148,7 @@ class IOSSigningService {
|
|
|
150
148
|
return [];
|
|
151
149
|
}
|
|
152
150
|
async getManualSigningConfiguration(projectData, provision, mobileProvisionData) {
|
|
151
|
+
var _a;
|
|
153
152
|
const pickStart = Date.now();
|
|
154
153
|
const mobileprovision = mobileProvisionData ||
|
|
155
154
|
(await this.$iOSProvisionService.pick(provision, projectData.projectIdentifiers.ios));
|
|
@@ -162,6 +161,7 @@ class IOSSigningService {
|
|
|
162
161
|
if (!mobileprovision) {
|
|
163
162
|
this.$errors.fail("Failed to find mobile provision with UUID or Name: " + provision);
|
|
164
163
|
}
|
|
164
|
+
const isVisionOS = ((_a = this.$options.platformOverride) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "visionos";
|
|
165
165
|
const configuration = {
|
|
166
166
|
team: mobileprovision.TeamIdentifier &&
|
|
167
167
|
mobileprovision.TeamIdentifier.length > 0
|
|
@@ -170,8 +170,12 @@ class IOSSigningService {
|
|
|
170
170
|
uuid: mobileprovision.UUID,
|
|
171
171
|
name: mobileprovision.Name,
|
|
172
172
|
identity: mobileprovision.Type === "Development"
|
|
173
|
-
?
|
|
174
|
-
|
|
173
|
+
? isVisionOS
|
|
174
|
+
? "Apple Development"
|
|
175
|
+
: "iPhone Developer"
|
|
176
|
+
: isVisionOS
|
|
177
|
+
? "Apple Distribution"
|
|
178
|
+
: "iPhone Distribution",
|
|
175
179
|
};
|
|
176
180
|
return configuration;
|
|
177
181
|
}
|
|
@@ -269,4 +273,3 @@ class IOSSigningService {
|
|
|
269
273
|
}
|
|
270
274
|
exports.IOSSigningService = IOSSigningService;
|
|
271
275
|
yok_1.injector.register("iOSSigningService", IOSSigningService);
|
|
272
|
-
//# sourceMappingURL=ios-signing-service.js.map
|
|
@@ -15,15 +15,7 @@ class SPMService {
|
|
|
15
15
|
const spmPackages = this.$projectConfigService.getValue(`${platform}.SPMPackages`, []);
|
|
16
16
|
return spmPackages;
|
|
17
17
|
}
|
|
18
|
-
/**
|
|
19
|
-
* Merges plugin SPM packages with app SPM packages.
|
|
20
|
-
* App packages take precedence over plugin packages with the same name.
|
|
21
|
-
* @param appPackages - Array of app SPM packages (modified in place)
|
|
22
|
-
* @param pluginPackages - Array of plugin SPM packages to merge
|
|
23
|
-
*/
|
|
24
18
|
mergePluginSPMPackages(appPackages, pluginPackages) {
|
|
25
|
-
// include swift packages from plugin configs
|
|
26
|
-
// but allow app packages to override plugin packages with the same name
|
|
27
19
|
const appPackageNames = new Set(appPackages.map(pkg => pkg.name));
|
|
28
20
|
for (const pluginPkg of pluginPackages) {
|
|
29
21
|
if (appPackageNames.has(pluginPkg.name)) {
|
|
@@ -34,10 +26,6 @@ class SPMService {
|
|
|
34
26
|
}
|
|
35
27
|
}
|
|
36
28
|
}
|
|
37
|
-
// note: this is not used anywhere at the moment.
|
|
38
|
-
// public hasSPMPackages(projectData: IProjectData): boolean {
|
|
39
|
-
// return this.getSPMPackages(projectData).length > 0;
|
|
40
|
-
// }
|
|
41
29
|
async applySPMPackages(platformData, projectData, pluginSpmPackages) {
|
|
42
30
|
var _a;
|
|
43
31
|
try {
|
|
@@ -56,21 +44,17 @@ class SPMService {
|
|
|
56
44
|
enableAndroid: false,
|
|
57
45
|
});
|
|
58
46
|
await project.load();
|
|
59
|
-
// note: in trapeze both visionOS and iOS are handled by the ios project.
|
|
60
47
|
if (!project.ios) {
|
|
61
48
|
this.$logger.trace("SPM: no iOS project found via trapeze.");
|
|
62
49
|
return;
|
|
63
50
|
}
|
|
64
|
-
// todo: handle removing packages? Or just warn and require a clean?
|
|
65
51
|
for (const pkg of spmPackages) {
|
|
66
52
|
if ("path" in pkg) {
|
|
67
|
-
// resolve the path relative to the project root
|
|
68
53
|
this.$logger.trace("SPM: resolving path for package: ", pkg.path);
|
|
69
54
|
pkg.path = path.resolve(projectData.projectDir, pkg.path);
|
|
70
55
|
}
|
|
71
56
|
this.$logger.trace(`SPM: adding package ${pkg.name} to project.`, pkg);
|
|
72
57
|
await project.ios.addSPMPackage(projectData.projectName, pkg);
|
|
73
|
-
// Add to other Targets if specified (like widgets, etc.)
|
|
74
58
|
if ((_a = pkg.targets) === null || _a === void 0 ? void 0 : _a.length) {
|
|
75
59
|
for (const target of pkg.targets) {
|
|
76
60
|
await project.ios.addSPMPackage(target, pkg);
|
|
@@ -78,7 +62,6 @@ class SPMService {
|
|
|
78
62
|
}
|
|
79
63
|
}
|
|
80
64
|
await project.commit();
|
|
81
|
-
// finally resolve the dependencies
|
|
82
65
|
await this.resolveSPMDependencies(platformData, projectData);
|
|
83
66
|
}
|
|
84
67
|
catch (err) {
|
|
@@ -100,4 +83,3 @@ class SPMService {
|
|
|
100
83
|
}
|
|
101
84
|
exports.SPMService = SPMService;
|
|
102
85
|
yok_1.injector.register("spmService", SPMService);
|
|
103
|
-
//# sourceMappingURL=spm-service.js.map
|
|
@@ -77,8 +77,6 @@ class XcodebuildArgsService {
|
|
|
77
77
|
async getArchitecturesArgs(buildConfig) {
|
|
78
78
|
const args = [];
|
|
79
79
|
if (this.$devicePlatformsConstants.isvisionOS(buildConfig.platform)) {
|
|
80
|
-
// visionOS builds (device/simulator) are arm64-only; rely on destination for arch
|
|
81
|
-
// and explicitly exclude x86_64 to avoid accidental selection
|
|
82
80
|
args.push("ONLY_ACTIVE_ARCH=YES", "EXCLUDED_ARCHS=x86_64");
|
|
83
81
|
return args;
|
|
84
82
|
}
|
|
@@ -92,8 +90,6 @@ class XcodebuildArgsService {
|
|
|
92
90
|
}
|
|
93
91
|
getXcodeProjectArgs(platformData, projectData) {
|
|
94
92
|
const xcworkspacePath = path.join(platformData.projectRoot, `${projectData.projectName}.xcworkspace`);
|
|
95
|
-
// Introduced in Xcode 14+
|
|
96
|
-
// ref: https://forums.swift.org/t/telling-xcode-14-beta-4-to-trust-build-tool-plugins-programatically/59305/5
|
|
97
93
|
const skipPackageValidation = "-skipPackagePluginValidation";
|
|
98
94
|
const extraArgs = [
|
|
99
95
|
"-scheme",
|
|
@@ -101,12 +97,6 @@ class XcodebuildArgsService {
|
|
|
101
97
|
skipPackageValidation,
|
|
102
98
|
];
|
|
103
99
|
const BUILD_SETTINGS_FILE_PATH = path.join(projectData.appResourcesDirectoryPath, platformData.normalizedPlatformName, constants.BUILD_XCCONFIG_FILE_NAME);
|
|
104
|
-
// Only include explicit properties from build.xcconfig
|
|
105
|
-
// Note: we could include entire file via -xcconfig flag
|
|
106
|
-
// however doing so introduces unwanted side effects
|
|
107
|
-
// like cocoapods issues related to ASSETCATALOG_COMPILER_APPICON_NAME
|
|
108
|
-
// references: https://medium.com/@iostechset/why-cocoapods-eats-app-icons-79fe729808d4
|
|
109
|
-
// https://github.com/CocoaPods/CocoaPods/issues/7003
|
|
110
100
|
const deployTargetProperty = "IPHONEOS_DEPLOYMENT_TARGET";
|
|
111
101
|
const deployTargetVersion = this.$xcconfigService.readPropertyValue(BUILD_SETTINGS_FILE_PATH, deployTargetProperty);
|
|
112
102
|
if (deployTargetVersion) {
|
|
@@ -156,4 +146,3 @@ class XcodebuildArgsService {
|
|
|
156
146
|
}
|
|
157
147
|
exports.XcodebuildArgsService = XcodebuildArgsService;
|
|
158
148
|
yok_1.injector.register("xcodebuildArgsService", XcodebuildArgsService);
|
|
159
|
-
//# sourceMappingURL=xcodebuild-args-service.js.map
|
|
@@ -64,7 +64,7 @@ class XcodebuildService {
|
|
|
64
64
|
output.exportFileDir,
|
|
65
65
|
"-exportOptionsPlist",
|
|
66
66
|
output.exportOptionsPlistFilePath,
|
|
67
|
-
provision ? "" : "-allowProvisioningUpdates",
|
|
67
|
+
provision ? "" : "-allowProvisioningUpdates",
|
|
68
68
|
];
|
|
69
69
|
await this.$xcodebuildCommandService.executeCommand(args, {
|
|
70
70
|
cwd: platformData.projectRoot,
|
|
@@ -74,4 +74,3 @@ class XcodebuildService {
|
|
|
74
74
|
}
|
|
75
75
|
exports.XcodebuildService = XcodebuildService;
|
|
76
76
|
yok_1.injector.register("xcodebuildService", XcodebuildService);
|
|
77
|
-
//# sourceMappingURL=xcodebuild-service.js.map
|
|
@@ -67,4 +67,3 @@ class IOSEntitlementsService {
|
|
|
67
67
|
exports.IOSEntitlementsService = IOSEntitlementsService;
|
|
68
68
|
IOSEntitlementsService.DefaultEntitlementsName = "app.entitlements";
|
|
69
69
|
yok_1.injector.register("iOSEntitlementsService", IOSEntitlementsService);
|
|
70
|
-
//# sourceMappingURL=ios-entitlements-service.js.map
|
|
@@ -5,20 +5,8 @@ const yok_1 = require("../common/yok");
|
|
|
5
5
|
class IOSLogFilter {
|
|
6
6
|
constructor($loggingLevels) {
|
|
7
7
|
this.$loggingLevels = $loggingLevels;
|
|
8
|
-
// Used to recognize output related to the current project
|
|
9
|
-
// This looks for artifacts like: AppName[22432] or AppName(SomeTextHere)[23123]
|
|
10
8
|
this.appOutputRegex = /([^\s\(\)]+)(?:\(([^\s]+)\))?\[[0-9]+\]/;
|
|
11
|
-
// Used to trim the passed messages to a simpler output
|
|
12
|
-
// Example:
|
|
13
|
-
// This: "May 24 15:54:52 Dragons-iPhone NativeScript250(NativeScript)[356] <Notice>: CONSOLE ERROR file:///app/tns_modules/@angular/core/bundles/core.umd.js:3477:36: ORIGINAL STACKTRACE:"
|
|
14
|
-
// Becomes: CONSOLE ERROR file:///app/tns_modules/@angular/core/bundles/core.umd.js:3477:36: ORIGINAL STACKTRACE:
|
|
15
9
|
this.infoFilterRegex = new RegExp(`^.*(?:<Notice>:[ \t]?|<Error>:[ \t]?|<Warning>:[ \t]?|\\(NativeScript\\)[ \t]?|${this.appOutputRegex.source}:[ \t]?){1}`);
|
|
16
|
-
// Used to post filter messages that slip through but are not coming from NativeScript itself.
|
|
17
|
-
// Looks for text in parenthesis at the beginning
|
|
18
|
-
// Example:
|
|
19
|
-
// (RunningBoardServices) [com.apple.runningboard:connection] Identity resolved as application<...>
|
|
20
|
-
// ^(~~capture group~~~)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
21
|
-
// we then use this to filter out non-NativeScript lines
|
|
22
10
|
this.postFilterRegex = /^\((.+)\) \[com\.apple.+\]/;
|
|
23
11
|
this.filterActive = true;
|
|
24
12
|
this.partialLine = null;
|
|
@@ -41,15 +29,11 @@ class IOSLogFilter {
|
|
|
41
29
|
this.partialLine = currentLine;
|
|
42
30
|
break;
|
|
43
31
|
}
|
|
44
|
-
// Legacy filter moved to preFilter
|
|
45
32
|
if (this.preFilter(data, currentLine)) {
|
|
46
33
|
continue;
|
|
47
34
|
}
|
|
48
35
|
const matchResult = this.appOutputRegex.exec(currentLine);
|
|
49
36
|
if (matchResult && matchResult.length > 1) {
|
|
50
|
-
// Check if the name of the app equals the name of the CLI project and turn on the filter if not.
|
|
51
|
-
// We call initializeProjectData in order to obtain the current project name as the instance
|
|
52
|
-
// of this filter may be used accross multiple projects.
|
|
53
37
|
const projectName = loggingOptions && loggingOptions.projectName;
|
|
54
38
|
this.filterActive = matchResult[1] !== projectName;
|
|
55
39
|
if (matchResult === null || matchResult === void 0 ? void 0 : matchResult[2]) {
|
|
@@ -64,11 +48,8 @@ class IOSLogFilter {
|
|
|
64
48
|
currentLine = currentLine.replace(filteredLineInfo[0], "");
|
|
65
49
|
}
|
|
66
50
|
currentLine = currentLine
|
|
67
|
-
// remove lading space before CONSOLE
|
|
68
51
|
.replace(/^\s*CONSOLE/, "CONSOLE")
|
|
69
|
-
// trim trailing spaces only to preserve indentation
|
|
70
52
|
.trimEnd();
|
|
71
|
-
// post filtering: (<anything>) check if <anything> is not "NativeScript"
|
|
72
53
|
const postFilterMatch = this.postFilterRegex.exec(currentLine);
|
|
73
54
|
if (postFilterMatch && (postFilterMatch === null || postFilterMatch === void 0 ? void 0 : postFilterMatch[1]) !== "NativeScript") {
|
|
74
55
|
continue;
|
|
@@ -87,4 +68,3 @@ class IOSLogFilter {
|
|
|
87
68
|
}
|
|
88
69
|
exports.IOSLogFilter = IOSLogFilter;
|
|
89
70
|
yok_1.injector.register("iOSLogFilter", IOSLogFilter);
|
|
90
|
-
//# sourceMappingURL=ios-log-filter.js.map
|
|
@@ -58,8 +58,8 @@ class IOSNativeTargetService {
|
|
|
58
58
|
setXcodeTargetBuildConfigurationProperties(properties, targetName, project) {
|
|
59
59
|
properties.forEach((property) => {
|
|
60
60
|
const buildNames = property.buildNames || [
|
|
61
|
-
"Debug"
|
|
62
|
-
"Release"
|
|
61
|
+
"Debug",
|
|
62
|
+
"Release",
|
|
63
63
|
];
|
|
64
64
|
buildNames.forEach((buildName) => {
|
|
65
65
|
project.addBuildProperty(property.name, property.value, buildName, targetName);
|
|
@@ -76,7 +76,6 @@ class IOSNativeTargetService {
|
|
|
76
76
|
project.addToBuildSettings("ASSETCATALOG_COMPILER_APPICON_NAME", configurationJson.assetcatalogCompilerAppiconName, targetUuid);
|
|
77
77
|
}
|
|
78
78
|
const properties = [];
|
|
79
|
-
// Set for both release and debug
|
|
80
79
|
if (configurationJson.targetBuildConfigurationProperties) {
|
|
81
80
|
_.forEach(configurationJson.targetBuildConfigurationProperties, (value, name) => properties.push({ value, name }));
|
|
82
81
|
}
|
|
@@ -85,11 +84,11 @@ class IOSNativeTargetService {
|
|
|
85
84
|
var buildName = null;
|
|
86
85
|
switch (name) {
|
|
87
86
|
case "debug": {
|
|
88
|
-
buildName = "Debug"
|
|
87
|
+
buildName = "Debug";
|
|
89
88
|
break;
|
|
90
89
|
}
|
|
91
90
|
case "release": {
|
|
92
|
-
buildName = "Release"
|
|
91
|
+
buildName = "Release";
|
|
93
92
|
break;
|
|
94
93
|
}
|
|
95
94
|
default: {
|
|
@@ -107,4 +106,3 @@ class IOSNativeTargetService {
|
|
|
107
106
|
}
|
|
108
107
|
exports.IOSNativeTargetService = IOSNativeTargetService;
|
|
109
108
|
yok_1.injector.register("iOSNativeTargetService", IOSNativeTargetService);
|
|
110
|
-
//# sourceMappingURL=ios-native-target-service.js.map
|