nativescript 9.1.0-alpha.14 → 9.1.0-alpha.16
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/docs/build-jekyll-md.sh +1 -1
- package/docs/man_pages/config/config-set.md +2 -0
- 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 +3 -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 +2 -6
- package/lib/commands/deploy.js +3 -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 +5 -5
- 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 +3 -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 +0 -18
- 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 +3 -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 +14 -12
- package/lib/common/declarations.d.ts +37 -117
- package/lib/common/decorators.js +0 -48
- package/lib/common/definitions/key-commands.js +8 -0
- package/lib/common/dispatchers.js +1 -10
- package/lib/common/enums.js +42 -0
- package/lib/common/errors.js +4 -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 -9
- 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/analytics/google-analytics-custom-dimensions.js +13 -0
- package/lib/common/services/auto-completion-service.js +1 -13
- package/lib/common/services/cancellation.js +2 -2
- package/lib/common/services/commands-service.js +8 -17
- package/lib/common/services/help-service.js +4 -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 +2 -8
- package/lib/common/yok.js +12 -32
- package/lib/config.js +1 -22
- package/lib/constants-provider.js +0 -1
- package/lib/constants.js +54 -58
- 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 +2 -9
- package/lib/controllers/prepare-controller.js +8 -24
- package/lib/controllers/run-controller.js +1 -81
- 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/definitions/project.d.ts +1 -6
- package/lib/definitions/system-warnings.js +8 -0
- package/lib/detached-processes/cleanup-js-subprocess.js +3 -8
- package/lib/detached-processes/cleanup-process.js +15 -18
- package/lib/detached-processes/detached-process-enums.js +24 -0
- package/lib/detached-processes/file-log-service.js +2 -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 +3 -4
- package/lib/helpers/livesync-command-helper.js +2 -4
- package/lib/helpers/network-connectivity-validator.js +0 -1
- package/lib/helpers/options-track-helper.js +4 -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 +3 -3
- package/lib/key-commands/index.js +5 -5
- package/lib/nativescript-cli-lib-bootstrap.js +0 -4
- package/lib/nativescript-cli-lib.js +0 -1
- package/lib/nativescript-cli.js +2 -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 +121 -145
- 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 +8 -10
- package/lib/services/analytics/analytics-broker.js +2 -2
- package/lib/services/analytics/analytics-service.js +29 -29
- package/lib/services/analytics/google-analytics-provider.js +16 -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 +13 -11
- 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 +26 -157
- package/lib/services/bundler/bundler.js +0 -1
- package/lib/services/cleanup-service.js +10 -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 +2 -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 +10 -120
- package/lib/services/ios/xcodebuild-args-service.js +0 -29
- package/lib/services/ios/xcodebuild-command-service.js +0 -3
- 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 +5 -6
- package/lib/services/ios-project-service.js +7 -133
- package/lib/services/ios-provision-service.js +0 -3
- package/lib/services/ios-watch-app-service.js +10 -60
- 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 -55
- 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 +10 -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 +2 -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 +3 -5
- package/lib/services/platform-environment-requirements.js +4 -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 +3 -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 +5 -6
- package/lib/services/watch-ignore-list-service.js +0 -1
- package/lib/services/xcconfig-service.js +45 -12
- package/lib/services/xcproj-service.js +0 -1
- package/lib/shared-event-bus.js +0 -6
- package/lib/sys-info.js +2 -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 +9 -20
- package/lib/.d.ts +0 -504
- package/lib/common/definitions/key-commands.d.ts +0 -62
- package/lib/common/services/analytics/google-analytics-custom-dimensions.d.ts +0 -16
- package/lib/definitions/system-warnings.d.ts +0 -4
- package/lib/detached-processes/detached-process-enums.d.ts +0 -70
- package/lib/services/analytics/google-analytics-cross-client-custom-dimensions.d.ts +0 -6
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DoctorAndroidCommand = exports.DoctorIosCommand = exports.DoctorCommand = void 0;
|
|
4
4
|
const yok_1 = require("../yok");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
5
6
|
class DoctorCommand {
|
|
6
7
|
constructor($doctorService, $projectHelper) {
|
|
7
8
|
this.$doctorService = $doctorService;
|
|
@@ -29,7 +30,7 @@ class DoctorIosCommand {
|
|
|
29
30
|
trackResult: false,
|
|
30
31
|
projectDir: this.$projectHelper.projectDir,
|
|
31
32
|
forceCheck: true,
|
|
32
|
-
platform:
|
|
33
|
+
platform: constants_1.PlatformTypes.ios,
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
36
|
}
|
|
@@ -46,10 +47,9 @@ class DoctorAndroidCommand {
|
|
|
46
47
|
trackResult: false,
|
|
47
48
|
projectDir: this.$projectHelper.projectDir,
|
|
48
49
|
forceCheck: true,
|
|
49
|
-
platform:
|
|
50
|
+
platform: constants_1.PlatformTypes.android,
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
exports.DoctorAndroidCommand = DoctorAndroidCommand;
|
|
54
55
|
yok_1.injector.registerCommand("doctor|android", DoctorAndroidCommand);
|
|
55
|
-
//# sourceMappingURL=doctor.js.map
|
|
@@ -32,4 +32,3 @@ exports.GenerateMessages = GenerateMessages;
|
|
|
32
32
|
GenerateMessages.MESSAGES_DEFINITIONS_FILE_NAME = "messages.interface.d.ts";
|
|
33
33
|
GenerateMessages.MESSAGES_IMPLEMENTATION_FILE_NAME = "messages.ts";
|
|
34
34
|
yok_1.injector.registerCommand("dev-generate-messages", GenerateMessages);
|
|
35
|
-
//# sourceMappingURL=generate-messages.js.map
|
|
@@ -6,16 +6,12 @@ const helpers_1 = require("../helpers");
|
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
7
|
const yok_1 = require("../yok");
|
|
8
8
|
class PreUninstallCommand {
|
|
9
|
-
constructor($analyticsService, $extensibilityService, $fs,
|
|
10
|
-
// private $opener: IOpener,
|
|
11
|
-
$packageInstallationManager, $settingsService) {
|
|
9
|
+
constructor($analyticsService, $extensibilityService, $fs, $packageInstallationManager, $settingsService) {
|
|
12
10
|
this.$analyticsService = $analyticsService;
|
|
13
11
|
this.$extensibilityService = $extensibilityService;
|
|
14
12
|
this.$fs = $fs;
|
|
15
13
|
this.$packageInstallationManager = $packageInstallationManager;
|
|
16
14
|
this.$settingsService = $settingsService;
|
|
17
|
-
// disabled for now (6/24/2020)
|
|
18
|
-
// private static FEEDBACK_FORM_URL = "https://www.nativescript.org/uninstall-feedback";
|
|
19
15
|
this.allowedParameters = [];
|
|
20
16
|
}
|
|
21
17
|
async execute(args) {
|
|
@@ -28,7 +24,7 @@ class PreUninstallCommand {
|
|
|
28
24
|
/^unlink$/,
|
|
29
25
|
]);
|
|
30
26
|
await this.$analyticsService.trackEventActionInGoogleAnalytics({
|
|
31
|
-
action:
|
|
27
|
+
action: constants_1.TrackActionNames.UninstallCLI,
|
|
32
28
|
additionalData: `isIntentionalUninstall${constants_1.AnalyticsEventLabelDelimiter}${isIntentionalUninstall}${constants_1.AnalyticsEventLabelDelimiter}isInteractive${constants_1.AnalyticsEventLabelDelimiter}${!!(0, helpers_1.isInteractive)()}`,
|
|
33
29
|
});
|
|
34
30
|
if (isIntentionalUninstall) {
|
|
@@ -43,13 +39,8 @@ class PreUninstallCommand {
|
|
|
43
39
|
await this.handleFeedbackForm();
|
|
44
40
|
}
|
|
45
41
|
async handleFeedbackForm() {
|
|
46
|
-
// disabled for now (6/24/2020)
|
|
47
|
-
// if (isInteractive()) {
|
|
48
|
-
// this.$opener.open(PreUninstallCommand.FEEDBACK_FORM_URL);
|
|
49
|
-
// }
|
|
50
42
|
return Promise.resolve();
|
|
51
43
|
}
|
|
52
44
|
}
|
|
53
45
|
exports.PreUninstallCommand = PreUninstallCommand;
|
|
54
46
|
yok_1.injector.registerCommand("dev-preuninstall", PreUninstallCommand);
|
|
55
|
-
//# sourceMappingURL=preuninstall.js.map
|
|
@@ -12,10 +12,7 @@ class ProxyCommandBase {
|
|
|
12
12
|
}
|
|
13
13
|
async tryTrackUsage() {
|
|
14
14
|
try {
|
|
15
|
-
// TODO(Analytics): Check why we have set the `disableAnalytics` to true and we track the command as separate one
|
|
16
|
-
// instead of tracking it through the commandsService.
|
|
17
15
|
this.$logger.trace(this.commandName);
|
|
18
|
-
// await this.$analyticsService.trackFeature(this.commandName);
|
|
19
16
|
}
|
|
20
17
|
catch (ex) {
|
|
21
18
|
this.$logger.trace("Error in trying to track proxy command usage:");
|
|
@@ -24,4 +21,3 @@ class ProxyCommandBase {
|
|
|
24
21
|
}
|
|
25
22
|
}
|
|
26
23
|
exports.ProxyCommandBase = ProxyCommandBase;
|
|
27
|
-
//# sourceMappingURL=proxy-base.js.map
|
package/lib/common/common-lib.js
CHANGED
package/lib/common/constants.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SOCKET_CONNECTION_TIMEOUT_MS = exports.AndroidVirtualDevice = exports.ATTACH_REQUEST_EVENT_NAME = exports.DEBUGGER_PORT_FOUND_EVENT_NAME = exports.DEFAULT_CHUNK_SIZE = exports.HttpProtocolToPort = exports.HttpStatusCodes = exports.Proxy = exports.IOS_RELAY_NOTIFICATION_COMMAND_TYPE = exports.IOS_OBSERVE_NOTIFICATION_COMMAND_TYPE = exports.IOS_POST_NOTIFICATION_COMMAND_TYPE = exports.FileExtensions = exports.TNS_CORE_MODULES = exports.NODE_MODULES_DIR_NAME = exports.Configurations = exports.TARGET_FRAMEWORK_IDENTIFIERS = exports.FAIL_LIVESYNC_LOG_REGEX = exports.IOS_APP_CRASH_LOG_REG_EXP = exports.IOS_LOG_PREDICATE = exports.DEVICE_LOG_EVENT_NAME = exports.EmulatorDiscoveryNames = exports.DeviceDiscoveryEventNames = exports.HmrConstants = exports.LiveSyncPaths = exports.APPLE_VENDOR_NAME = exports.NOT_RUNNING_EMULATOR_STATUS = exports.RUNNING_EMULATOR_STATUS = exports.CONNECTED_STATUS = exports.UNREACHABLE_STATUS = exports.ERROR_NO_VALID_SUBCOMMAND_FORMAT = exports.ERROR_CANNOT_RESOLVE_DEVICE = exports.ERROR_NO_DEVICES_CANT_USE_IOS_SIMULATOR = exports.ERROR_CANT_USE_SIMULATOR = exports.ERROR_NO_DEVICES = exports.APP_RESOURCES_FOLDER_NAME = exports.DeviceTypes = exports.ProvisionType = void 0;
|
|
4
|
-
// enumeration taken from ProvisionType.cs
|
|
3
|
+
exports.SOCKET_CONNECTION_TIMEOUT_MS = exports.AndroidVirtualDevice = exports.ATTACH_REQUEST_EVENT_NAME = exports.DEBUGGER_PORT_FOUND_EVENT_NAME = exports.CommandsDelimiters = exports.DEFAULT_CHUNK_SIZE = exports.AnalyticsClients = exports.HttpProtocolToPort = exports.HttpStatusCodes = exports.Proxy = exports.IOS_RELAY_NOTIFICATION_COMMAND_TYPE = exports.IOS_OBSERVE_NOTIFICATION_COMMAND_TYPE = exports.IOS_POST_NOTIFICATION_COMMAND_TYPE = exports.FileExtensions = exports.TNS_CORE_MODULES = exports.NODE_MODULES_DIR_NAME = exports.Configurations = exports.TARGET_FRAMEWORK_IDENTIFIERS = exports.FAIL_LIVESYNC_LOG_REGEX = exports.IOS_APP_CRASH_LOG_REG_EXP = exports.IOS_LOG_PREDICATE = exports.DEVICE_LOG_EVENT_NAME = exports.EmulatorDiscoveryNames = exports.DeviceDiscoveryEventNames = exports.HmrConstants = exports.LiveSyncPaths = exports.APPLE_VENDOR_NAME = exports.NOT_RUNNING_EMULATOR_STATUS = exports.RUNNING_EMULATOR_STATUS = exports.CONNECTED_STATUS = exports.UNREACHABLE_STATUS = exports.ERROR_NO_VALID_SUBCOMMAND_FORMAT = exports.ERROR_CANNOT_RESOLVE_DEVICE = exports.ERROR_NO_DEVICES_CANT_USE_IOS_SIMULATOR = exports.ERROR_CANT_USE_SIMULATOR = exports.ERROR_NO_DEVICES = exports.APP_RESOURCES_FOLDER_NAME = exports.DeviceTypes = exports.ProvisionType = void 0;
|
|
5
4
|
class ProvisionType {
|
|
6
5
|
}
|
|
7
6
|
exports.ProvisionType = ProvisionType;
|
|
@@ -83,9 +82,6 @@ Proxy.CACHE_FILE_NAME = "proxy-cache.json";
|
|
|
83
82
|
Proxy.USE_PROXY = "USE_PROXY";
|
|
84
83
|
Proxy.PROXY_PORT = "PROXY_PORT";
|
|
85
84
|
Proxy.PROXY_HOSTNAME = "PROXY_HOSTNAME";
|
|
86
|
-
/**
|
|
87
|
-
* Http status codes available from `require("http").STATUS_CODES`.
|
|
88
|
-
*/
|
|
89
85
|
class HttpStatusCodes {
|
|
90
86
|
}
|
|
91
87
|
exports.HttpStatusCodes = HttpStatusCodes;
|
|
@@ -98,7 +94,20 @@ exports.HttpProtocolToPort = {
|
|
|
98
94
|
"http:": 80,
|
|
99
95
|
"https:": 443,
|
|
100
96
|
};
|
|
97
|
+
var AnalyticsClients;
|
|
98
|
+
(function (AnalyticsClients) {
|
|
99
|
+
AnalyticsClients["Cli"] = "CLI";
|
|
100
|
+
AnalyticsClients["NonInteractive"] = "Non-interactive";
|
|
101
|
+
AnalyticsClients["Unknown"] = "Unknown";
|
|
102
|
+
})(AnalyticsClients || (exports.AnalyticsClients = AnalyticsClients = {}));
|
|
101
103
|
exports.DEFAULT_CHUNK_SIZE = 100;
|
|
104
|
+
var CommandsDelimiters;
|
|
105
|
+
(function (CommandsDelimiters) {
|
|
106
|
+
CommandsDelimiters["HierarchicalCommand"] = "|";
|
|
107
|
+
CommandsDelimiters["DefaultCommandSymbol"] = "*";
|
|
108
|
+
CommandsDelimiters["DefaultHierarchicalCommand"] = "|*";
|
|
109
|
+
CommandsDelimiters["HooksCommand"] = "-";
|
|
110
|
+
})(CommandsDelimiters || (exports.CommandsDelimiters = CommandsDelimiters = {}));
|
|
102
111
|
exports.DEBUGGER_PORT_FOUND_EVENT_NAME = "DEBUGGER_PORT_FOUND";
|
|
103
112
|
exports.ATTACH_REQUEST_EVENT_NAME = "ATTACH_REQUEST";
|
|
104
113
|
class AndroidVirtualDevice {
|
|
@@ -111,13 +120,7 @@ AndroidVirtualDevice.INI_FILES_MASK = /^(.*)\.ini$/i;
|
|
|
111
120
|
AndroidVirtualDevice.AVD_FILES_MASK = /^(.*)\.avd$/i;
|
|
112
121
|
AndroidVirtualDevice.MIN_ANDROID_APILEVEL = 17;
|
|
113
122
|
AndroidVirtualDevice.MIN_ANDROID_VERSION = "4.2";
|
|
114
|
-
/**
|
|
115
|
-
* The message that is printed from `avdmanager list avds`
|
|
116
|
-
*/
|
|
117
123
|
AndroidVirtualDevice.AVAILABLE_AVDS_MESSAGE = "Available Android Virtual Devices:";
|
|
118
|
-
/**
|
|
119
|
-
* The delimiter between devices that is used from `avdmanager list avds`
|
|
120
|
-
*/
|
|
121
124
|
AndroidVirtualDevice.AVD_LIST_DELIMITER = "---------";
|
|
122
125
|
AndroidVirtualDevice.CONFIG_INI_FILE_NAME = "config.ini";
|
|
123
126
|
AndroidVirtualDevice.INI_FILE_EXTENSION = ".ini";
|
|
@@ -130,4 +133,3 @@ AndroidVirtualDevice.TIMEOUT_SECONDS = 120;
|
|
|
130
133
|
AndroidVirtualDevice.GENYMOTION_DEFAULT_STDERR_STRING = "Logging activities to file";
|
|
131
134
|
AndroidVirtualDevice.UNABLE_TO_START_EMULATOR_MESSAGE = "Cannot run the app in the selected native emulator. Try to restart the adb server by running the `adb kill-server` command in the Command Prompt, or increase the allocated RAM of the virtual device through the Android Virtual Device manager. NativeScript CLI users can try to increase the timeout of the operation by adding the `--timeout` flag.";
|
|
132
135
|
exports.SOCKET_CONNECTION_TIMEOUT_MS = 30000;
|
|
133
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -35,10 +35,6 @@ interface IiTunesConnectApplicationType {
|
|
|
35
35
|
* Their values are the names of the methods in universnal-analytics that have to be called to track this type of data.
|
|
36
36
|
* Also known as Hit Type: https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#t
|
|
37
37
|
*/
|
|
38
|
-
declare const enum GoogleAnalyticsDataType {
|
|
39
|
-
Page = "pageview",
|
|
40
|
-
Event = "event",
|
|
41
|
-
}
|
|
42
38
|
|
|
43
39
|
/**
|
|
44
40
|
* Descibes iTunes Connect applications
|
|
@@ -170,7 +166,7 @@ declare module Server {
|
|
|
170
166
|
httpRequest(url: string): Promise<IResponse>;
|
|
171
167
|
httpRequest(
|
|
172
168
|
options: any,
|
|
173
|
-
proxySettings?: IProxySettings
|
|
169
|
+
proxySettings?: IProxySettings,
|
|
174
170
|
): Promise<IResponse>;
|
|
175
171
|
}
|
|
176
172
|
|
|
@@ -196,79 +192,14 @@ interface IShouldDispose {
|
|
|
196
192
|
/**
|
|
197
193
|
* Describes the type of data sent to analytics service.
|
|
198
194
|
*/
|
|
199
|
-
declare const enum TrackingTypes {
|
|
200
|
-
/**
|
|
201
|
-
* Defines that the data contains information for initialization of a new Analytics monitor.
|
|
202
|
-
*/
|
|
203
|
-
Initialization = "initialization",
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Defines that the data contains exception that should be tracked.
|
|
207
|
-
*/
|
|
208
|
-
Exception = "exception",
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Defines that the data contains the answer of the question if user allows to be tracked.
|
|
212
|
-
*/
|
|
213
|
-
AcceptTrackFeatureUsage = "acceptTrackFeatureUsage",
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* Defines data that will be tracked to Google Analytics.
|
|
217
|
-
*/
|
|
218
|
-
GoogleAnalyticsData = "googleAnalyticsData",
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Defines that the broker process should send all the pending information to Analytics.
|
|
222
|
-
* After that the process should send information it has finished tracking and die gracefully.
|
|
223
|
-
*/
|
|
224
|
-
FinishTracking = "FinishTracking",
|
|
225
|
-
}
|
|
226
195
|
|
|
227
196
|
/**
|
|
228
197
|
* Describes the status of the current Analytics status, i.e. has the user allowed to be tracked.
|
|
229
198
|
*/
|
|
230
|
-
declare const enum AnalyticsStatus {
|
|
231
|
-
/**
|
|
232
|
-
* User has allowed to be tracked.
|
|
233
|
-
*/
|
|
234
|
-
enabled = "enabled",
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* User has declined to be tracked.
|
|
238
|
-
*/
|
|
239
|
-
disabled = "disabled",
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* User has not been asked to allow feature and error tracking.
|
|
243
|
-
*/
|
|
244
|
-
notConfirmed = "not confirmed",
|
|
245
|
-
}
|
|
246
199
|
|
|
247
200
|
/**
|
|
248
201
|
* Describes types of options that manage -- flags.
|
|
249
202
|
*/
|
|
250
|
-
declare const enum OptionType {
|
|
251
|
-
/**
|
|
252
|
-
* String option
|
|
253
|
-
*/
|
|
254
|
-
String = "string",
|
|
255
|
-
/**
|
|
256
|
-
* Boolean option
|
|
257
|
-
*/
|
|
258
|
-
Boolean = "boolean",
|
|
259
|
-
/**
|
|
260
|
-
* Number option
|
|
261
|
-
*/
|
|
262
|
-
Number = "number",
|
|
263
|
-
/**
|
|
264
|
-
* Array option
|
|
265
|
-
*/
|
|
266
|
-
Array = "array",
|
|
267
|
-
/**
|
|
268
|
-
* Object option
|
|
269
|
-
*/
|
|
270
|
-
Object = "object",
|
|
271
|
-
}
|
|
272
203
|
|
|
273
204
|
/**
|
|
274
205
|
* Describes options that can be passed to fs.readFile method.
|
|
@@ -289,13 +220,13 @@ interface IFileSystem {
|
|
|
289
220
|
zipFiles(
|
|
290
221
|
zipFile: string,
|
|
291
222
|
files: string[],
|
|
292
|
-
zipPathCallback: (path: string) => string
|
|
223
|
+
zipPathCallback: (path: string) => string,
|
|
293
224
|
): Promise<void>;
|
|
294
225
|
unzip(
|
|
295
226
|
zipFile: string,
|
|
296
227
|
destinationDir: string,
|
|
297
228
|
options?: { overwriteExisitingFiles?: boolean; caseSensitive?: boolean },
|
|
298
|
-
fileFilters?: string[]
|
|
229
|
+
fileFilters?: string[],
|
|
299
230
|
): Promise<void>;
|
|
300
231
|
|
|
301
232
|
/**
|
|
@@ -351,7 +282,7 @@ interface IFileSystem {
|
|
|
351
282
|
|
|
352
283
|
futureFromEvent(
|
|
353
284
|
eventEmitter: NodeJS.EventEmitter,
|
|
354
|
-
event: string
|
|
285
|
+
event: string,
|
|
355
286
|
): Promise<any>;
|
|
356
287
|
|
|
357
288
|
/**
|
|
@@ -424,7 +355,7 @@ interface IFileSystem {
|
|
|
424
355
|
filename: string,
|
|
425
356
|
data: any,
|
|
426
357
|
space?: string,
|
|
427
|
-
encoding?: string
|
|
358
|
+
encoding?: string,
|
|
428
359
|
): void;
|
|
429
360
|
|
|
430
361
|
/**
|
|
@@ -450,7 +381,7 @@ interface IFileSystem {
|
|
|
450
381
|
isEmptyDir(directoryPath: string): boolean;
|
|
451
382
|
|
|
452
383
|
isRelativePath(
|
|
453
|
-
path: string
|
|
384
|
+
path: string,
|
|
454
385
|
): boolean /* feels so lonely here, I don't have a Future */;
|
|
455
386
|
|
|
456
387
|
/**
|
|
@@ -523,7 +454,7 @@ interface IFileSystem {
|
|
|
523
454
|
start?: number;
|
|
524
455
|
end?: number;
|
|
525
456
|
highWaterMark?: number;
|
|
526
|
-
}
|
|
457
|
+
},
|
|
527
458
|
): NodeJS.ReadableStream;
|
|
528
459
|
createWriteStream(
|
|
529
460
|
path: string,
|
|
@@ -531,7 +462,7 @@ interface IFileSystem {
|
|
|
531
462
|
flags?: string;
|
|
532
463
|
encoding?: string;
|
|
533
464
|
string?: string;
|
|
534
|
-
}
|
|
465
|
+
},
|
|
535
466
|
): any;
|
|
536
467
|
|
|
537
468
|
/**
|
|
@@ -546,7 +477,10 @@ interface IFileSystem {
|
|
|
546
477
|
enumerateFilesInDirectorySync(
|
|
547
478
|
directoryPath: string,
|
|
548
479
|
filterCallback?: (file: string, stat: IFsStats) => boolean,
|
|
549
|
-
opts?: {
|
|
480
|
+
opts?: {
|
|
481
|
+
enumerateDirectories?: boolean;
|
|
482
|
+
includeEmptyDirectories?: boolean;
|
|
483
|
+
},
|
|
550
484
|
): string[];
|
|
551
485
|
|
|
552
486
|
/**
|
|
@@ -557,7 +491,7 @@ interface IFileSystem {
|
|
|
557
491
|
*/
|
|
558
492
|
getFileShasum(
|
|
559
493
|
fileName: string,
|
|
560
|
-
options?: { algorithm?: string; encoding?: "hex" | "base64" }
|
|
494
|
+
options?: { algorithm?: string; encoding?: "hex" | "base64" },
|
|
561
495
|
): Promise<string>;
|
|
562
496
|
|
|
563
497
|
// shell.js wrappers
|
|
@@ -626,7 +560,7 @@ interface IErrors {
|
|
|
626
560
|
failWithHelp(opts: IFailOptions, ...args: any[]): never;
|
|
627
561
|
beginCommand(
|
|
628
562
|
action: () => Promise<boolean>,
|
|
629
|
-
printCommandHelp: () => Promise<void
|
|
563
|
+
printCommandHelp: () => Promise<void>,
|
|
630
564
|
): Promise<boolean>;
|
|
631
565
|
verifyHeap(message: string): void;
|
|
632
566
|
printCallStack: boolean;
|
|
@@ -656,18 +590,6 @@ interface ICommandOptions {
|
|
|
656
590
|
disableCommandHelpSuggestion?: boolean;
|
|
657
591
|
}
|
|
658
592
|
|
|
659
|
-
declare const enum ErrorCodes {
|
|
660
|
-
UNCAUGHT = 120,
|
|
661
|
-
UNKNOWN = 127,
|
|
662
|
-
INVALID_ARGUMENT = 128,
|
|
663
|
-
RESOURCE_PROBLEM = 129,
|
|
664
|
-
KARMA_FAIL = 130,
|
|
665
|
-
UNHANDLED_REJECTION_FAILURE = 131,
|
|
666
|
-
DELETED_KILL_FILE = 132,
|
|
667
|
-
TESTS_INIT_REQUIRED = 133,
|
|
668
|
-
ALL_DEVICES_DISCONNECTED = 134,
|
|
669
|
-
}
|
|
670
|
-
|
|
671
593
|
interface IFutureDispatcher {
|
|
672
594
|
run(): void;
|
|
673
595
|
dispatch(action: () => Promise<void>): void;
|
|
@@ -691,33 +613,33 @@ interface IChildProcess extends NodeJS.EventEmitter {
|
|
|
691
613
|
exec(
|
|
692
614
|
command: string,
|
|
693
615
|
options?: any,
|
|
694
|
-
execOptions?: IExecOptions
|
|
616
|
+
execOptions?: IExecOptions,
|
|
695
617
|
): Promise<any>;
|
|
696
618
|
execFile<T>(command: string, args: string[]): Promise<T>;
|
|
697
619
|
spawn(
|
|
698
620
|
command: string,
|
|
699
621
|
args?: string[],
|
|
700
|
-
options?: any
|
|
622
|
+
options?: any,
|
|
701
623
|
): child_process.ChildProcess; // it returns child_process.ChildProcess you can safely cast to it
|
|
702
624
|
spawnFromEvent(
|
|
703
625
|
command: string,
|
|
704
626
|
args: string[],
|
|
705
627
|
event: string,
|
|
706
628
|
options?: any,
|
|
707
|
-
spawnFromEventOptions?: ISpawnFromEventOptions
|
|
629
|
+
spawnFromEventOptions?: ISpawnFromEventOptions,
|
|
708
630
|
): Promise<ISpawnResult>;
|
|
709
631
|
trySpawnFromCloseEvent(
|
|
710
632
|
command: string,
|
|
711
633
|
args: string[],
|
|
712
634
|
options?: any,
|
|
713
|
-
spawnFromEventOptions?: ISpawnFromEventOptions
|
|
635
|
+
spawnFromEventOptions?: ISpawnFromEventOptions,
|
|
714
636
|
): Promise<ISpawnResult>;
|
|
715
637
|
tryExecuteApplication(
|
|
716
638
|
command: string,
|
|
717
639
|
args: string[],
|
|
718
640
|
event: string,
|
|
719
641
|
errorMessage: string,
|
|
720
|
-
condition?: (childProcess: any) => boolean
|
|
642
|
+
condition?: (childProcess: any) => boolean,
|
|
721
643
|
): Promise<any>;
|
|
722
644
|
/**
|
|
723
645
|
* This is a special case of the child_process.spawn() functionality for spawning Node.js processes.
|
|
@@ -739,7 +661,7 @@ interface IChildProcess extends NodeJS.EventEmitter {
|
|
|
739
661
|
silent?: boolean;
|
|
740
662
|
uid?: number;
|
|
741
663
|
gid?: number;
|
|
742
|
-
}
|
|
664
|
+
},
|
|
743
665
|
): any;
|
|
744
666
|
}
|
|
745
667
|
|
|
@@ -781,7 +703,7 @@ interface IAnalyticsService {
|
|
|
781
703
|
getStatusMessage(
|
|
782
704
|
settingName: string,
|
|
783
705
|
jsonFormat: boolean,
|
|
784
|
-
readableSettingName: string
|
|
706
|
+
readableSettingName: string,
|
|
785
707
|
): Promise<string>;
|
|
786
708
|
isEnabled(settingName: string): Promise<boolean>;
|
|
787
709
|
finishTracking(): Promise<void>;
|
|
@@ -828,7 +750,7 @@ interface IPrompterOptions extends IAllowEmpty {
|
|
|
828
750
|
type IPrompterAnswers<T extends string = string> = { [id in T]: any };
|
|
829
751
|
|
|
830
752
|
interface IPrompterQuestion<
|
|
831
|
-
T extends IPrompterAnswers<any> = IPrompterAnswers<any
|
|
753
|
+
T extends IPrompterAnswers<any> = IPrompterAnswers<any>,
|
|
832
754
|
> {
|
|
833
755
|
type?: string;
|
|
834
756
|
name?: string;
|
|
@@ -839,7 +761,7 @@ interface IPrompterQuestion<
|
|
|
839
761
|
filter?(input: any, answers: T): any;
|
|
840
762
|
validate?(
|
|
841
763
|
input: any,
|
|
842
|
-
answers?: T
|
|
764
|
+
answers?: T,
|
|
843
765
|
): boolean | string | Promise<boolean | string>;
|
|
844
766
|
}
|
|
845
767
|
|
|
@@ -906,11 +828,11 @@ interface IHooksService {
|
|
|
906
828
|
hookArgsName: string;
|
|
907
829
|
executeBeforeHooks(
|
|
908
830
|
commandName: string,
|
|
909
|
-
hookArguments?: IDictionary<any
|
|
831
|
+
hookArguments?: IDictionary<any>,
|
|
910
832
|
): Promise<void>;
|
|
911
833
|
executeAfterHooks(
|
|
912
834
|
commandName: string,
|
|
913
|
-
hookArguments?: IDictionary<any
|
|
835
|
+
hookArguments?: IDictionary<any>,
|
|
914
836
|
): Promise<void>;
|
|
915
837
|
}
|
|
916
838
|
|
|
@@ -938,9 +860,7 @@ interface IRejectUnauthorized {
|
|
|
938
860
|
* Proxy settings required for http request.
|
|
939
861
|
*/
|
|
940
862
|
interface IProxySettings
|
|
941
|
-
extends IRejectUnauthorized,
|
|
942
|
-
ICredentials,
|
|
943
|
-
IProxySettingsBase {
|
|
863
|
+
extends IRejectUnauthorized, ICredentials, IProxySettingsBase {
|
|
944
864
|
/**
|
|
945
865
|
* Hostname of the machine used for proxy.
|
|
946
866
|
*/
|
|
@@ -1077,7 +997,7 @@ interface ISystemWarning {
|
|
|
1077
997
|
|
|
1078
998
|
interface ISysInfo {
|
|
1079
999
|
getSysInfo(
|
|
1080
|
-
config?: NativeScriptDoctor.ISysInfoConfig
|
|
1000
|
+
config?: NativeScriptDoctor.ISysInfoConfig,
|
|
1081
1001
|
): Promise<NativeScriptDoctor.ISysInfoData>;
|
|
1082
1002
|
/**
|
|
1083
1003
|
* Returns the currently installed version of Xcode.
|
|
@@ -1438,14 +1358,14 @@ interface IProjectFilesManager {
|
|
|
1438
1358
|
projectFilesPath: string,
|
|
1439
1359
|
excludedProjectDirsAndFiles?: string[],
|
|
1440
1360
|
filter?: (filePath: string, stat: IFsStats) => boolean,
|
|
1441
|
-
opts?: any
|
|
1361
|
+
opts?: any,
|
|
1442
1362
|
): string[];
|
|
1443
1363
|
/**
|
|
1444
1364
|
* Checks if the file is excluded
|
|
1445
1365
|
*/
|
|
1446
1366
|
isFileExcluded(
|
|
1447
1367
|
filePath: string,
|
|
1448
|
-
excludedProjectDirsAndFiles?: string[]
|
|
1368
|
+
excludedProjectDirsAndFiles?: string[],
|
|
1449
1369
|
): boolean;
|
|
1450
1370
|
/**
|
|
1451
1371
|
* Returns an object that maps every local file path to device file path
|
|
@@ -1456,7 +1376,7 @@ interface IProjectFilesManager {
|
|
|
1456
1376
|
projectFilesPath: string,
|
|
1457
1377
|
files: string[],
|
|
1458
1378
|
excludedProjectDirsAndFiles: string[],
|
|
1459
|
-
projectFilesConfig?: IProjectFilesConfig
|
|
1379
|
+
projectFilesConfig?: IProjectFilesConfig,
|
|
1460
1380
|
): Promise<Mobile.ILocalToDevicePathData[]>;
|
|
1461
1381
|
|
|
1462
1382
|
/**
|
|
@@ -1471,7 +1391,7 @@ interface IProjectFilesManager {
|
|
|
1471
1391
|
directoryPath: string,
|
|
1472
1392
|
platform: string,
|
|
1473
1393
|
projectFilesConfig?: IProjectFilesConfig,
|
|
1474
|
-
excludedDirs?: string[]
|
|
1394
|
+
excludedDirs?: string[],
|
|
1475
1395
|
): void;
|
|
1476
1396
|
}
|
|
1477
1397
|
|
|
@@ -1487,7 +1407,7 @@ interface IProjectFilesProvider {
|
|
|
1487
1407
|
filePath: string,
|
|
1488
1408
|
platform: string,
|
|
1489
1409
|
projectData: any,
|
|
1490
|
-
projectFilesConfig?: IProjectFilesConfig
|
|
1410
|
+
projectFilesConfig?: IProjectFilesConfig,
|
|
1491
1411
|
): string;
|
|
1492
1412
|
|
|
1493
1413
|
/**
|
|
@@ -1500,7 +1420,7 @@ interface IProjectFilesProvider {
|
|
|
1500
1420
|
getProjectFileInfo(
|
|
1501
1421
|
filePath: string,
|
|
1502
1422
|
platform: string,
|
|
1503
|
-
projectFilesConfig: IProjectFilesConfig
|
|
1423
|
+
projectFilesConfig: IProjectFilesConfig,
|
|
1504
1424
|
): IProjectFileInfo;
|
|
1505
1425
|
/**
|
|
1506
1426
|
* Parses file by removing platform or configuration from its name.
|
|
@@ -1510,7 +1430,7 @@ interface IProjectFilesProvider {
|
|
|
1510
1430
|
*/
|
|
1511
1431
|
getPreparedFilePath(
|
|
1512
1432
|
filePath: string,
|
|
1513
|
-
projectFilesConfig: IProjectFilesConfig
|
|
1433
|
+
projectFilesConfig: IProjectFilesConfig,
|
|
1514
1434
|
): string;
|
|
1515
1435
|
}
|
|
1516
1436
|
|
|
@@ -1612,7 +1532,7 @@ interface INet {
|
|
|
1612
1532
|
* @returns {boolean} true in case port is in LISTEN state, false otherwise.
|
|
1613
1533
|
*/
|
|
1614
1534
|
waitForPortToListen(
|
|
1615
|
-
waitForPortListenData: IWaitForPortListenData
|
|
1535
|
+
waitForPortListenData: IWaitForPortListenData,
|
|
1616
1536
|
): Promise<boolean>;
|
|
1617
1537
|
}
|
|
1618
1538
|
|
|
@@ -1680,7 +1600,7 @@ interface IiOSNotificationService {
|
|
|
1680
1600
|
awaitNotification(
|
|
1681
1601
|
deviceIdentifier: string,
|
|
1682
1602
|
socket: number,
|
|
1683
|
-
timeout: number
|
|
1603
|
+
timeout: number,
|
|
1684
1604
|
): Promise<string>;
|
|
1685
1605
|
|
|
1686
1606
|
/**
|
|
@@ -1693,7 +1613,7 @@ interface IiOSNotificationService {
|
|
|
1693
1613
|
postNotification(
|
|
1694
1614
|
deviceIdentifier: string,
|
|
1695
1615
|
notification: string,
|
|
1696
|
-
commandType?: string
|
|
1616
|
+
commandType?: string,
|
|
1697
1617
|
): Promise<number>;
|
|
1698
1618
|
}
|
|
1699
1619
|
|