nativescript 9.1.0-alpha.16 → 9.1.0-alpha.17
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/CHANGELOG.md +2571 -0
- package/bin/tns +65 -1
- package/config/config.json +2 -1
- package/config/test-deps-versions-generated.json +1 -1
- package/contracts/package.json +4 -0
- package/docs/man_pages/project/testing/build-android.md +1 -1
- package/lib/android-tools-info.d.ts +19 -0
- package/lib/base-package-manager.d.ts +28 -0
- package/lib/bootstrap.js +2 -1
- package/lib/bun-package-manager.d.ts +16 -0
- package/lib/color.d.ts +39 -0
- package/lib/commands/add-platform.d.ts +14 -0
- package/lib/commands/apple-login.d.ts +14 -0
- package/lib/commands/appstore-list.d.ts +21 -0
- package/lib/commands/appstore-upload.d.ts +25 -0
- package/lib/commands/build.d.ts +58 -0
- package/lib/commands/clean.d.ts +21 -0
- package/lib/commands/command-base.d.ts +16 -0
- package/lib/commands/config.d.ts +30 -0
- package/lib/commands/create-project.d.ts +42 -0
- package/lib/commands/debug.d.ts +53 -0
- package/lib/commands/deploy.d.ts +32 -0
- package/lib/commands/embedding/embed.d.ts +27 -0
- package/lib/commands/extensibility/install-extension.d.ts +10 -0
- package/lib/commands/extensibility/list-extensions.d.ts +9 -0
- package/lib/commands/extensibility/uninstall-extension.d.ts +10 -0
- package/lib/commands/fonts.d.ts +12 -0
- package/lib/commands/generate-assets.d.ts +29 -0
- package/lib/commands/generate-help.d.ts +8 -0
- package/lib/commands/generate.d.ts +12 -0
- package/lib/commands/hooks/common.d.ts +22 -0
- package/lib/commands/hooks/hooks-lock.d.ts +24 -0
- package/lib/commands/hooks/hooks.d.ts +17 -0
- package/lib/commands/info.d.ts +8 -0
- package/lib/commands/install.d.ts +25 -0
- package/lib/commands/list-platforms.d.ts +11 -0
- package/lib/commands/migrate.d.ts +13 -0
- package/lib/commands/native-add.d.ts +49 -0
- package/lib/commands/platform-clean.d.ts +17 -0
- package/lib/commands/plugin/add-plugin.d.ts +13 -0
- package/lib/commands/plugin/build-plugin.d.ts +18 -0
- package/lib/commands/plugin/create-plugin.d.ts +30 -0
- package/lib/commands/plugin/list-plugins.d.ts +12 -0
- package/lib/commands/plugin/remove-plugin.d.ts +14 -0
- package/lib/commands/plugin/update-plugin.d.ts +13 -0
- package/lib/commands/post-install.d.ts +16 -0
- package/lib/commands/prepare.d.ts +40 -0
- package/lib/commands/prepare.js +0 -5
- package/lib/commands/preview.d.ts +18 -0
- package/lib/commands/preview.js +1 -0
- package/lib/commands/remove-platform.d.ts +14 -0
- package/lib/commands/resources/resources-update.d.ts +13 -0
- package/lib/commands/run.d.ts +61 -0
- package/lib/commands/setup.d.ts +8 -0
- package/lib/commands/start.d.ts +9 -0
- package/lib/commands/typings.d.ts +22 -0
- package/lib/commands/update-platform.d.ts +17 -0
- package/lib/commands/update.d.ts +21 -0
- package/lib/commands/widget.d.ts +24 -0
- package/lib/commands/widget.js +0 -1
- package/lib/common/child-process.d.ts +17 -0
- package/lib/common/codeGeneration/code-entity.d.ts +22 -0
- package/lib/common/codeGeneration/code-printer.d.ts +10 -0
- package/lib/common/command-params.d.ts +14 -0
- package/lib/common/commands/analytics.d.ts +30 -0
- package/lib/common/commands/autocompletion.d.ts +35 -0
- package/lib/common/commands/device/device-log-stream.d.ts +16 -0
- package/lib/common/commands/device/get-file.d.ts +14 -0
- package/lib/common/commands/device/list-applications.d.ts +10 -0
- package/lib/common/commands/device/list-devices.d.ts +16 -0
- package/lib/common/commands/device/list-files.d.ts +14 -0
- package/lib/common/commands/device/put-file.d.ts +14 -0
- package/lib/common/commands/device/run-application.d.ts +13 -0
- package/lib/common/commands/device/stop-application.d.ts +10 -0
- package/lib/common/commands/device/uninstall-application.d.ts +10 -0
- package/lib/common/commands/doctor.d.ts +23 -0
- package/lib/common/commands/generate-messages.d.ts +13 -0
- package/lib/common/commands/help.d.ts +14 -0
- package/lib/common/commands/package-manager-get.d.ts +10 -0
- package/lib/common/commands/package-manager-set.d.ts +11 -0
- package/lib/common/commands/post-install.d.ts +9 -0
- package/lib/common/commands/preuninstall.d.ts +16 -0
- package/lib/common/commands/proxy/proxy-base.d.ts +13 -0
- package/lib/common/commands/proxy/proxy-clear.d.ts +9 -0
- package/lib/common/commands/proxy/proxy-get.d.ts +9 -0
- package/lib/common/commands/proxy/proxy-set.d.ts +23 -0
- package/lib/common/constants.d.ts +117 -0
- package/lib/common/contracts/command-registry.d.ts +35 -0
- package/lib/common/contracts/command-registry.js +16 -0
- package/lib/common/contracts/index.d.ts +5 -0
- package/lib/common/contracts/index.js +11 -0
- package/lib/common/contracts/key-command-registry.d.ts +7 -0
- package/lib/common/contracts/key-command-registry.js +16 -0
- package/lib/common/contracts/module-registry.d.ts +4 -0
- package/lib/common/contracts/module-registry.js +16 -0
- package/lib/common/contracts/public-api-builder.d.ts +5 -0
- package/lib/common/contracts/public-api-builder.js +16 -0
- package/lib/common/declarations.d.ts +12 -1
- package/lib/common/decorators.d.ts +13 -0
- package/lib/common/define-command.d.ts +53 -0
- package/lib/common/define-command.js +147 -0
- package/lib/common/define-hook.d.ts +29 -0
- package/lib/common/define-hook.js +101 -0
- package/lib/common/definitions/commands.d.ts +7 -0
- package/lib/common/definitions/extensibility.d.ts +7 -0
- package/lib/common/definitions/key-commands.d.ts +25 -0
- package/lib/common/definitions/yok.d.ts +43 -35
- package/lib/common/deprecation.d.ts +12 -0
- package/lib/common/deprecation.js +56 -0
- package/lib/common/di/contract.d.ts +7 -0
- package/lib/common/di/contract.js +34 -0
- package/lib/common/di/forward-ref.d.ts +2 -0
- package/lib/common/di/forward-ref.js +15 -0
- package/lib/common/di/index.d.ts +8 -0
- package/lib/common/di/index.js +19 -0
- package/lib/common/di/inject.d.ts +8 -0
- package/lib/common/di/inject.js +41 -0
- package/lib/common/di/injector.d.ts +38 -0
- package/lib/common/di/injector.js +268 -0
- package/lib/common/di/providers.d.ts +30 -0
- package/lib/common/di/providers.js +7 -0
- package/lib/common/dispatchers.d.ts +21 -0
- package/lib/common/enums.d.ts +34 -0
- package/lib/common/errors.d.ts +15 -0
- package/lib/common/file-system.d.ts +77 -0
- package/lib/common/header.d.ts +1 -0
- package/lib/common/helpers.d.ts +62 -0
- package/lib/common/helpers.js +3 -3
- package/lib/common/host-info.d.ts +24 -0
- package/lib/common/http-client.d.ts +14 -0
- package/lib/common/http-client.js +11 -0
- package/lib/common/logger/appenders/cli-appender.d.ts +2 -0
- package/lib/common/logger/appenders/emit-appender.d.ts +5 -0
- package/lib/common/logger/layouts/cli-layout.d.ts +2 -0
- package/lib/common/logger/logger.d.ts +24 -0
- package/lib/common/messages/messages.d.ts +7 -0
- package/lib/common/mobile/android/android-application-manager.d.ts +31 -0
- package/lib/common/mobile/android/android-debug-bridge-result-handler.d.ts +9 -0
- package/lib/common/mobile/android/android-debug-bridge.d.ts +24 -0
- package/lib/common/mobile/android/android-device-file-system.d.ts +26 -0
- package/lib/common/mobile/android/android-device-hash-service.d.ts +23 -0
- package/lib/common/mobile/android/android-device.d.ts +24 -0
- package/lib/common/mobile/android/android-emulator-services.d.ts +23 -0
- package/lib/common/mobile/android/android-ini-file-parser.d.ts +8 -0
- package/lib/common/mobile/android/android-log-filter.d.ts +11 -0
- package/lib/common/mobile/android/android-virtual-device-service.d.ts +37 -0
- package/lib/common/mobile/android/device-android-debug-bridge.d.ts +18 -0
- package/lib/common/mobile/android/genymotion/genymotion-service.d.ts +26 -0
- package/lib/common/mobile/android/genymotion/virtualbox-service.d.ts +13 -0
- package/lib/common/mobile/android/logcat-helper.d.ts +17 -0
- package/lib/common/mobile/application-manager-base.d.ts +27 -0
- package/lib/common/mobile/device-emitter.d.ts +8 -0
- package/lib/common/mobile/device-log-emitter.d.ts +9 -0
- package/lib/common/mobile/device-log-provider-base.d.ts +21 -0
- package/lib/common/mobile/device-log-provider.d.ts +21 -0
- package/lib/common/mobile/device-platforms-constants.d.ts +8 -0
- package/lib/common/mobile/emulator-helper.d.ts +32 -0
- package/lib/common/mobile/ios/device/ios-application-manager.d.ts +27 -0
- package/lib/common/mobile/ios/device/ios-device-file-system.d.ts +19 -0
- package/lib/common/mobile/ios/device/ios-device-operations.d.ts +29 -0
- package/lib/common/mobile/ios/device/ios-device.d.ts +32 -0
- package/lib/common/mobile/ios/ios-device-base.d.ts +24 -0
- package/lib/common/mobile/ios/ios-log-filter.d.ts +6 -0
- package/lib/common/mobile/ios/simulator/ios-emulator-services.d.ts +1 -0
- package/lib/common/mobile/ios/simulator/ios-sim-resolver.d.ts +7 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.d.ts +27 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-device.d.ts +27 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-file-system.d.ts +16 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.d.ts +15 -0
- package/lib/common/mobile/local-to-device-path-data-factory.d.ts +3 -0
- package/lib/common/mobile/log-filter.d.ts +13 -0
- package/lib/common/mobile/logging-levels.d.ts +4 -0
- package/lib/common/mobile/mobile-core/android-device-discovery.d.ts +16 -0
- package/lib/common/mobile/mobile-core/android-emulator-discovery.d.ts +11 -0
- package/lib/common/mobile/mobile-core/android-process-service.d.ts +33 -0
- package/lib/common/mobile/mobile-core/device-discovery.d.ts +12 -0
- package/lib/common/mobile/mobile-core/devices-service.d.ts +99 -0
- package/lib/common/mobile/mobile-core/ios-device-discovery.d.ts +12 -0
- package/lib/common/mobile/mobile-core/ios-simulator-discovery.d.ts +20 -0
- package/lib/common/mobile/mobile-helper.d.ts +22 -0
- package/lib/common/mobile/wp8/wp8-emulator-services.d.ts +1 -0
- package/lib/common/opener.d.ts +4 -0
- package/lib/common/os-info.d.ts +7 -0
- package/lib/common/plist-parser.d.ts +5 -0
- package/lib/common/project-helper.d.ts +15 -0
- package/lib/common/prompter.d.ts +23 -0
- package/lib/common/queue.d.ts +8 -0
- package/lib/common/resource-loader.d.ts +10 -0
- package/lib/common/services/analytics/google-analytics-custom-dimensions.d.ts +9 -0
- package/lib/common/services/auto-completion-service.d.ts +36 -0
- package/lib/common/services/cancellation.d.ts +1 -0
- package/lib/common/services/command-definition-adapter.d.ts +6 -0
- package/lib/common/services/command-definition-adapter.js +141 -0
- package/lib/common/services/commands-service.d.ts +30 -0
- package/lib/common/services/commands-service.js +2 -1
- package/lib/common/services/help-service.d.ts +46 -0
- package/lib/common/services/hooks-service.d.ts +40 -0
- package/lib/common/services/hooks-service.js +110 -51
- package/lib/common/services/ios-notification-service.d.ts +7 -0
- package/lib/common/services/json-file-settings-service.d.ts +24 -0
- package/lib/common/services/lock-service.d.ts +18 -0
- package/lib/common/services/message-contract-generator.d.ts +8 -0
- package/lib/common/services/messages-service.d.ts +15 -0
- package/lib/common/services/micro-templating-service.d.ts +12 -0
- package/lib/common/services/net-service.d.ts +13 -0
- package/lib/common/services/project-files-manager.d.ts +14 -0
- package/lib/common/services/project-files-provider-base.d.ts +12 -0
- package/lib/common/services/proxy-service.d.ts +12 -0
- package/lib/common/services/qr.d.ts +7 -0
- package/lib/common/services/settings-service.d.ts +10 -0
- package/lib/common/services/xcode-select-service.d.ts +12 -0
- package/lib/common/utils.d.ts +10 -0
- package/lib/common/validators/project-name-validator.d.ts +18 -0
- package/lib/common/validators/validation-result.d.ts +7 -0
- package/lib/common/verify-node-version.d.ts +3 -0
- package/lib/common/yok.d.ts +60 -0
- package/lib/common/yok.js +161 -133
- package/lib/config.d.ts +45 -0
- package/lib/config.js +2 -1
- package/lib/constants-provider.d.ts +4 -0
- package/lib/constants.d.ts +331 -0
- package/lib/constants.js +7 -2
- package/lib/contracts/doctor-service.d.ts +20 -0
- package/lib/contracts/doctor-service.js +16 -0
- package/lib/contracts/index.d.ts +14 -0
- package/lib/contracts/index.js +32 -0
- package/lib/contracts/project-name-service.d.ts +5 -0
- package/lib/contracts/project-name-service.js +16 -0
- package/lib/controllers/build-controller.d.ts +23 -0
- package/lib/controllers/debug-controller.d.ts +31 -0
- package/lib/controllers/deploy-controller.d.ts +7 -0
- package/lib/controllers/migrate-controller.d.ts +67 -0
- package/lib/controllers/platform-controller.d.ts +20 -0
- package/lib/controllers/prepare-controller.d.ts +45 -0
- package/lib/controllers/run-controller.d.ts +57 -0
- package/lib/controllers/update-controller-base.d.ts +27 -0
- package/lib/controllers/update-controller.d.ts +36 -0
- package/lib/data/build-data.d.ts +33 -0
- package/lib/data/controller-data-base.d.ts +8 -0
- package/lib/data/debug-data.d.ts +2 -0
- package/lib/data/platform-data.d.ts +7 -0
- package/lib/data/prepare-data.d.ts +22 -0
- package/lib/data/run-data.d.ts +6 -0
- package/lib/declarations.d.ts +2 -1
- package/lib/definitions/ios.d.ts +36 -1
- package/lib/definitions/system-warnings.d.ts +4 -0
- package/lib/detached-processes/cleanup-js-subprocess.d.ts +2 -0
- package/lib/detached-processes/cleanup-process.d.ts +1 -0
- package/lib/detached-processes/detached-process-enums.d.ts +18 -0
- package/lib/detached-processes/file-log-service.d.ts +7 -0
- package/lib/device-path-provider.d.ts +9 -0
- package/lib/device-sockets/ios/app-debug-socket-proxy-factory.d.ts +22 -0
- package/lib/device-sockets/ios/notification.d.ts +13 -0
- package/lib/device-sockets/ios/socket-request-executor.d.ts +11 -0
- package/lib/helpers/android-bundle-validator-helper.d.ts +18 -0
- package/lib/helpers/deploy-command-helper.d.ts +16 -0
- package/lib/helpers/key-command-helper.d.ts +13 -0
- package/lib/helpers/livesync-command-helper.d.ts +36 -0
- package/lib/helpers/network-connectivity-validator.d.ts +12 -0
- package/lib/helpers/options-track-helper.d.ts +14 -0
- package/lib/helpers/package-path-helper.d.ts +2 -0
- package/lib/helpers/platform-command-helper.d.ts +35 -0
- package/lib/helpers/version-validator-helper.d.ts +8 -0
- package/lib/key-commands/bootstrap.d.ts +1 -0
- package/lib/key-commands/index.d.ts +166 -0
- package/lib/nativescript-cli-lib-bootstrap.d.ts +1 -0
- package/lib/nativescript-cli-lib.d.ts +1 -0
- package/lib/nativescript-cli.d.ts +1 -0
- package/lib/node/pbxproj-dom-xcode.d.ts +4 -0
- package/lib/node/xcode.d.ts +2 -0
- package/lib/node-package-manager.d.ts +16 -0
- package/lib/options.d.ts +33 -0
- package/lib/options.js +70 -43
- package/lib/package-installation-manager.d.ts +30 -0
- package/lib/package-manager.d.ts +32 -0
- package/lib/platform-command-param.d.ts +10 -0
- package/lib/pnpm-package-manager.d.ts +16 -0
- package/lib/project-data.d.ts +58 -0
- package/lib/providers/project-files-provider.d.ts +12 -0
- package/lib/resolvers/livesync-service-resolver.d.ts +9 -0
- package/lib/services/analytics/analytics-broker-process.d.ts +1 -0
- package/lib/services/analytics/analytics-broker.d.ts +11 -0
- package/lib/services/analytics/analytics-service.d.ts +46 -0
- package/lib/services/analytics/google-analytics-provider.d.ts +22 -0
- package/lib/services/analytics/google-analytics-provider.js +84 -83
- package/lib/services/analytics-settings-service.d.ts +1 -0
- package/lib/services/android/android-bundle-tool-service.d.ts +27 -0
- package/lib/services/android/android-bundle-tool-service.js +102 -3
- package/lib/services/android/gradle-build-args-service.d.ts +17 -0
- package/lib/services/android/gradle-build-service.d.ts +12 -0
- package/lib/services/android/gradle-command-service.d.ts +11 -0
- package/lib/services/android-device-debug-service.d.ts +30 -0
- package/lib/services/android-plugin-build-service.d.ts +55 -0
- package/lib/services/android-project-service.d.ts +75 -0
- package/lib/services/android-resources-migration-service.d.ts +17 -0
- package/lib/services/apple-portal/apple-portal-application-service.d.ts +12 -0
- package/lib/services/apple-portal/apple-portal-cookie-service.d.ts +10 -0
- package/lib/services/apple-portal/apple-portal-session-service.d.ts +19 -0
- package/lib/services/apple-portal/srp/srp-wrapper.d.ts +29 -0
- package/lib/services/assets-generation/assets-generation-service.d.ts +24 -0
- package/lib/services/build-artifacts-service.d.ts +16 -0
- package/lib/services/build-data-service.d.ts +7 -0
- package/lib/services/build-info-file-service.d.ts +16 -0
- package/lib/services/bundler/bundler-compiler-service.d.ts +50 -0
- package/lib/services/bundler/bundler-compiler-service.js +2 -1
- package/lib/services/bundler/bundler.d.ts +75 -0
- package/lib/services/cleanup-service.d.ts +29 -0
- package/lib/services/cocoapods-platform-manager.d.ts +17 -0
- package/lib/services/cocoapods-service.d.ts +47 -0
- package/lib/services/debug-data-service.d.ts +7 -0
- package/lib/services/debug-service-base.d.ts +12 -0
- package/lib/services/device/device-install-app-service.d.ts +19 -0
- package/lib/services/doctor-service.d.ts +51 -0
- package/lib/services/doctor-service.js +14 -11
- package/lib/services/extensibility-service.d.ts +36 -0
- package/lib/services/extensibility-service.js +126 -5
- package/lib/services/files-hash-service.d.ts +17 -0
- package/lib/services/hmr-status-service.d.ts +19 -0
- package/lib/services/info-service.d.ts +6 -0
- package/lib/services/initialize-service.d.ts +8 -0
- package/lib/services/ios/export-options-plist-service.d.ts +13 -0
- package/lib/services/ios/ios-signing-service.d.ts +33 -0
- package/lib/services/ios/spm-pbxproj-service.d.ts +16 -0
- package/lib/services/ios/spm-pbxproj-service.js +234 -0
- package/lib/services/ios/spm-service.d.ts +35 -0
- package/lib/services/ios/spm-service.js +10 -19
- package/lib/services/ios/xcodebuild-args-service.d.ts +20 -0
- package/lib/services/ios/xcodebuild-command-service.d.ts +17 -0
- package/lib/services/ios/xcodebuild-service.d.ts +13 -0
- package/lib/services/ios-debugger-port-service.d.ts +20 -0
- package/lib/services/ios-device-debug-service.d.ts +29 -0
- package/lib/services/ios-entitlements-service.d.ts +19 -0
- package/lib/services/ios-entitlements-service.js +3 -3
- package/lib/services/ios-extensions-service.d.ts +12 -0
- package/lib/services/ios-log-filter.d.ts +11 -0
- package/lib/services/ios-native-target-service.d.ts +14 -0
- package/lib/services/ios-project-service.d.ts +108 -0
- package/lib/services/ios-project-service.js +2 -2
- package/lib/services/ios-provision-service.d.ts +18 -0
- package/lib/services/ios-watch-app-service.d.ts +39 -0
- package/lib/services/ios-watch-app-service.js +8 -15
- package/lib/services/ip-service.d.ts +10 -0
- package/lib/services/itmstransporter-service.d.ts +26 -0
- package/lib/services/karma-execution.d.ts +1 -0
- package/lib/services/livesync/android-device-livesync-service-base.d.ts +19 -0
- package/lib/services/livesync/android-device-livesync-service.d.ts +24 -0
- package/lib/services/livesync/android-device-livesync-sockets-service.d.ts +36 -0
- package/lib/services/livesync/android-livesync-service.d.ts +16 -0
- package/lib/services/livesync/android-livesync-tool.d.ts +58 -0
- package/lib/services/livesync/device-livesync-service-base.d.ts +13 -0
- package/lib/services/livesync/ios-device-livesync-service.d.ts +28 -0
- package/lib/services/livesync/ios-livesync-service.d.ts +17 -0
- package/lib/services/livesync/livesync-socket.d.ts +5 -0
- package/lib/services/livesync/platform-livesync-service-base.d.ts +25 -0
- package/lib/services/livesync-process-data-service.d.ts +10 -0
- package/lib/services/log-parser-service.d.ts +11 -0
- package/lib/services/log-source-map-service.d.ts +28 -0
- package/lib/services/marking-mode-service.d.ts +12 -0
- package/lib/services/metadata-filtering-service.d.ts +19 -0
- package/lib/services/npm-config-service.d.ts +7 -0
- package/lib/services/pacote-service.d.ts +16 -0
- package/lib/services/performance-service.d.ts +19 -0
- package/lib/services/platform/add-platform-service.d.ts +21 -0
- package/lib/services/platform/platform-validation-service.d.ts +17 -0
- package/lib/services/platform/prepare-native-platform-service.d.ts +15 -0
- package/lib/services/platform-environment-requirements.d.ts +15 -0
- package/lib/services/platform-project-service-base.d.ts +14 -0
- package/lib/services/platforms-data-service.d.ts +9 -0
- package/lib/services/plugins-service.d.ts +60 -0
- package/lib/services/prepare-data-service.d.ts +7 -0
- package/lib/services/project-backup-service.d.ts +12 -0
- package/lib/services/project-changes-service.d.ts +30 -0
- package/lib/services/project-cleanup-service.d.ts +13 -0
- package/lib/services/project-config-service.d.ts +33 -0
- package/lib/services/project-config-service.js +33 -11
- package/lib/services/project-data-service.d.ts +48 -0
- package/lib/services/project-name-service.d.ts +16 -0
- package/lib/services/project-name-service.js +4 -4
- package/lib/services/project-service.d.ts +34 -0
- package/lib/services/project-templates-service.d.ts +18 -0
- package/lib/services/qr-code-terminal-service.d.ts +5 -0
- package/lib/services/require-service.d.ts +3 -0
- package/lib/services/start-service.d.ts +30 -0
- package/lib/services/temp-service.d.ts +14 -0
- package/lib/services/terminal-spinner-service.d.ts +5 -0
- package/lib/services/test-execution-service.d.ts +26 -0
- package/lib/services/test-initialization-service.d.ts +10 -0
- package/lib/services/timeline-profiler-service.d.ts +18 -0
- package/lib/services/user-settings-service.d.ts +14 -0
- package/lib/services/versions-service.d.ts +5 -0
- package/lib/services/watch-ignore-list-service.d.ts +7 -0
- package/lib/services/xcconfig-service.d.ts +15 -0
- package/lib/services/xcproj-service.d.ts +1 -0
- package/lib/shared-event-bus.d.ts +1 -0
- package/lib/sys-info.d.ts +18 -0
- package/lib/tools/config-manipulation/config-transformer.d.ts +28 -0
- package/lib/tools/config-manipulation/config-transformer.js +15 -7
- package/lib/tools/node-modules/node-modules-builder.d.ts +9 -0
- package/lib/tools/node-modules/node-modules-dependencies-builder.d.ts +10 -0
- package/lib/tools/plist-merge/plist-session.d.ts +30 -0
- package/lib/tools/plist-merge/plist-session.js +92 -0
- package/lib/yarn-package-manager.d.ts +16 -0
- package/lib/yarn2-package-manager.d.ts +18 -0
- package/package.json +11 -107
- package/postinstall.js +7 -2
- package/node_modules/debug/LICENSE +0 -20
- package/node_modules/debug/README.md +0 -481
- package/node_modules/debug/package.json +0 -64
- package/node_modules/debug/src/browser.js +0 -272
- package/node_modules/debug/src/common.js +0 -292
- package/node_modules/debug/src/index.js +0 -10
- package/node_modules/debug/src/node.js +0 -263
- package/node_modules/ms/index.js +0 -162
- package/node_modules/ms/license.md +0 -21
- package/node_modules/ms/package.json +0 -38
- package/node_modules/ms/readme.md +0 -59
- package/node_modules/universal-analytics/.travis.yml +0 -11
- package/node_modules/universal-analytics/AcceptableParams.md +0 -757
- package/node_modules/universal-analytics/HISTORY.md +0 -170
- package/node_modules/universal-analytics/Makefile +0 -5
- package/node_modules/universal-analytics/README.md +0 -651
- package/node_modules/universal-analytics/index.js +0 -2
- package/node_modules/universal-analytics/lib/config.js +0 -171
- package/node_modules/universal-analytics/lib/index.js +0 -563
- package/node_modules/universal-analytics/lib/request.js +0 -73
- package/node_modules/universal-analytics/lib/utils.js +0 -29
- package/node_modules/universal-analytics/package.json +0 -33
- package/node_modules/universal-analytics/test/_enqueue.js +0 -144
- package/node_modules/universal-analytics/test/event.js +0 -346
- package/node_modules/universal-analytics/test/exception.js +0 -233
- package/node_modules/universal-analytics/test/index.js +0 -141
- package/node_modules/universal-analytics/test/item.js +0 -550
- package/node_modules/universal-analytics/test/middleware.js +0 -119
- package/node_modules/universal-analytics/test/mocha.opts +0 -3
- package/node_modules/universal-analytics/test/pageview.js +0 -286
- package/node_modules/universal-analytics/test/send.js +0 -232
- package/node_modules/universal-analytics/test/set.js +0 -68
- package/node_modules/universal-analytics/test/timing.js +0 -363
- package/node_modules/universal-analytics/test/transaction.js +0 -371
- package/node_modules/uuid/LICENSE.md +0 -9
- package/node_modules/uuid/README.md +0 -510
- package/node_modules/uuid/dist/cjs/index.d.ts +0 -15
- package/node_modules/uuid/dist/cjs/index.js +0 -31
- package/node_modules/uuid/dist/cjs/max.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/max.js +0 -3
- package/node_modules/uuid/dist/cjs/md5.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/md5.js +0 -13
- package/node_modules/uuid/dist/cjs/native.d.ts +0 -6
- package/node_modules/uuid/dist/cjs/native.js +0 -4
- package/node_modules/uuid/dist/cjs/nil.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/nil.js +0 -3
- package/node_modules/uuid/dist/cjs/package.json +0 -1
- package/node_modules/uuid/dist/cjs/parse.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/parse.js +0 -11
- package/node_modules/uuid/dist/cjs/regex.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/regex.js +0 -3
- package/node_modules/uuid/dist/cjs/rng.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/rng.js +0 -13
- package/node_modules/uuid/dist/cjs/sha1.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/sha1.js +0 -13
- package/node_modules/uuid/dist/cjs/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/cjs/stringify.js +0 -39
- package/node_modules/uuid/dist/cjs/types.d.ts +0 -21
- package/node_modules/uuid/dist/cjs/types.js +0 -2
- package/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
- package/node_modules/uuid/dist/cjs/v1.d.ts +0 -11
- package/node_modules/uuid/dist/cjs/v1.js +0 -87
- package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
- package/node_modules/uuid/dist/cjs/v3.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v3.js +0 -14
- package/node_modules/uuid/dist/cjs/v35.d.ts +0 -7
- package/node_modules/uuid/dist/cjs/v35.js +0 -41
- package/node_modules/uuid/dist/cjs/v4.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/v4.js +0 -29
- package/node_modules/uuid/dist/cjs/v5.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v5.js +0 -14
- package/node_modules/uuid/dist/cjs/v6.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/v6.js +0 -19
- package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
- package/node_modules/uuid/dist/cjs/v7.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v7.js +0 -69
- package/node_modules/uuid/dist/cjs/validate.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/validate.js +0 -7
- package/node_modules/uuid/dist/cjs/version.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/version.js +0 -10
- package/node_modules/uuid/dist/cjs-browser/index.d.ts +0 -15
- package/node_modules/uuid/dist/cjs-browser/index.js +0 -31
- package/node_modules/uuid/dist/cjs-browser/max.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/max.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/md5.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
- package/node_modules/uuid/dist/cjs-browser/native.d.ts +0 -4
- package/node_modules/uuid/dist/cjs-browser/native.js +0 -4
- package/node_modules/uuid/dist/cjs-browser/nil.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/package.json +0 -1
- package/node_modules/uuid/dist/cjs-browser/parse.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
- package/node_modules/uuid/dist/cjs-browser/regex.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/rng.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/sha1.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
- package/node_modules/uuid/dist/cjs-browser/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/cjs-browser/stringify.js +0 -39
- package/node_modules/uuid/dist/cjs-browser/types.d.ts +0 -21
- package/node_modules/uuid/dist/cjs-browser/types.js +0 -2
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
- package/node_modules/uuid/dist/cjs-browser/v1.d.ts +0 -11
- package/node_modules/uuid/dist/cjs-browser/v1.js +0 -87
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/v3.d.ts +0 -9
- package/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/v35.d.ts +0 -7
- package/node_modules/uuid/dist/cjs-browser/v35.js +0 -41
- package/node_modules/uuid/dist/cjs-browser/v4.d.ts +0 -4
- package/node_modules/uuid/dist/cjs-browser/v4.js +0 -29
- package/node_modules/uuid/dist/cjs-browser/v5.d.ts +0 -9
- package/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/v6.d.ts +0 -4
- package/node_modules/uuid/dist/cjs-browser/v6.js +0 -19
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/v7.d.ts +0 -9
- package/node_modules/uuid/dist/cjs-browser/v7.js +0 -69
- package/node_modules/uuid/dist/cjs-browser/validate.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
- package/node_modules/uuid/dist/cjs-browser/version.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/version.js +0 -10
- package/node_modules/uuid/dist/esm/bin/uuid +0 -2
- package/node_modules/uuid/dist/esm/index.d.ts +0 -15
- package/node_modules/uuid/dist/esm/index.js +0 -14
- package/node_modules/uuid/dist/esm/max.d.ts +0 -2
- package/node_modules/uuid/dist/esm/max.js +0 -1
- package/node_modules/uuid/dist/esm/md5.d.ts +0 -4
- package/node_modules/uuid/dist/esm/md5.js +0 -11
- package/node_modules/uuid/dist/esm/native.d.ts +0 -6
- package/node_modules/uuid/dist/esm/native.js +0 -2
- package/node_modules/uuid/dist/esm/nil.d.ts +0 -2
- package/node_modules/uuid/dist/esm/nil.js +0 -1
- package/node_modules/uuid/dist/esm/parse.d.ts +0 -2
- package/node_modules/uuid/dist/esm/parse.js +0 -9
- package/node_modules/uuid/dist/esm/regex.d.ts +0 -2
- package/node_modules/uuid/dist/esm/regex.js +0 -1
- package/node_modules/uuid/dist/esm/rng.d.ts +0 -1
- package/node_modules/uuid/dist/esm/rng.js +0 -10
- package/node_modules/uuid/dist/esm/sha1.d.ts +0 -4
- package/node_modules/uuid/dist/esm/sha1.js +0 -11
- package/node_modules/uuid/dist/esm/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/esm/stringify.js +0 -35
- package/node_modules/uuid/dist/esm/types.d.ts +0 -21
- package/node_modules/uuid/dist/esm/uuid-bin.js +0 -70
- package/node_modules/uuid/dist/esm/v1.d.ts +0 -11
- package/node_modules/uuid/dist/esm/v1.js +0 -83
- package/node_modules/uuid/dist/esm/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/esm/v1ToV6.js +0 -10
- package/node_modules/uuid/dist/esm/v3.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v3.js +0 -9
- package/node_modules/uuid/dist/esm/v35.d.ts +0 -7
- package/node_modules/uuid/dist/esm/v35.js +0 -36
- package/node_modules/uuid/dist/esm/v4.d.ts +0 -4
- package/node_modules/uuid/dist/esm/v4.js +0 -27
- package/node_modules/uuid/dist/esm/v5.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v5.js +0 -9
- package/node_modules/uuid/dist/esm/v6.d.ts +0 -4
- package/node_modules/uuid/dist/esm/v6.js +0 -17
- package/node_modules/uuid/dist/esm/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/esm/v6ToV1.js +0 -10
- package/node_modules/uuid/dist/esm/v7.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v7.js +0 -65
- package/node_modules/uuid/dist/esm/validate.d.ts +0 -2
- package/node_modules/uuid/dist/esm/validate.js +0 -5
- package/node_modules/uuid/dist/esm/version.d.ts +0 -2
- package/node_modules/uuid/dist/esm/version.js +0 -8
- package/node_modules/uuid/dist/esm-browser/index.d.ts +0 -15
- package/node_modules/uuid/dist/esm-browser/index.js +0 -14
- package/node_modules/uuid/dist/esm-browser/max.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/max.js +0 -1
- package/node_modules/uuid/dist/esm-browser/md5.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/md5.js +0 -135
- package/node_modules/uuid/dist/esm-browser/native.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/native.js +0 -2
- package/node_modules/uuid/dist/esm-browser/nil.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/nil.js +0 -1
- package/node_modules/uuid/dist/esm-browser/parse.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/parse.js +0 -9
- package/node_modules/uuid/dist/esm-browser/regex.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/regex.js +0 -1
- package/node_modules/uuid/dist/esm-browser/rng.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/rng.js +0 -11
- package/node_modules/uuid/dist/esm-browser/sha1.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/sha1.js +0 -70
- package/node_modules/uuid/dist/esm-browser/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/esm-browser/stringify.js +0 -35
- package/node_modules/uuid/dist/esm-browser/types.d.ts +0 -21
- package/node_modules/uuid/dist/esm-browser/uuid-bin.js +0 -70
- package/node_modules/uuid/dist/esm-browser/v1.d.ts +0 -11
- package/node_modules/uuid/dist/esm-browser/v1.js +0 -83
- package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/v1ToV6.js +0 -10
- package/node_modules/uuid/dist/esm-browser/v3.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v3.js +0 -9
- package/node_modules/uuid/dist/esm-browser/v35.d.ts +0 -7
- package/node_modules/uuid/dist/esm-browser/v35.js +0 -36
- package/node_modules/uuid/dist/esm-browser/v4.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/v4.js +0 -27
- package/node_modules/uuid/dist/esm-browser/v5.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v5.js +0 -9
- package/node_modules/uuid/dist/esm-browser/v6.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/v6.js +0 -17
- package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/v6ToV1.js +0 -10
- package/node_modules/uuid/dist/esm-browser/v7.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v7.js +0 -65
- package/node_modules/uuid/dist/esm-browser/validate.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/validate.js +0 -5
- package/node_modules/uuid/dist/esm-browser/version.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/version.js +0 -8
- package/node_modules/uuid/package.json +0 -132
- package/vendor/aab-tool/LICENSE +0 -202
- package/vendor/aab-tool/README.txt +0 -1
- package/vendor/aab-tool/bundletool.jar +0 -0
- /package/{node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts → lib/bootstrap.d.ts} +0 -0
- /package/{node_modules/uuid/dist/cjs/uuid-bin.d.ts → lib/commands/test-init.d.ts} +0 -0
- /package/{node_modules/uuid/dist/esm-browser/types.js → lib/commands/test.d.ts} +0 -0
- /package/{node_modules/uuid/dist/esm-browser/uuid-bin.d.ts → lib/common/bootstrap.d.ts} +0 -0
- /package/{node_modules/uuid/dist/esm/types.js → lib/common/common-lib.d.ts} +0 -0
- /package/{node_modules/uuid/dist/esm/uuid-bin.d.ts → lib/common/mobile/ios/ios-device-product-name-mapper.d.ts} +0 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { IChildProcess, IXcodeSelectService } from "../common/declarations";
|
|
2
|
+
import { IKeyCommand, IKeyCommandHelper, IKeyCommandPlatform, IValidKeyName, SupportedProcessType } from "../common/definitions/key-commands";
|
|
3
|
+
import { IProjectData } from "../definitions/project";
|
|
4
|
+
import { IStartService } from "../definitions/start-service";
|
|
5
|
+
import { IOSProjectService } from "../services/ios-project-service";
|
|
6
|
+
import { IOptions } from "../declarations";
|
|
7
|
+
export declare class A implements IKeyCommand {
|
|
8
|
+
private $startService;
|
|
9
|
+
key: IValidKeyName;
|
|
10
|
+
platform: IKeyCommandPlatform;
|
|
11
|
+
description: string;
|
|
12
|
+
group: string;
|
|
13
|
+
constructor($startService: IStartService);
|
|
14
|
+
execute(): Promise<void>;
|
|
15
|
+
canExecute(processType: SupportedProcessType): processType is "start";
|
|
16
|
+
}
|
|
17
|
+
export declare class ShiftA implements IKeyCommand {
|
|
18
|
+
private $logger;
|
|
19
|
+
private $liveSyncCommandHelper;
|
|
20
|
+
private $childProcess;
|
|
21
|
+
private $projectData;
|
|
22
|
+
key: IValidKeyName;
|
|
23
|
+
platform: IKeyCommandPlatform;
|
|
24
|
+
description: string;
|
|
25
|
+
group: string;
|
|
26
|
+
willBlockKeyCommandExecution: boolean;
|
|
27
|
+
protected isInteractive: boolean;
|
|
28
|
+
constructor($logger: ILogger, $liveSyncCommandHelper: ILiveSyncCommandHelper, $childProcess: IChildProcess, $projectData: IProjectData);
|
|
29
|
+
getAndroidStudioPath(): string | null;
|
|
30
|
+
execute(): Promise<void>;
|
|
31
|
+
}
|
|
32
|
+
export declare class OpenAndroidCommand extends ShiftA {
|
|
33
|
+
private $options;
|
|
34
|
+
constructor($logger: ILogger, $liveSyncCommandHelper: ILiveSyncCommandHelper, $childProcess: IChildProcess, $projectData: IProjectData, $options: IOptions);
|
|
35
|
+
execute(): Promise<void>;
|
|
36
|
+
}
|
|
37
|
+
export declare class I implements IKeyCommand {
|
|
38
|
+
private $startService;
|
|
39
|
+
key: IValidKeyName;
|
|
40
|
+
platform: IKeyCommandPlatform;
|
|
41
|
+
description: string;
|
|
42
|
+
group: string;
|
|
43
|
+
constructor($startService: IStartService);
|
|
44
|
+
execute(): Promise<void>;
|
|
45
|
+
canExecute(processType: SupportedProcessType): processType is "start";
|
|
46
|
+
}
|
|
47
|
+
export declare class ShiftI implements IKeyCommand {
|
|
48
|
+
private $iOSProjectService;
|
|
49
|
+
private $logger;
|
|
50
|
+
private $childProcess;
|
|
51
|
+
private $projectData;
|
|
52
|
+
private $xcodeSelectService;
|
|
53
|
+
private $xcodebuildArgsService;
|
|
54
|
+
key: IValidKeyName;
|
|
55
|
+
platform: IKeyCommandPlatform;
|
|
56
|
+
description: string;
|
|
57
|
+
group: string;
|
|
58
|
+
willBlockKeyCommandExecution: boolean;
|
|
59
|
+
protected isInteractive: boolean;
|
|
60
|
+
constructor($iOSProjectService: IOSProjectService, $logger: ILogger, $childProcess: IChildProcess, $projectData: IProjectData, $xcodeSelectService: IXcodeSelectService, $xcodebuildArgsService: IXcodebuildArgsService);
|
|
61
|
+
execute(): Promise<void>;
|
|
62
|
+
}
|
|
63
|
+
export declare class OpenIOSCommand extends ShiftI {
|
|
64
|
+
private $options;
|
|
65
|
+
constructor($iOSProjectService: IOSProjectService, $logger: ILogger, $childProcess: IChildProcess, $projectData: IProjectData, $xcodeSelectService: IXcodeSelectService, $xcodebuildArgsService: IXcodebuildArgsService, $options: IOptions);
|
|
66
|
+
execute(): Promise<void>;
|
|
67
|
+
}
|
|
68
|
+
export declare class V implements IKeyCommand {
|
|
69
|
+
private $startService;
|
|
70
|
+
key: IValidKeyName;
|
|
71
|
+
platform: IKeyCommandPlatform;
|
|
72
|
+
description: string;
|
|
73
|
+
group: string;
|
|
74
|
+
constructor($startService: IStartService);
|
|
75
|
+
execute(): Promise<void>;
|
|
76
|
+
canExecute(processType: SupportedProcessType): processType is "start";
|
|
77
|
+
}
|
|
78
|
+
export declare class ShiftV implements IKeyCommand {
|
|
79
|
+
private $iOSProjectService;
|
|
80
|
+
private $logger;
|
|
81
|
+
private $childProcess;
|
|
82
|
+
private $projectData;
|
|
83
|
+
private $xcodeSelectService;
|
|
84
|
+
private $xcodebuildArgsService;
|
|
85
|
+
protected $options: IOptions;
|
|
86
|
+
key: IValidKeyName;
|
|
87
|
+
platform: IKeyCommandPlatform;
|
|
88
|
+
description: string;
|
|
89
|
+
group: string;
|
|
90
|
+
willBlockKeyCommandExecution: boolean;
|
|
91
|
+
protected isInteractive: boolean;
|
|
92
|
+
constructor($iOSProjectService: IOSProjectService, $logger: ILogger, $childProcess: IChildProcess, $projectData: IProjectData, $xcodeSelectService: IXcodeSelectService, $xcodebuildArgsService: IXcodebuildArgsService, $options: IOptions);
|
|
93
|
+
execute(): Promise<void>;
|
|
94
|
+
}
|
|
95
|
+
export declare class OpenVisionOSCommand extends ShiftV {
|
|
96
|
+
protected $options: IOptions;
|
|
97
|
+
constructor($iOSProjectService: IOSProjectService, $logger: ILogger, $childProcess: IChildProcess, $projectData: IProjectData, $xcodeSelectService: IXcodeSelectService, $xcodebuildArgsService: IXcodebuildArgsService, $options: IOptions);
|
|
98
|
+
execute(): Promise<void>;
|
|
99
|
+
}
|
|
100
|
+
export declare class R implements IKeyCommand {
|
|
101
|
+
private $liveSyncCommandHelper;
|
|
102
|
+
key: IValidKeyName;
|
|
103
|
+
platform: IKeyCommandPlatform;
|
|
104
|
+
description: string;
|
|
105
|
+
group: string;
|
|
106
|
+
willBlockKeyCommandExecution: boolean;
|
|
107
|
+
constructor($liveSyncCommandHelper: ILiveSyncCommandHelper);
|
|
108
|
+
execute(platform: string): Promise<void>;
|
|
109
|
+
}
|
|
110
|
+
export declare class ShiftR implements IKeyCommand {
|
|
111
|
+
private $liveSyncCommandHelper;
|
|
112
|
+
key: IValidKeyName;
|
|
113
|
+
platform: IKeyCommandPlatform;
|
|
114
|
+
description: string;
|
|
115
|
+
group: string;
|
|
116
|
+
willBlockKeyCommandExecution: boolean;
|
|
117
|
+
constructor($liveSyncCommandHelper: ILiveSyncCommandHelper);
|
|
118
|
+
execute(platform: string): Promise<void>;
|
|
119
|
+
}
|
|
120
|
+
export declare class CtrlC implements IKeyCommand {
|
|
121
|
+
key: IValidKeyName;
|
|
122
|
+
platform: IKeyCommandPlatform;
|
|
123
|
+
description: string;
|
|
124
|
+
group: string;
|
|
125
|
+
willBlockKeyCommandExecution: boolean;
|
|
126
|
+
execute(): Promise<void>;
|
|
127
|
+
}
|
|
128
|
+
export declare class W implements IKeyCommand {
|
|
129
|
+
private $prepareController;
|
|
130
|
+
key: IValidKeyName;
|
|
131
|
+
platform: IKeyCommandPlatform;
|
|
132
|
+
description: string;
|
|
133
|
+
group: string;
|
|
134
|
+
willBlockKeyCommandExecution: boolean;
|
|
135
|
+
constructor($prepareController: IPrepareController);
|
|
136
|
+
execute(): Promise<void>;
|
|
137
|
+
}
|
|
138
|
+
export declare class C implements IKeyCommand {
|
|
139
|
+
private $childProcess;
|
|
140
|
+
private $liveSyncCommandHelper;
|
|
141
|
+
key: IValidKeyName;
|
|
142
|
+
platform: IKeyCommandPlatform;
|
|
143
|
+
description: string;
|
|
144
|
+
group: string;
|
|
145
|
+
willBlockKeyCommandExecution: boolean;
|
|
146
|
+
constructor($childProcess: IChildProcess, $liveSyncCommandHelper: ILiveSyncCommandHelper);
|
|
147
|
+
execute(): Promise<void>;
|
|
148
|
+
}
|
|
149
|
+
export declare class N implements IKeyCommand {
|
|
150
|
+
key: IValidKeyName;
|
|
151
|
+
platform: IKeyCommandPlatform;
|
|
152
|
+
description: string;
|
|
153
|
+
group: string;
|
|
154
|
+
willBlockKeyCommandExecution: boolean;
|
|
155
|
+
execute(platform: string): Promise<void>;
|
|
156
|
+
}
|
|
157
|
+
export declare class QuestionMark implements IKeyCommand {
|
|
158
|
+
private $keyCommandHelper;
|
|
159
|
+
key: IValidKeyName;
|
|
160
|
+
platform: IKeyCommandPlatform;
|
|
161
|
+
description: string;
|
|
162
|
+
group: string;
|
|
163
|
+
willBlockKeyCommandExecution: boolean;
|
|
164
|
+
constructor($keyCommandHelper: IKeyCommandHelper);
|
|
165
|
+
execute(platform_: string): Promise<void>;
|
|
166
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const originalProcessOn: any;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BasePackageManager } from "./base-package-manager";
|
|
2
|
+
import { INodePackageManagerInstallOptions, INpmInstallResultInfo, INpmsResult } from "./declarations";
|
|
3
|
+
import { IChildProcess, IErrors, IFileSystem, IHostInfo, Server } from "./common/declarations";
|
|
4
|
+
export declare class NodePackageManager extends BasePackageManager {
|
|
5
|
+
private $errors;
|
|
6
|
+
private $logger;
|
|
7
|
+
private $httpClient;
|
|
8
|
+
constructor($childProcess: IChildProcess, $errors: IErrors, $fs: IFileSystem, $hostInfo: IHostInfo, $logger: ILogger, $httpClient: Server.IHttpClient, $pacoteService: IPacoteService);
|
|
9
|
+
install(packageName: string, pathToSave: string, config: INodePackageManagerInstallOptions): Promise<INpmInstallResultInfo>;
|
|
10
|
+
uninstall(packageName: string, config?: any, path?: string): Promise<string>;
|
|
11
|
+
search(filter: string[], config: any): Promise<string>;
|
|
12
|
+
view(packageName: string, config: Object): Promise<any>;
|
|
13
|
+
searchNpms(keyword: string): Promise<INpmsResult>;
|
|
14
|
+
getRegistryPackageData(packageName: string): Promise<any>;
|
|
15
|
+
getCachePath(): Promise<string>;
|
|
16
|
+
}
|
package/lib/options.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as yargs from "yargs";
|
|
2
|
+
import { IDictionary, IDashedOption, IErrors, ISettingsService } from "./common/declarations";
|
|
3
|
+
export declare class Options {
|
|
4
|
+
private $errors;
|
|
5
|
+
private $settingsService;
|
|
6
|
+
private $logger;
|
|
7
|
+
private static DASHED_OPTION_REGEX;
|
|
8
|
+
private static NONDASHED_OPTION_REGEX;
|
|
9
|
+
private optionsWhiteList;
|
|
10
|
+
private globalOptions;
|
|
11
|
+
private initialArgv;
|
|
12
|
+
argv: yargs.Arguments;
|
|
13
|
+
options: IDictionary<IDashedOption>;
|
|
14
|
+
setupOptions(commandSpecificDashedOptions?: IDictionary<IDashedOption>): void;
|
|
15
|
+
constructor($errors: IErrors, $settingsService: ISettingsService, $logger: ILogger);
|
|
16
|
+
get shorthands(): string[];
|
|
17
|
+
private get commonOptions();
|
|
18
|
+
private get optionNames();
|
|
19
|
+
private getOptionValue;
|
|
20
|
+
validateOptions(commandSpecificDashedOptions?: IDictionary<IDashedOption>): void;
|
|
21
|
+
private getCanonicalOptionName;
|
|
22
|
+
private getReportedOptionName;
|
|
23
|
+
private reportInvalidOption;
|
|
24
|
+
private getCorrectOptionName;
|
|
25
|
+
private getOptionType;
|
|
26
|
+
private tryGetOptionByAliasName;
|
|
27
|
+
private hasAlias;
|
|
28
|
+
private isOptionSupported;
|
|
29
|
+
private getNonDashedOptionName;
|
|
30
|
+
private getDashedOptionName;
|
|
31
|
+
private setArgv;
|
|
32
|
+
private adjustDashedOptions;
|
|
33
|
+
}
|
package/lib/options.js
CHANGED
|
@@ -28,18 +28,11 @@ class Options {
|
|
|
28
28
|
this.argv.hmr = false;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
constructor($errors, $settingsService) {
|
|
31
|
+
constructor($errors, $settingsService, $logger) {
|
|
32
32
|
this.$errors = $errors;
|
|
33
33
|
this.$settingsService = $settingsService;
|
|
34
|
-
this
|
|
35
|
-
|
|
36
|
-
"recursive",
|
|
37
|
-
"reporter",
|
|
38
|
-
"require",
|
|
39
|
-
"timeout",
|
|
40
|
-
"_",
|
|
41
|
-
"$0",
|
|
42
|
-
];
|
|
34
|
+
this.$logger = $logger;
|
|
35
|
+
this.optionsWhiteList = ["_", "$0"];
|
|
43
36
|
this.globalOptions = {
|
|
44
37
|
log: { type: enums_1.OptionType.String, hasSensitiveValue: false },
|
|
45
38
|
verbose: { type: enums_1.OptionType.Boolean, hasSensitiveValue: false },
|
|
@@ -57,8 +50,9 @@ class Options {
|
|
|
57
50
|
get shorthands() {
|
|
58
51
|
const result = [];
|
|
59
52
|
_.each(_.keys(this.options), (optionName) => {
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
const alias = this.options[optionName].alias;
|
|
54
|
+
if (alias) {
|
|
55
|
+
result.push(...(_.isArray(alias) ? alias : [alias]));
|
|
62
56
|
}
|
|
63
57
|
});
|
|
64
58
|
return result;
|
|
@@ -105,6 +99,7 @@ class Options {
|
|
|
105
99
|
vue: { type: enums_1.OptionType.Boolean, hasSensitiveValue: false },
|
|
106
100
|
vuejs: { type: enums_1.OptionType.Boolean, hasSensitiveValue: false },
|
|
107
101
|
svelte: { type: enums_1.OptionType.Boolean, hasSensitiveValue: false },
|
|
102
|
+
solid: { type: enums_1.OptionType.Boolean, hasSensitiveValue: false },
|
|
108
103
|
vision: { type: enums_1.OptionType.Boolean, hasSensitiveValue: false },
|
|
109
104
|
"vision-ng": { type: enums_1.OptionType.Boolean, hasSensitiveValue: false },
|
|
110
105
|
"vision-react": { type: enums_1.OptionType.Boolean, hasSensitiveValue: false },
|
|
@@ -149,7 +144,6 @@ class Options {
|
|
|
149
144
|
},
|
|
150
145
|
json: { type: enums_1.OptionType.Boolean, hasSensitiveValue: false },
|
|
151
146
|
avd: { type: enums_1.OptionType.String, hasSensitiveValue: true },
|
|
152
|
-
config: { type: enums_1.OptionType.Array, hasSensitiveValue: false },
|
|
153
147
|
insecure: {
|
|
154
148
|
type: enums_1.OptionType.Boolean,
|
|
155
149
|
alias: "k",
|
|
@@ -234,49 +228,82 @@ class Options {
|
|
|
234
228
|
}
|
|
235
229
|
validateOptions(commandSpecificDashedOptions) {
|
|
236
230
|
this.setupOptions(commandSpecificDashedOptions);
|
|
237
|
-
const
|
|
238
|
-
for (const
|
|
239
|
-
const
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
_.each(parsed, (value, originalOptionName) => {
|
|
243
|
-
if (value === undefined) {
|
|
244
|
-
return;
|
|
231
|
+
const validated = [];
|
|
232
|
+
for (const originalOptionName of Object.keys(this.argv)) {
|
|
233
|
+
const optionValue = this.getOptionValue(originalOptionName);
|
|
234
|
+
if (optionValue === undefined) {
|
|
235
|
+
continue;
|
|
245
236
|
}
|
|
246
237
|
const optionName = this.getCorrectOptionName(originalOptionName);
|
|
247
|
-
if (
|
|
248
|
-
|
|
249
|
-
this.$errors.failWithHelp(`The option '${originalOptionName}' is not supported.`);
|
|
250
|
-
}
|
|
251
|
-
const optionType = this.getOptionType(optionName), optionValue = parsed[optionName];
|
|
252
|
-
if (_.isArray(optionValue) && optionType !== enums_1.OptionType.Array) {
|
|
253
|
-
this.$errors.failWithHelp("The '%s' option requires a single value.", originalOptionName);
|
|
254
|
-
}
|
|
255
|
-
else if (optionType === enums_1.OptionType.String &&
|
|
256
|
-
helpers.isNullOrWhitespace(optionValue)) {
|
|
257
|
-
this.$errors.failWithHelp("The option '%s' requires non-empty value.", originalOptionName);
|
|
258
|
-
}
|
|
259
|
-
else if (optionType === enums_1.OptionType.Array &&
|
|
260
|
-
optionValue.length === 0) {
|
|
261
|
-
this.$errors.failWithHelp(`The option '${originalOptionName}' requires one or more values, separated by a space.`);
|
|
262
|
-
}
|
|
238
|
+
if (_.includes(this.optionsWhiteList, optionName)) {
|
|
239
|
+
continue;
|
|
263
240
|
}
|
|
264
|
-
|
|
241
|
+
const dedupeKey = this.getCanonicalOptionName(optionName);
|
|
242
|
+
if (_.includes(validated, dedupeKey)) {
|
|
243
|
+
continue;
|
|
244
|
+
}
|
|
245
|
+
validated.push(dedupeKey);
|
|
246
|
+
if (!this.isOptionSupported(optionName)) {
|
|
247
|
+
this.reportInvalidOption(`The option '${this.getReportedOptionName(originalOptionName)}' is not supported.`);
|
|
248
|
+
continue;
|
|
249
|
+
}
|
|
250
|
+
const optionType = this.getOptionType(optionName);
|
|
251
|
+
if (_.isArray(optionValue) && optionType !== enums_1.OptionType.Array) {
|
|
252
|
+
this.reportInvalidOption(`The '${originalOptionName}' option requires a single value.`);
|
|
253
|
+
}
|
|
254
|
+
else if (optionType === enums_1.OptionType.String &&
|
|
255
|
+
helpers.isNullOrWhitespace(optionValue)) {
|
|
256
|
+
this.reportInvalidOption(`The option '${originalOptionName}' requires non-empty value.`);
|
|
257
|
+
}
|
|
258
|
+
else if (optionType === enums_1.OptionType.Array && optionValue.length === 0) {
|
|
259
|
+
this.reportInvalidOption(`The option '${originalOptionName}' requires one or more values, separated by a space.`);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
265
262
|
}
|
|
266
|
-
|
|
267
|
-
const
|
|
268
|
-
|
|
269
|
-
|
|
263
|
+
getCanonicalOptionName(optionName) {
|
|
264
|
+
const correctName = this.getCorrectOptionName(optionName);
|
|
265
|
+
if (this.options[correctName]) {
|
|
266
|
+
return this.getNonDashedOptionName(correctName);
|
|
267
|
+
}
|
|
268
|
+
const aliasedName = _.findKey(this.options, (opt) => this.hasAlias(opt, correctName));
|
|
269
|
+
return this.getNonDashedOptionName(aliasedName || correctName);
|
|
270
|
+
}
|
|
271
|
+
getReportedOptionName(optionName) {
|
|
272
|
+
return process.argv.indexOf(`--no-${optionName}`) !== -1
|
|
273
|
+
? `no-${optionName}`
|
|
270
274
|
: optionName;
|
|
271
275
|
}
|
|
276
|
+
reportInvalidOption(message) {
|
|
277
|
+
if (process.env.NS_STRICT_OPTIONS === "error") {
|
|
278
|
+
this.$errors.failWithHelp(message);
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
this.$logger.warn(`${message} This will become an error in a future release. Set NS_STRICT_OPTIONS=error to preview that behavior.`);
|
|
282
|
+
}
|
|
283
|
+
getCorrectOptionName(optionName) {
|
|
284
|
+
const nonDashedName = this.getNonDashedOptionName(optionName);
|
|
285
|
+
if (_.includes(this.optionNames, nonDashedName)) {
|
|
286
|
+
return nonDashedName;
|
|
287
|
+
}
|
|
288
|
+
const dashedName = this.getDashedOptionName(optionName);
|
|
289
|
+
if (_.includes(this.optionNames, dashedName)) {
|
|
290
|
+
return dashedName;
|
|
291
|
+
}
|
|
292
|
+
return optionName;
|
|
293
|
+
}
|
|
272
294
|
getOptionType(optionName) {
|
|
273
295
|
const option = this.options[optionName] || this.tryGetOptionByAliasName(optionName);
|
|
274
296
|
return option ? option.type : "";
|
|
275
297
|
}
|
|
276
298
|
tryGetOptionByAliasName(aliasName) {
|
|
277
|
-
const option = _.find(this.options, (opt) => opt
|
|
299
|
+
const option = _.find(this.options, (opt) => this.hasAlias(opt, aliasName));
|
|
278
300
|
return option;
|
|
279
301
|
}
|
|
302
|
+
hasAlias(option, aliasName) {
|
|
303
|
+
return _.isArray(option.alias)
|
|
304
|
+
? _.includes(option.alias, aliasName)
|
|
305
|
+
: option.alias === aliasName;
|
|
306
|
+
}
|
|
280
307
|
isOptionSupported(option) {
|
|
281
308
|
if (!this.options[option]) {
|
|
282
309
|
const opt = this.tryGetOptionByAliasName(option);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { INpmInstallOptions, IPackageInstallationManager, IPackageManager, IStaticConfig } from "./declarations";
|
|
2
|
+
import { IProjectDataService } from "./definitions/project";
|
|
3
|
+
import { IChildProcess, IDictionary, IFileSystem, ISettingsService } from "./common/declarations";
|
|
4
|
+
export declare class PackageInstallationManager implements IPackageInstallationManager {
|
|
5
|
+
private $packageManager;
|
|
6
|
+
private $childProcess;
|
|
7
|
+
private $logger;
|
|
8
|
+
private $settingsService;
|
|
9
|
+
private $fs;
|
|
10
|
+
private $staticConfig;
|
|
11
|
+
private $projectDataService;
|
|
12
|
+
constructor($packageManager: IPackageManager, $childProcess: IChildProcess, $logger: ILogger, $settingsService: ISettingsService, $fs: IFileSystem, $staticConfig: IStaticConfig, $projectDataService: IProjectDataService);
|
|
13
|
+
getLatestVersion(packageName: string): Promise<string>;
|
|
14
|
+
getNextVersion(packageName: string): Promise<string>;
|
|
15
|
+
getLatestCompatibleVersion(packageName: string, referenceVersion?: string): Promise<string>;
|
|
16
|
+
getMaxSatisfyingVersion(packageName: string, versionRange: string): Promise<string>;
|
|
17
|
+
getMaxSatisfyingVersionSafe(packageName: string, versionIdentifier: string): Promise<string>;
|
|
18
|
+
getInstalledDependencyVersion(packageName: string, projectDir?: string): Promise<string>;
|
|
19
|
+
getLatestCompatibleVersionSafe(packageName: string, referenceVersion?: string): Promise<string>;
|
|
20
|
+
install(packageToInstall: string, projectDir: string, opts?: INpmInstallOptions): Promise<any>;
|
|
21
|
+
uninstall(packageToUninstall: string, projectDir: string, opts?: IDictionary<string | boolean>): Promise<any>;
|
|
22
|
+
getInspectorFromCache(inspectorNpmPackageName: string, projectDir: string): Promise<string>;
|
|
23
|
+
clearInspectorCache(): void;
|
|
24
|
+
private getInspectorCachePath;
|
|
25
|
+
private prepareCacheDir;
|
|
26
|
+
private inspectorAlreadyInstalled;
|
|
27
|
+
private installCore;
|
|
28
|
+
private npmInstall;
|
|
29
|
+
private getVersion;
|
|
30
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IPackageManager, INodePackageManager, IOptions, INodePackageManagerInstallOptions, INpmInstallResultInfo, INpmsResult, INpmPackageNameParts } from "./declarations";
|
|
2
|
+
import { IErrors, IUserSettingsService, IDictionary } from "./common/declarations";
|
|
3
|
+
import { IProjectConfigService } from "./definitions/project";
|
|
4
|
+
export declare class PackageManager implements IPackageManager {
|
|
5
|
+
private $errors;
|
|
6
|
+
private $npm;
|
|
7
|
+
private $options;
|
|
8
|
+
private $yarn;
|
|
9
|
+
private $yarn2;
|
|
10
|
+
private $pnpm;
|
|
11
|
+
private $bun;
|
|
12
|
+
private $logger;
|
|
13
|
+
private $userSettingsService;
|
|
14
|
+
private $projectConfigService;
|
|
15
|
+
private packageManager;
|
|
16
|
+
private _packageManagerName;
|
|
17
|
+
constructor($errors: IErrors, $npm: INodePackageManager, $options: IOptions, $yarn: INodePackageManager, $yarn2: INodePackageManager, $pnpm: INodePackageManager, $bun: INodePackageManager, $logger: ILogger, $userSettingsService: IUserSettingsService, $projectConfigService: IProjectConfigService);
|
|
18
|
+
protected init(): Promise<void>;
|
|
19
|
+
getPackageManagerName(): Promise<string>;
|
|
20
|
+
install(packageName: string, pathToSave: string, config: INodePackageManagerInstallOptions): Promise<INpmInstallResultInfo>;
|
|
21
|
+
uninstall(packageName: string, config?: IDictionary<string | boolean>, path?: string): Promise<string>;
|
|
22
|
+
view(packageName: string, config: Object): Promise<any>;
|
|
23
|
+
search(filter: string[], config: IDictionary<string | boolean>): Promise<string>;
|
|
24
|
+
searchNpms(keyword: string): Promise<INpmsResult>;
|
|
25
|
+
isRegistered(packageName: string): Promise<boolean>;
|
|
26
|
+
getPackageFullName(packageNameParts: INpmPackageNameParts): Promise<string>;
|
|
27
|
+
getPackageNameParts(fullPackageName: string): Promise<INpmPackageNameParts>;
|
|
28
|
+
getRegistryPackageData(packageName: string): Promise<any>;
|
|
29
|
+
getCachePath(): Promise<string>;
|
|
30
|
+
getTagVersion(packageName: string, tag: string): Promise<string>;
|
|
31
|
+
private _determinePackageManager;
|
|
32
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IProjectData } from "./definitions/project";
|
|
2
|
+
import { IPlatformValidationService } from "./declarations";
|
|
3
|
+
import { ICommandParameter } from "./common/definitions/commands";
|
|
4
|
+
export declare class PlatformCommandParameter implements ICommandParameter {
|
|
5
|
+
private $platformValidationService;
|
|
6
|
+
private $projectData;
|
|
7
|
+
constructor($platformValidationService: IPlatformValidationService, $projectData: IProjectData);
|
|
8
|
+
mandatory: boolean;
|
|
9
|
+
validate(value: string): Promise<boolean>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BasePackageManager } from "./base-package-manager";
|
|
2
|
+
import { INodePackageManagerInstallOptions, INpmInstallResultInfo, INpmsResult } from "./declarations";
|
|
3
|
+
import { IChildProcess, IErrors, IFileSystem, IHostInfo, Server, IDictionary } from "./common/declarations";
|
|
4
|
+
export declare class PnpmPackageManager extends BasePackageManager {
|
|
5
|
+
private $errors;
|
|
6
|
+
private $httpClient;
|
|
7
|
+
private $logger;
|
|
8
|
+
constructor($childProcess: IChildProcess, $errors: IErrors, $fs: IFileSystem, $hostInfo: IHostInfo, $httpClient: Server.IHttpClient, $logger: ILogger, $pacoteService: IPacoteService);
|
|
9
|
+
install(packageName: string, pathToSave: string, config: INodePackageManagerInstallOptions): Promise<INpmInstallResultInfo>;
|
|
10
|
+
uninstall(packageName: string, config?: IDictionary<string | boolean>, cwd?: string): Promise<string>;
|
|
11
|
+
view(packageName: string, config: Object): Promise<any>;
|
|
12
|
+
search(filter: string[], config: IDictionary<string | boolean>): Promise<string>;
|
|
13
|
+
searchNpms(keyword: string): Promise<INpmsResult>;
|
|
14
|
+
getRegistryPackageData(packageName: string): Promise<any>;
|
|
15
|
+
getCachePath(): Promise<string>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { BundlerType, INsConfig, IProjectConfigService, IProjectData } from "./definitions/project";
|
|
2
|
+
import { IAndroidResourcesMigrationService, IOptions, IStaticConfig } from "./declarations";
|
|
3
|
+
import { IErrors, IFileSystem, IProjectHelper, IStringDictionary } from "./common/declarations";
|
|
4
|
+
import { IInjector } from "./common/definitions/yok";
|
|
5
|
+
export declare class ProjectData implements IProjectData {
|
|
6
|
+
private $fs;
|
|
7
|
+
private $errors;
|
|
8
|
+
private $projectHelper;
|
|
9
|
+
private $staticConfig;
|
|
10
|
+
private $options;
|
|
11
|
+
private $logger;
|
|
12
|
+
private $injector;
|
|
13
|
+
private $androidResourcesMigrationService;
|
|
14
|
+
private $devicePlatformsConstants;
|
|
15
|
+
private static PROJECT_TYPES;
|
|
16
|
+
projectDir: string;
|
|
17
|
+
platformsDir: string;
|
|
18
|
+
projectFilePath: string;
|
|
19
|
+
projectIdentifiers: Mobile.IProjectIdentifier;
|
|
20
|
+
get projectId(): string;
|
|
21
|
+
set projectId(identifier: string);
|
|
22
|
+
projectName: string;
|
|
23
|
+
packageJsonData: any;
|
|
24
|
+
nsConfig: INsConfig;
|
|
25
|
+
appDirectoryPath: string;
|
|
26
|
+
appResourcesDirectoryPath: string;
|
|
27
|
+
dependencies: any;
|
|
28
|
+
devDependencies: IStringDictionary;
|
|
29
|
+
ignoredDependencies: string[];
|
|
30
|
+
projectType: string;
|
|
31
|
+
androidManifestPath: string;
|
|
32
|
+
infoPlistPath: string;
|
|
33
|
+
appGradlePath: string;
|
|
34
|
+
gradleFilesDirectoryPath: string;
|
|
35
|
+
buildXcconfigPath: string;
|
|
36
|
+
podfilePath: string;
|
|
37
|
+
isShared: boolean;
|
|
38
|
+
webpackConfigPath: string;
|
|
39
|
+
bundlerConfigPath: string;
|
|
40
|
+
bundler: BundlerType;
|
|
41
|
+
initialized: boolean;
|
|
42
|
+
constructor($fs: IFileSystem, $errors: IErrors, $projectHelper: IProjectHelper, $staticConfig: IStaticConfig, $options: IOptions, $logger: ILogger, $injector: IInjector, $androidResourcesMigrationService: IAndroidResourcesMigrationService, $devicePlatformsConstants: Mobile.IDevicePlatformsConstants);
|
|
43
|
+
get projectConfig(): IProjectConfigService;
|
|
44
|
+
initializeProjectData(projectDir?: string): void;
|
|
45
|
+
initializeProjectDataFromContent(packageJsonContent: string, projectDir?: string): void;
|
|
46
|
+
private getPathToAndroidManifest;
|
|
47
|
+
private errorInvalidProject;
|
|
48
|
+
private getProjectFilePath;
|
|
49
|
+
getAppResourcesDirectoryPath(projectDir?: string): string;
|
|
50
|
+
getAppResourcesRelativeDirectoryPath(): string;
|
|
51
|
+
getAppDirectoryPath(projectDir?: string): string;
|
|
52
|
+
getAppDirectoryRelativePath(): string;
|
|
53
|
+
getNsConfigRelativePath(): string;
|
|
54
|
+
private resolveToProjectDir;
|
|
55
|
+
private initializeProjectIdentifiers;
|
|
56
|
+
private getProjectType;
|
|
57
|
+
private warnProjectId;
|
|
58
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ProjectFilesProviderBase } from "../common/services/project-files-provider-base";
|
|
2
|
+
import { IPlatformsDataService } from "../definitions/platform";
|
|
3
|
+
import { IOptions } from "../declarations";
|
|
4
|
+
import { IProjectData } from "../definitions/project";
|
|
5
|
+
import { IProjectFilesConfig } from "../common/declarations";
|
|
6
|
+
export declare class ProjectFilesProvider extends ProjectFilesProviderBase {
|
|
7
|
+
private $platformsDataService;
|
|
8
|
+
constructor($platformsDataService: IPlatformsDataService, $mobileHelper: Mobile.IMobileHelper, $options: IOptions);
|
|
9
|
+
private static INTERNAL_NONPROJECT_FILES;
|
|
10
|
+
mapFilePath(filePath: string, platform: string, projectData: IProjectData, projectFilesConfig: IProjectFilesConfig): string;
|
|
11
|
+
isFileExcluded(filePath: string): boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IInjector } from "../common/definitions/yok";
|
|
2
|
+
import { IErrors } from "../common/declarations";
|
|
3
|
+
export declare class LiveSyncServiceResolver implements ILiveSyncServiceResolver {
|
|
4
|
+
private $errors;
|
|
5
|
+
private $injector;
|
|
6
|
+
private $mobileHelper;
|
|
7
|
+
constructor($errors: IErrors, $injector: IInjector, $mobileHelper: Mobile.IMobileHelper);
|
|
8
|
+
resolveLiveSyncService(platform: string): IPlatformLiveSyncService;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IAnalyticsBroker, ITrackingInformation } from "./analytics";
|
|
2
|
+
import { IAnalyticsSettingsService } from "../../common/declarations";
|
|
3
|
+
import { IInjector } from "../../common/definitions/yok";
|
|
4
|
+
export declare class AnalyticsBroker implements IAnalyticsBroker {
|
|
5
|
+
private $analyticsSettingsService;
|
|
6
|
+
private $injector;
|
|
7
|
+
private analyticsLoggingService;
|
|
8
|
+
private getGoogleAnalyticsProvider;
|
|
9
|
+
constructor($analyticsSettingsService: IAnalyticsSettingsService, $injector: IInjector, analyticsLoggingService: IFileLogService);
|
|
10
|
+
sendDataForTracking(trackInfo: ITrackingInformation): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { IOptions } from "../../declarations";
|
|
2
|
+
import { IProjectDataService } from "../../definitions/project";
|
|
3
|
+
import { IAnalyticsService, IDisposable, IUserSettingsService, IAnalyticsSettingsService, IChildProcess, IProjectHelper } from "../../common/declarations";
|
|
4
|
+
import { IGoogleAnalyticsData, IEventActionData } from "../../common/definitions/google-analytics";
|
|
5
|
+
export declare class AnalyticsService implements IAnalyticsService, IDisposable {
|
|
6
|
+
private $logger;
|
|
7
|
+
private $options;
|
|
8
|
+
private $staticConfig;
|
|
9
|
+
private $prompter;
|
|
10
|
+
private $userSettingsService;
|
|
11
|
+
private $analyticsSettingsService;
|
|
12
|
+
private $childProcess;
|
|
13
|
+
private $projectDataService;
|
|
14
|
+
private $mobileHelper;
|
|
15
|
+
private $projectHelper;
|
|
16
|
+
private static ANALYTICS_BROKER_START_TIMEOUT;
|
|
17
|
+
private brokerProcess;
|
|
18
|
+
private shouldDisposeInstance;
|
|
19
|
+
private analyticsStatuses;
|
|
20
|
+
constructor($logger: ILogger, $options: IOptions, $staticConfig: Config.IStaticConfig, $prompter: IPrompter, $userSettingsService: IUserSettingsService, $analyticsSettingsService: IAnalyticsSettingsService, $childProcess: IChildProcess, $projectDataService: IProjectDataService, $mobileHelper: Mobile.IMobileHelper, $projectHelper: IProjectHelper);
|
|
21
|
+
setShouldDispose(shouldDispose: boolean): void;
|
|
22
|
+
checkConsent(): Promise<void>;
|
|
23
|
+
setStatus(settingName: string, enabled: boolean): Promise<void>;
|
|
24
|
+
isEnabled(settingName: string): Promise<boolean>;
|
|
25
|
+
getStatusMessage(settingName: string, jsonFormat: boolean, readableSettingName: string): Promise<string>;
|
|
26
|
+
trackAcceptFeatureUsage(settings: {
|
|
27
|
+
acceptTrackFeatureUsage: boolean;
|
|
28
|
+
}): Promise<void>;
|
|
29
|
+
trackInGoogleAnalytics(gaSettings: IGoogleAnalyticsData): Promise<void>;
|
|
30
|
+
trackEventActionInGoogleAnalytics(data: IEventActionData): Promise<void>;
|
|
31
|
+
finishTracking(): Promise<void>;
|
|
32
|
+
private forcefullyTrackInGoogleAnalytics;
|
|
33
|
+
private setProjectRelatedCustomDimensions;
|
|
34
|
+
dispose(): void;
|
|
35
|
+
private addDataToLabel;
|
|
36
|
+
private getAnalyticsBroker;
|
|
37
|
+
private getBrokerProcessArgs;
|
|
38
|
+
private sendInfoForTracking;
|
|
39
|
+
private sendMessageToBroker;
|
|
40
|
+
private initAnalyticsStatuses;
|
|
41
|
+
private getStatus;
|
|
42
|
+
private isNotConfirmed;
|
|
43
|
+
private getHumanReadableStatusMessage;
|
|
44
|
+
private getJsonStatusMessage;
|
|
45
|
+
trackException(exception: any, message: string): Promise<void>;
|
|
46
|
+
}
|