nativescript 8.7.2 → 8.8.0-alpha.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 -17
- package/lib/color.js +0 -3
- 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 -4
- 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 -3
- 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/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 +2 -12
- 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/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 +2 -3
- 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/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 +0 -5
- package/lib/common/mobile/android/genymotion/virtualbox-service.js +0 -11
- package/lib/common/mobile/android/logcat-helper.js +1 -20
- 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 +3 -91
- package/lib/controllers/platform-controller.js +1 -9
- package/lib/controllers/prepare-controller.js +4 -14
- 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 -10
- 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 +116 -141
- 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 +2 -9
- 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 +12 -43
- 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/assets-generation/assets-generation-service.js +5 -16
- 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/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 +0 -4
- package/lib/services/ios/spm-service.js +0 -9
- package/lib/services/ios/xcodebuild-args-service.js +0 -9
- package/lib/services/ios/xcodebuild-command-service.js +0 -1
- package/lib/services/ios/xcodebuild-service.js +0 -1
- 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 -23
- 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 -47
- 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 -18
- 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 -12
- package/lib/services/project-cleanup-service.js +0 -2
- package/lib/services/project-config-service.js +1 -18
- 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 -1
- 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/webpack/webpack-compiler-service.js +1 -42
- 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
- package/vendor/aab-tool/README.txt +1 -1
- package/vendor/aab-tool/bundletool.jar +0 -0
- package/vendor/gradle-plugin/build.gradle +21 -15
- package/node_modules/@npmcli/move-file/node_modules/mkdirp/CHANGELOG.md +0 -15
- package/node_modules/rimraf/CHANGELOG.md +0 -65
- package/node_modules/stringify-package/CHANGELOG.md +0 -16
|
@@ -27,12 +27,6 @@ class DebugServiceBase extends events_1.EventEmitter {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
getChromeDebugUrl(debugOptions, port) {
|
|
30
|
-
// corresponds to 55.0.2883 Chrome version
|
|
31
|
-
// SHA is taken from https://chromium.googlesource.com/chromium/src/+/55.0.2883.100
|
|
32
|
-
// This SHA is old and does not support debugging with HMR.
|
|
33
|
-
// In case we want to stick with concrete SHA, get it from one of the tags https://chromium.googlesource.com/chromium/src/
|
|
34
|
-
// IMPORTANT: When you get the SHA, ensure you are using the `parent` commit, not the actual one.
|
|
35
|
-
// Using the actual commit will result in 404 error in the remote serve.
|
|
36
30
|
const commitSHA = debugOptions.devToolsCommit || "02e6bde1bbe34e43b309d4ef774b1168d25fd024";
|
|
37
31
|
const devToolsProtocol = `devtools`;
|
|
38
32
|
let chromeDevToolsPrefix = `${devToolsProtocol}://devtools/remote/serve_file/@${commitSHA}`;
|
|
@@ -48,4 +42,3 @@ class DebugServiceBase extends events_1.EventEmitter {
|
|
|
48
42
|
}
|
|
49
43
|
}
|
|
50
44
|
exports.DebugServiceBase = DebugServiceBase;
|
|
51
|
-
//# sourceMappingURL=debug-service-base.js.map
|
|
@@ -31,7 +31,7 @@ class DeviceInstallAppService {
|
|
|
31
31
|
const projectData = this.$projectDataService.getProjectData(buildData.projectDir);
|
|
32
32
|
const platformData = this.$platformsDataService.getPlatformData(platform, projectData);
|
|
33
33
|
yield this.$analyticsService.trackEventActionInGoogleAnalytics({
|
|
34
|
-
action: "Deploy"
|
|
34
|
+
action: "Deploy",
|
|
35
35
|
device,
|
|
36
36
|
projectDir: projectData.projectDir,
|
|
37
37
|
});
|
|
@@ -94,4 +94,3 @@ class DeviceInstallAppService {
|
|
|
94
94
|
}
|
|
95
95
|
exports.DeviceInstallAppService = DeviceInstallAppService;
|
|
96
96
|
yok_1.injector.register("deviceInstallAppService", DeviceInstallAppService);
|
|
97
|
-
//# sourceMappingURL=device-install-app-service.js.map
|
|
@@ -62,13 +62,9 @@ class DoctorService {
|
|
|
62
62
|
this.printPackageManagerTip();
|
|
63
63
|
}
|
|
64
64
|
if (!configOptions || configOptions.trackResult) {
|
|
65
|
-
// TODO(Analytics): Consider sending this information to Google Analytics
|
|
66
|
-
// await this.$analyticsService.track("DoctorEnvironmentSetup", hasWarnings ? "incorrect" : "correct");
|
|
67
65
|
}
|
|
68
66
|
if (hasWarnings) {
|
|
69
67
|
this.$logger.info("There seem to be issues with your configuration.");
|
|
70
|
-
// cleanup the cache file as there seems to be issues with the current config
|
|
71
|
-
// all projects need to be rechecked
|
|
72
68
|
this.$fs.deleteFile(this.jsonFileSettingsPath);
|
|
73
69
|
}
|
|
74
70
|
else {
|
|
@@ -82,7 +78,6 @@ class DoctorService {
|
|
|
82
78
|
catch (err) {
|
|
83
79
|
this.$logger.error("Cannot get the latest versions information from npm. Please try again later.");
|
|
84
80
|
}
|
|
85
|
-
// todo: check for deprecated imports from `tns-core-modules`
|
|
86
81
|
this.checkForDeprecatedShortImportsInAppDir(configOptions.projectDir);
|
|
87
82
|
yield this.$injector
|
|
88
83
|
.resolve("platformEnvironmentRequirements")
|
|
@@ -97,12 +92,12 @@ class DoctorService {
|
|
|
97
92
|
runSetupScript() {
|
|
98
93
|
return __awaiter(this, void 0, void 0, function* () {
|
|
99
94
|
yield this.$analyticsService.trackEventActionInGoogleAnalytics({
|
|
100
|
-
action: "Run Setup Script"
|
|
95
|
+
action: "Run Setup Script",
|
|
101
96
|
additionalData: "Starting",
|
|
102
97
|
});
|
|
103
98
|
if (this.$hostInfo.isLinux) {
|
|
104
99
|
yield this.$analyticsService.trackEventActionInGoogleAnalytics({
|
|
105
|
-
action: "Run Setup Script"
|
|
100
|
+
action: "Run Setup Script",
|
|
106
101
|
additionalData: "Skipped as OS is Linux",
|
|
107
102
|
});
|
|
108
103
|
return;
|
|
@@ -115,7 +110,7 @@ class DoctorService {
|
|
|
115
110
|
yield this.runSetupScriptCore(DoctorService.WindowsSetupScriptExecutable, DoctorService.WindowsSetupScriptArguments);
|
|
116
111
|
}
|
|
117
112
|
yield this.$analyticsService.trackEventActionInGoogleAnalytics({
|
|
118
|
-
action: "Run Setup Script"
|
|
113
|
+
action: "Run Setup Script",
|
|
119
114
|
additionalData: "Finished",
|
|
120
115
|
});
|
|
121
116
|
});
|
|
@@ -123,7 +118,7 @@ class DoctorService {
|
|
|
123
118
|
canExecuteLocalBuild(configuration) {
|
|
124
119
|
return __awaiter(this, void 0, void 0, function* () {
|
|
125
120
|
yield this.$analyticsService.trackEventActionInGoogleAnalytics({
|
|
126
|
-
action: "Check Local Build Setup"
|
|
121
|
+
action: "Check Local Build Setup",
|
|
127
122
|
additionalData: "Starting",
|
|
128
123
|
});
|
|
129
124
|
const sysInfoConfig = {
|
|
@@ -135,11 +130,9 @@ class DoctorService {
|
|
|
135
130
|
const warnings = this.filterInfosByType(infos, doctor_1.constants.WARNING_TYPE_NAME);
|
|
136
131
|
const hasWarnings = warnings.length > 0;
|
|
137
132
|
if (hasWarnings) {
|
|
138
|
-
// cleanup the cache file as there seems to be issues with the current config
|
|
139
|
-
// all projects need to be rechecked
|
|
140
133
|
this.$fs.deleteFile(this.jsonFileSettingsPath);
|
|
141
134
|
yield this.$analyticsService.trackEventActionInGoogleAnalytics({
|
|
142
|
-
action: "Check Local Build Setup"
|
|
135
|
+
action: "Check Local Build Setup",
|
|
143
136
|
additionalData: `Warnings:${warnings.map((w) => w.message).join("__")}`,
|
|
144
137
|
});
|
|
145
138
|
this.printInfosCore(infos);
|
|
@@ -149,7 +142,7 @@ class DoctorService {
|
|
|
149
142
|
yield this.$jsonFileSettingsService.saveSetting(this.getKeyForConfiguration(sysInfoConfig), infos);
|
|
150
143
|
}
|
|
151
144
|
yield this.$analyticsService.trackEventActionInGoogleAnalytics({
|
|
152
|
-
action: "Check Local Build Setup"
|
|
145
|
+
action: "Check Local Build Setup",
|
|
153
146
|
additionalData: `Finished: Is setup correct: ${!hasWarnings}`,
|
|
154
147
|
});
|
|
155
148
|
return !hasWarnings;
|
|
@@ -198,13 +191,6 @@ class DoctorService {
|
|
|
198
191
|
.getFsStats(path.join(pathToTnsCoreModules, entry))
|
|
199
192
|
.isDirectory());
|
|
200
193
|
const stringRegularExpressionsPerDir = coreModulesSubDirs.map((c) => {
|
|
201
|
-
// require("text");
|
|
202
|
-
// require("text/smth");
|
|
203
|
-
// require( "text/smth");
|
|
204
|
-
// require( "text/smth" );
|
|
205
|
-
// import * as text from "text";
|
|
206
|
-
// import { a } from "text";
|
|
207
|
-
// import {a } from "text/abc"
|
|
208
194
|
const subDirPart = `[\"\']${c}[\"\'/]`;
|
|
209
195
|
return `(\\brequire\\s*?\\(\\s*?${subDirPart})|(\\bimport\\b.*?from\\s*?${subDirPart})`;
|
|
210
196
|
});
|
|
@@ -306,4 +292,3 @@ __decorate([
|
|
|
306
292
|
], DoctorService.prototype, "$jsonFileSettingsService", null);
|
|
307
293
|
exports.DoctorService = DoctorService;
|
|
308
294
|
yok_1.injector.register("doctorService", DoctorService);
|
|
309
|
-
//# sourceMappingURL=doctor-service.js.map
|
|
@@ -135,17 +135,12 @@ class ExtensibilityService {
|
|
|
135
135
|
for (const extensionData of allExtensions) {
|
|
136
136
|
const extensionName = extensionData.package.name;
|
|
137
137
|
try {
|
|
138
|
-
// now get full package.json for the latest version of the package
|
|
139
138
|
const registryData = yield this.$packageManager.getRegistryPackageData(extensionName);
|
|
140
139
|
const latestPackageData = registryData.versions[registryData["dist-tags"].latest];
|
|
141
140
|
const commands = latestPackageData &&
|
|
142
141
|
latestPackageData.nativescript &&
|
|
143
142
|
latestPackageData.nativescript.commands;
|
|
144
143
|
if (commands && commands.length) {
|
|
145
|
-
// For each default command we need to add its short syntax in the array of commands.
|
|
146
|
-
// For example in case there's a default command called devices list, the commands array will contain devices|*list.
|
|
147
|
-
// However, in case the user executes just tns devices, CLI will still execute the tns devices list command.
|
|
148
|
-
// So we need to add the devices command as well.
|
|
149
144
|
_.filter(commands, (command) => command.indexOf(inputOpts.defaultCommandDelimiter) !== -1).forEach((defaultCommand) => {
|
|
150
145
|
commands.push(defaultCommand.replace(defaultCommandRegExp, ""));
|
|
151
146
|
});
|
|
@@ -167,7 +162,6 @@ class ExtensibilityService {
|
|
|
167
162
|
}
|
|
168
163
|
}
|
|
169
164
|
catch (err) {
|
|
170
|
-
// We do not want to stop the whole process in case we are unable to find data for one of the extensions.
|
|
171
165
|
this.$logger.trace(`Unable to get data for ${extensionName}. Error is: ${err}`);
|
|
172
166
|
}
|
|
173
167
|
}
|
|
@@ -203,7 +197,6 @@ class ExtensibilityService {
|
|
|
203
197
|
this.assertExtensionsDirExists();
|
|
204
198
|
if (!this.$fs.exists(this.pathToPackageJson)) {
|
|
205
199
|
this.$logger.trace(`Creating ${this.pathToPackageJson}.`);
|
|
206
|
-
// create default package.json
|
|
207
200
|
this.$fs.writeJson(this.pathToPackageJson, {
|
|
208
201
|
name: "nativescript-extensibility",
|
|
209
202
|
version: "1.0.0",
|
|
@@ -225,4 +218,3 @@ __decorate([
|
|
|
225
218
|
], ExtensibilityService.prototype, "assertPackageJsonExists", null);
|
|
226
219
|
exports.ExtensibilityService = ExtensibilityService;
|
|
227
220
|
yok_1.injector.register("extensibilityService", ExtensibilityService);
|
|
228
|
-
//# 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
|
], HmrStatusService.prototype, "attachToHmrStatusEvent", null);
|
|
128
127
|
exports.HmrStatusService = HmrStatusService;
|
|
129
128
|
yok_1.injector.register("hmrStatusService", HmrStatusService);
|
|
130
|
-
//# sourceMappingURL=hmr-status-service.js.map
|
|
@@ -15,8 +15,6 @@ const _ = require("lodash");
|
|
|
15
15
|
const constants_1 = require("../constants");
|
|
16
16
|
const yok_1 = require("../common/yok");
|
|
17
17
|
class InitializeService {
|
|
18
|
-
// NOTE: Do not inject anything here, use $injector.resolve in the code
|
|
19
|
-
// Injecting something may lead to logger initialization, but we want to initialize it from here.
|
|
20
18
|
constructor($injector) {
|
|
21
19
|
this.$injector = $injector;
|
|
22
20
|
}
|
|
@@ -45,7 +43,6 @@ class InitializeService {
|
|
|
45
43
|
}
|
|
46
44
|
}
|
|
47
45
|
if ($options.json) {
|
|
48
|
-
// speed up --json commands by not gathering system warnings...
|
|
49
46
|
$logger.trace("Skipping system warnings for --json commands");
|
|
50
47
|
}
|
|
51
48
|
else {
|
|
@@ -59,7 +56,7 @@ class InitializeService {
|
|
|
59
56
|
const systemWarnings = yield $sysInfo.getSystemWarnings();
|
|
60
57
|
_.each(systemWarnings, (systemWarning) => {
|
|
61
58
|
const message = `${os_1.EOL}${systemWarning.message}${os_1.EOL}`;
|
|
62
|
-
if (systemWarning.severity === "high"
|
|
59
|
+
if (systemWarning.severity === "high") {
|
|
63
60
|
$logger.error(message);
|
|
64
61
|
}
|
|
65
62
|
else {
|
|
@@ -71,4 +68,3 @@ class InitializeService {
|
|
|
71
68
|
}
|
|
72
69
|
exports.InitializeService = InitializeService;
|
|
73
70
|
yok_1.injector.register("initializeService", InitializeService);
|
|
74
|
-
//# sourceMappingURL=initialize-service.js.map
|
|
@@ -64,13 +64,11 @@ class ExportOptionsPlistService {
|
|
|
64
64
|
plistTemplate += `
|
|
65
65
|
</dict>
|
|
66
66
|
</plist>`;
|
|
67
|
-
// Save the options...
|
|
68
67
|
const exportOptionsPlistFilePath = yield this.$tempService.path({
|
|
69
68
|
prefix: "export-",
|
|
70
69
|
suffix: ".plist",
|
|
71
70
|
});
|
|
72
71
|
this.$fs.writeFile(exportOptionsPlistFilePath, plistTemplate);
|
|
73
|
-
// The xcodebuild exportPath expects directory and writes the <project-name>.ipa at that directory.
|
|
74
72
|
const exportFileDir = path.resolve(path.dirname(archivePath));
|
|
75
73
|
const exportFilePath = path.join(exportFileDir, projectData.projectName + ".ipa");
|
|
76
74
|
return { exportFileDir, exportFilePath, exportOptionsPlistFilePath };
|
|
@@ -108,7 +106,6 @@ class ExportOptionsPlistService {
|
|
|
108
106
|
<false/>
|
|
109
107
|
</dict>
|
|
110
108
|
</plist>`;
|
|
111
|
-
// Save the options...
|
|
112
109
|
const exportOptionsPlistFilePath = yield this.$tempService.path({
|
|
113
110
|
prefix: "export-",
|
|
114
111
|
suffix: ".plist",
|
|
@@ -132,4 +129,3 @@ class ExportOptionsPlistService {
|
|
|
132
129
|
}
|
|
133
130
|
exports.ExportOptionsPlistService = ExportOptionsPlistService;
|
|
134
131
|
yok_1.injector.register("exportOptionsPlistService", ExportOptionsPlistService);
|
|
135
|
-
//# sourceMappingURL=export-options-plist-service.js.map
|
|
@@ -57,7 +57,6 @@ class IOSSigningService {
|
|
|
57
57
|
let shouldUpdateXcode = false;
|
|
58
58
|
if (signing && signing.style === "Automatic") {
|
|
59
59
|
if (signing.team !== teamId) {
|
|
60
|
-
// Maybe the provided team is name such as "Telerik AD" and we need to convert it to CH******37
|
|
61
60
|
const teamIdsForName = yield this.$iOSProvisionService.getTeamIdsWithName(teamId);
|
|
62
61
|
if (!teamIdsForName.some((id) => id === signing.team)) {
|
|
63
62
|
shouldUpdateXcode = true;
|
|
@@ -93,7 +92,6 @@ class IOSSigningService {
|
|
|
93
92
|
setupSigningFromProvision(projectRoot, projectData, provision, mobileProvisionData) {
|
|
94
93
|
return __awaiter(this, void 0, void 0, function* () {
|
|
95
94
|
if (!provision) {
|
|
96
|
-
// read uuid from Xcode an cache...
|
|
97
95
|
return;
|
|
98
96
|
}
|
|
99
97
|
const xcode = this.$pbxprojDomXcode.Xcode.open(this.getPbxProjPath(projectData, projectRoot));
|
|
@@ -126,7 +124,6 @@ class IOSSigningService {
|
|
|
126
124
|
this.$logger.trace(`Set Manual signing style and provisioning profile: ${configuration.name} (${configuration.uuid})`);
|
|
127
125
|
});
|
|
128
126
|
xcode.save();
|
|
129
|
-
// this.cache(uuid);
|
|
130
127
|
}
|
|
131
128
|
else {
|
|
132
129
|
this.$logger.trace(`The specified provisioning profile is already set in the Xcode: ${provision}`);
|
|
@@ -266,4 +263,3 @@ class IOSSigningService {
|
|
|
266
263
|
}
|
|
267
264
|
exports.IOSSigningService = IOSSigningService;
|
|
268
265
|
yok_1.injector.register("iOSSigningService", IOSSigningService);
|
|
269
|
-
//# sourceMappingURL=ios-signing-service.js.map
|
|
@@ -24,10 +24,6 @@ class SPMService {
|
|
|
24
24
|
const spmPackages = this.$projectConfigService.getValue(`${platform}.SPMPackages`, []);
|
|
25
25
|
return spmPackages;
|
|
26
26
|
}
|
|
27
|
-
// note: this is not used anywhere at the moment.
|
|
28
|
-
// public hasSPMPackages(projectData: IProjectData): boolean {
|
|
29
|
-
// return this.getSPMPackages(projectData).length > 0;
|
|
30
|
-
// }
|
|
31
27
|
applySPMPackages(platformData, projectData) {
|
|
32
28
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
29
|
try {
|
|
@@ -43,15 +39,12 @@ class SPMService {
|
|
|
43
39
|
enableAndroid: false,
|
|
44
40
|
});
|
|
45
41
|
yield project.load();
|
|
46
|
-
// note: in trapeze both visionOS and iOS are handled by the ios project.
|
|
47
42
|
if (!project.ios) {
|
|
48
43
|
this.$logger.trace("SPM: no iOS project found via trapeze.");
|
|
49
44
|
return;
|
|
50
45
|
}
|
|
51
|
-
// todo: handle removing packages? Or just warn and require a clean?
|
|
52
46
|
for (const pkg of spmPackages) {
|
|
53
47
|
if ("path" in pkg) {
|
|
54
|
-
// resolve the path relative to the project root
|
|
55
48
|
this.$logger.trace("SPM: resolving path for package: ", pkg.path);
|
|
56
49
|
pkg.path = path.resolve(projectData.projectDir, pkg.path);
|
|
57
50
|
}
|
|
@@ -59,7 +52,6 @@ class SPMService {
|
|
|
59
52
|
yield project.ios.addSPMPackage(projectData.projectName, pkg);
|
|
60
53
|
}
|
|
61
54
|
yield project.commit();
|
|
62
|
-
// finally resolve the dependencies
|
|
63
55
|
yield this.resolveSPMDependencies(platformData, projectData);
|
|
64
56
|
}
|
|
65
57
|
catch (err) {
|
|
@@ -84,4 +76,3 @@ class SPMService {
|
|
|
84
76
|
}
|
|
85
77
|
exports.SPMService = SPMService;
|
|
86
78
|
yok_1.injector.register("spmService", SPMService);
|
|
87
|
-
//# sourceMappingURL=spm-service.js.map
|
|
@@ -103,8 +103,6 @@ class XcodebuildArgsService {
|
|
|
103
103
|
}
|
|
104
104
|
getXcodeProjectArgs(platformData, projectData) {
|
|
105
105
|
const xcworkspacePath = path.join(platformData.projectRoot, `${projectData.projectName}.xcworkspace`);
|
|
106
|
-
// Introduced in Xcode 14+
|
|
107
|
-
// ref: https://forums.swift.org/t/telling-xcode-14-beta-4-to-trust-build-tool-plugins-programatically/59305/5
|
|
108
106
|
const skipPackageValidation = "-skipPackagePluginValidation";
|
|
109
107
|
const extraArgs = [
|
|
110
108
|
"-scheme",
|
|
@@ -112,12 +110,6 @@ class XcodebuildArgsService {
|
|
|
112
110
|
skipPackageValidation,
|
|
113
111
|
];
|
|
114
112
|
const BUILD_SETTINGS_FILE_PATH = path.join(projectData.appResourcesDirectoryPath, platformData.normalizedPlatformName, constants.BUILD_XCCONFIG_FILE_NAME);
|
|
115
|
-
// Only include explicit properties from build.xcconfig
|
|
116
|
-
// Note: we could include entire file via -xcconfig flag
|
|
117
|
-
// however doing so introduces unwanted side effects
|
|
118
|
-
// like cocoapods issues related to ASSETCATALOG_COMPILER_APPICON_NAME
|
|
119
|
-
// references: https://medium.com/@iostechset/why-cocoapods-eats-app-icons-79fe729808d4
|
|
120
|
-
// https://github.com/CocoaPods/CocoaPods/issues/7003
|
|
121
113
|
const deployTargetProperty = "IPHONEOS_DEPLOYMENT_TARGET";
|
|
122
114
|
const deployTargetVersion = this.$xcconfigService.readPropertyValue(BUILD_SETTINGS_FILE_PATH, deployTargetProperty);
|
|
123
115
|
if (deployTargetVersion) {
|
|
@@ -169,4 +161,3 @@ class XcodebuildArgsService {
|
|
|
169
161
|
}
|
|
170
162
|
exports.XcodebuildArgsService = XcodebuildArgsService;
|
|
171
163
|
yok_1.injector.register("xcodebuildArgsService", XcodebuildArgsService);
|
|
172
|
-
//# sourceMappingURL=xcodebuild-args-service.js.map
|
|
@@ -138,4 +138,3 @@ __decorate([
|
|
|
138
138
|
], IOSDebuggerPortService.prototype, "attachToAttachRequestEvent", null);
|
|
139
139
|
exports.IOSDebuggerPortService = IOSDebuggerPortService;
|
|
140
140
|
yok_1.injector.register("iOSDebuggerPortService", IOSDebuggerPortService);
|
|
141
|
-
//# sourceMappingURL=ios-debugger-port-service.js.map
|
|
@@ -165,4 +165,3 @@ __decorate([
|
|
|
165
165
|
], IOSDeviceDebugService.prototype, "openAppInspector", null);
|
|
166
166
|
exports.IOSDeviceDebugService = IOSDeviceDebugService;
|
|
167
167
|
yok_1.injector.register("iOSDeviceDebugService", IOSDeviceDebugService, false);
|
|
168
|
-
//# sourceMappingURL=ios-device-debug-service.js.map
|
|
@@ -76,4 +76,3 @@ class IOSEntitlementsService {
|
|
|
76
76
|
IOSEntitlementsService.DefaultEntitlementsName = "app.entitlements";
|
|
77
77
|
exports.IOSEntitlementsService = IOSEntitlementsService;
|
|
78
78
|
yok_1.injector.register("iOSEntitlementsService", IOSEntitlementsService);
|
|
79
|
-
//# 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
|
|
@@ -143,7 +143,7 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
|
|
|
143
143
|
".ico",
|
|
144
144
|
".cur",
|
|
145
145
|
".xbm",
|
|
146
|
-
],
|
|
146
|
+
],
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
149
|
return this._platformData;
|
|
@@ -196,12 +196,9 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
|
|
|
196
196
|
shell.cp("-R", path.join(frameworkDir, "*"), this.getPlatformData(projectData).projectRoot);
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
|
-
//TODO: plamen5kov: revisit this method, might have unnecessary/obsolete logic
|
|
200
199
|
interpolateData(projectData) {
|
|
201
200
|
return __awaiter(this, void 0, void 0, function* () {
|
|
202
201
|
const projectRootFilePath = path.join(this.getPlatformData(projectData).projectRoot, IOSProjectService.IOS_PROJECT_NAME_PLACEHOLDER);
|
|
203
|
-
// Starting with NativeScript for iOS 1.6.0, the project Info.plist file resides not in the platform project,
|
|
204
|
-
// but in the hello-world app template as a platform specific resource.
|
|
205
202
|
if (this.$fs.exists(path.join(projectRootFilePath, IOSProjectService.IOS_PROJECT_NAME_PLACEHOLDER + "-Info.plist"))) {
|
|
206
203
|
this.replaceFileName("-Info.plist", projectRootFilePath, projectData);
|
|
207
204
|
}
|
|
@@ -318,10 +315,8 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
|
|
|
318
315
|
}
|
|
319
316
|
addStaticLibrary(staticLibPath, projectData) {
|
|
320
317
|
return __awaiter(this, void 0, void 0, function* () {
|
|
321
|
-
// Copy files to lib folder.
|
|
322
318
|
const libraryName = path.basename(staticLibPath, ".a");
|
|
323
319
|
const headersSubpath = path.join(path.dirname(staticLibPath), "include", libraryName);
|
|
324
|
-
// Add static library to project file and setup header search paths
|
|
325
320
|
const project = this.createPbxProj(projectData);
|
|
326
321
|
const relativeStaticLibPath = this.getLibSubpathRelativeToProjectPath(staticLibPath, projectData);
|
|
327
322
|
project.addFramework(relativeStaticLibPath);
|
|
@@ -390,12 +385,10 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
|
|
|
390
385
|
this.$fs.deleteDirectory(platformsAppResourcesPath);
|
|
391
386
|
this.$fs.ensureDirectoryExists(platformsAppResourcesPath);
|
|
392
387
|
const platformAppResourcesPath = path.join(projectAppResourcesPath, platformData.normalizedPlatformName);
|
|
393
|
-
// this allows App_Resources/visionOS
|
|
394
388
|
if (this.$fs.exists(platformAppResourcesPath)) {
|
|
395
389
|
this.$fs.copyFile(path.join(platformAppResourcesPath, "*"), platformsAppResourcesPath);
|
|
396
390
|
}
|
|
397
391
|
else {
|
|
398
|
-
// otherwise falls back to App_Resources/iOS
|
|
399
392
|
this.$fs.copyFile(path.join(projectAppResourcesPath, this.$devicePlatformsConstants.iOS, "*"), platformsAppResourcesPath);
|
|
400
393
|
}
|
|
401
394
|
this.$fs.deleteFile(path.join(platformsAppResourcesPath, platformData.configurationFileName));
|
|
@@ -542,10 +535,6 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
|
|
|
542
535
|
const projectPodfilePath = this.$cocoapodsService.getProjectPodfilePath(platformData.projectRoot);
|
|
543
536
|
if (this.$fs.exists(projectPodfilePath)) {
|
|
544
537
|
yield this.$cocoapodsService.executePodInstall(platformData.projectRoot, this.$xcprojService.getXcodeprojPath(projectData, platformData.projectRoot));
|
|
545
|
-
// The `pod install` command adds a new target to the .pbxproject. This target adds additional build phases to Xcode project.
|
|
546
|
-
// Some of these phases relies on env variables (like PODS_PODFILE_DIR_PATH or PODS_ROOT).
|
|
547
|
-
// These variables are produced from merge of pod's xcconfig file and project's xcconfig file.
|
|
548
|
-
// So the correct order is `pod install` to be executed before merging pod's xcconfig file.
|
|
549
538
|
yield this.$cocoapodsService.mergePodXcconfigFile(projectData, platformData, opts);
|
|
550
539
|
}
|
|
551
540
|
yield this.$spmService.applySPMPackages(platformData, projectData);
|
|
@@ -560,7 +549,6 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
|
|
|
560
549
|
const hasProvision = provision !== undefined;
|
|
561
550
|
const hasTeamId = teamId !== undefined;
|
|
562
551
|
if (hasProvision || hasTeamId) {
|
|
563
|
-
// Check if the native project's signing is set to the provided provision...
|
|
564
552
|
const pbxprojPath = this.getPbxProjPath(projectData);
|
|
565
553
|
if (this.$fs.exists(pbxprojPath)) {
|
|
566
554
|
const xcode = this.$pbxprojDomXcode.Xcode.open(pbxprojPath);
|
|
@@ -576,9 +564,6 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
|
|
|
576
564
|
}
|
|
577
565
|
}
|
|
578
566
|
else {
|
|
579
|
-
// Specifying provisioning profile requires "Manual" signing style.
|
|
580
|
-
// If the current signing style was not "Manual" it was probably "Automatic" or,
|
|
581
|
-
// it was not uniform for the debug and release build configurations.
|
|
582
567
|
changesInfo.signingChanged = true;
|
|
583
568
|
}
|
|
584
569
|
}
|
|
@@ -592,8 +577,6 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
|
|
|
592
577
|
}
|
|
593
578
|
}
|
|
594
579
|
else {
|
|
595
|
-
// Specifying team id or name requires "Automatic" signing style.
|
|
596
|
-
// If the current signing style was not "Automatic" it was probably "Manual".
|
|
597
580
|
changesInfo.signingChanged = true;
|
|
598
581
|
}
|
|
599
582
|
}
|
|
@@ -812,14 +795,10 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
|
|
|
812
795
|
}
|
|
813
796
|
for (const pluginsXcconfigFilePath of pluginsXcconfigFilePaths) {
|
|
814
797
|
if (!this.$fs.exists(pluginsXcconfigFilePath)) {
|
|
815
|
-
// We need the pluginsXcconfig file to exist in platforms dir as it is required in the native template:
|
|
816
|
-
// https://github.com/NativeScript/ios-runtime/blob/9c2b7b5f70b9bee8452b7a24aa6b646214c7d2be/build/project-template/__PROJECT_NAME__/build-debug.xcconfig#L3
|
|
817
|
-
// From Xcode 10 in case the file is missing, this include fails and the build itself fails (was a warning in previous Xcode versions).
|
|
818
798
|
this.$fs.writeFile(pluginsXcconfigFilePath, "");
|
|
819
799
|
}
|
|
820
800
|
}
|
|
821
801
|
for (const pluginsXcconfigFilePath of pluginsXcconfigFilePaths) {
|
|
822
|
-
// Set Entitlements Property to point to default file if not set explicitly by the user.
|
|
823
802
|
const entitlementsPropertyValue = this.$xcconfigService.readPropertyValue(pluginsXcconfigFilePath, constants.CODE_SIGN_ENTITLEMENTS);
|
|
824
803
|
if (entitlementsPropertyValue === null &&
|
|
825
804
|
this.$fs.exists(this.$iOSEntitlementsService.getPlatformsEntitlementsPath(projectData))) {
|
|
@@ -867,4 +846,3 @@ __decorate([
|
|
|
867
846
|
], IOSProjectService.prototype, "buildProject", null);
|
|
868
847
|
exports.IOSProjectService = IOSProjectService;
|
|
869
848
|
yok_1.injector.register("iOSProjectService", IOSProjectService);
|
|
870
|
-
//# sourceMappingURL=ios-project-service.js.map
|
|
@@ -145,8 +145,6 @@ class IOSProvisionService {
|
|
|
145
145
|
getDevelopmentTeams() {
|
|
146
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
147
147
|
const teams = {};
|
|
148
|
-
// NOTE: We are reading all provisioning profiles and collect team information from them.
|
|
149
|
-
// It would be better if we can check the Apple ID registered in Xcode and read the teams associated with it.
|
|
150
148
|
mobileprovision.provision.read().forEach((provision) => provision.TeamIdentifier &&
|
|
151
149
|
provision.TeamIdentifier.forEach((id) => {
|
|
152
150
|
if (!teams[provision.TeamName]) {
|
|
@@ -173,4 +171,3 @@ class IOSProvisionService {
|
|
|
173
171
|
}
|
|
174
172
|
exports.IOSProvisionService = IOSProvisionService;
|
|
175
173
|
yok_1.injector.register("iOSProvisionService", IOSProvisionService);
|
|
176
|
-
//# sourceMappingURL=ios-provision-service.js.map
|
|
@@ -74,4 +74,3 @@ IOSWatchAppService.WATCH_APP_IDENTIFIER = "watchkitapp";
|
|
|
74
74
|
IOSWatchAppService.WACTCH_EXTENSION_IDENTIFIER = "watchkitextension";
|
|
75
75
|
exports.IOSWatchAppService = IOSWatchAppService;
|
|
76
76
|
yok_1.injector.register("iOSWatchAppService", IOSWatchAppService);
|
|
77
|
-
//# sourceMappingURL=ios-watch-app-service.js.map
|
|
@@ -52,7 +52,6 @@ class IPService {
|
|
|
52
52
|
}
|
|
53
53
|
getIPAddressFromIpifyOrgAPI() {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
// https://www.ipify.org/
|
|
56
55
|
const ipifyOrgAPIEndpoint = "https://api.ipify.org";
|
|
57
56
|
let ipAddress = null;
|
|
58
57
|
try {
|
|
@@ -77,4 +76,3 @@ __decorate([
|
|
|
77
76
|
], IPService.prototype, "getCurrentIPv4Address", null);
|
|
78
77
|
exports.IPService = IPService;
|
|
79
78
|
yok_1.injector.register("ipService", IPService);
|
|
80
|
-
//# sourceMappingURL=ip-service.js.map
|
|
@@ -214,4 +214,3 @@ __decorate([
|
|
|
214
214
|
], ITMSTransporterService.prototype, "getITMSTransporterPath", null);
|
|
215
215
|
exports.ITMSTransporterService = ITMSTransporterService;
|
|
216
216
|
yok_1.injector.register("itmsTransporterService", ITMSTransporterService);
|
|
217
|
-
//# sourceMappingURL=itmstransporter-service.js.map
|
|
@@ -9,10 +9,8 @@ process.on("message", (data) => {
|
|
|
9
9
|
});
|
|
10
10
|
const KarmaServer = require(path.join(pathToKarma, "lib/server"));
|
|
11
11
|
const karma = new KarmaServer(data.karmaConfig, (exitCode) => {
|
|
12
|
-
// Exit with the correct exit code and signal the manager process.
|
|
13
12
|
process.exit(exitCode);
|
|
14
13
|
});
|
|
15
14
|
karma.start();
|
|
16
15
|
}
|
|
17
16
|
});
|
|
18
|
-
//# sourceMappingURL=karma-execution.js.map
|