nativescript 9.1.0-alpha.15 → 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/build-jekyll-md.sh +1 -1
- package/docs/man_pages/config/config-set.md +2 -0
- package/docs/man_pages/project/testing/build-android.md +1 -1
- package/lib/android-tools-info.d.ts +19 -0
- package/lib/android-tools-info.js +0 -12
- package/lib/base-package-manager.d.ts +28 -0
- package/lib/base-package-manager.js +0 -7
- package/lib/bootstrap.js +3 -6
- package/lib/bun-package-manager.d.ts +16 -0
- package/lib/bun-package-manager.js +1 -14
- package/lib/color.d.ts +39 -0
- package/lib/color.js +0 -4
- package/lib/commands/add-platform.d.ts +14 -0
- package/lib/commands/add-platform.js +0 -1
- package/lib/commands/apple-login.d.ts +14 -0
- package/lib/commands/apple-login.js +0 -1
- package/lib/commands/appstore-list.d.ts +21 -0
- package/lib/commands/appstore-list.js +0 -1
- package/lib/commands/appstore-upload.d.ts +25 -0
- package/lib/commands/appstore-upload.js +0 -3
- package/lib/commands/build.d.ts +58 -0
- package/lib/commands/build.js +3 -3
- package/lib/commands/clean.d.ts +21 -0
- package/lib/commands/clean.js +1 -22
- package/lib/commands/command-base.d.ts +16 -0
- package/lib/commands/command-base.js +0 -1
- package/lib/commands/config.d.ts +30 -0
- package/lib/commands/config.js +0 -5
- package/lib/commands/create-project.d.ts +42 -0
- package/lib/commands/create-project.js +0 -6
- package/lib/commands/debug.d.ts +53 -0
- package/lib/commands/debug.js +2 -6
- package/lib/commands/deploy.d.ts +32 -0
- package/lib/commands/deploy.js +3 -3
- package/lib/commands/embedding/embed.d.ts +27 -0
- package/lib/commands/embedding/embed.js +0 -7
- package/lib/commands/extensibility/install-extension.d.ts +10 -0
- package/lib/commands/extensibility/install-extension.js +0 -1
- package/lib/commands/extensibility/list-extensions.d.ts +9 -0
- package/lib/commands/extensibility/list-extensions.js +0 -1
- package/lib/commands/extensibility/uninstall-extension.d.ts +10 -0
- package/lib/commands/extensibility/uninstall-extension.js +0 -1
- package/lib/commands/fonts.d.ts +12 -0
- package/lib/commands/fonts.js +0 -1
- package/lib/commands/generate-assets.d.ts +29 -0
- package/lib/commands/generate-assets.js +0 -1
- package/lib/commands/generate-help.d.ts +8 -0
- package/lib/commands/generate-help.js +0 -1
- package/lib/commands/generate.d.ts +12 -0
- package/lib/commands/generate.js +1 -48
- package/lib/commands/hooks/common.d.ts +22 -0
- package/lib/commands/hooks/common.js +1 -2
- package/lib/commands/hooks/hooks-lock.d.ts +24 -0
- package/lib/commands/hooks/hooks-lock.js +0 -1
- package/lib/commands/hooks/hooks.d.ts +17 -0
- package/lib/commands/hooks/hooks.js +0 -1
- package/lib/commands/info.d.ts +8 -0
- package/lib/commands/info.js +0 -1
- package/lib/commands/install.d.ts +25 -0
- package/lib/commands/install.js +0 -1
- package/lib/commands/list-platforms.d.ts +11 -0
- package/lib/commands/list-platforms.js +0 -1
- package/lib/commands/migrate.d.ts +13 -0
- package/lib/commands/migrate.js +0 -1
- package/lib/commands/native-add.d.ts +49 -0
- package/lib/commands/native-add.js +0 -5
- package/lib/commands/platform-clean.d.ts +17 -0
- package/lib/commands/platform-clean.js +0 -1
- package/lib/commands/plugin/add-plugin.d.ts +13 -0
- package/lib/commands/plugin/add-plugin.js +0 -1
- package/lib/commands/plugin/build-plugin.d.ts +18 -0
- package/lib/commands/plugin/build-plugin.js +0 -1
- package/lib/commands/plugin/create-plugin.d.ts +30 -0
- package/lib/commands/plugin/create-plugin.js +0 -5
- package/lib/commands/plugin/list-plugins.d.ts +12 -0
- package/lib/commands/plugin/list-plugins.js +0 -1
- package/lib/commands/plugin/remove-plugin.d.ts +14 -0
- package/lib/commands/plugin/remove-plugin.js +0 -2
- package/lib/commands/plugin/update-plugin.d.ts +13 -0
- package/lib/commands/plugin/update-plugin.js +0 -1
- package/lib/commands/post-install.d.ts +16 -0
- package/lib/commands/post-install.js +0 -6
- package/lib/commands/prepare.d.ts +40 -0
- package/lib/commands/prepare.js +4 -9
- package/lib/commands/preview.d.ts +18 -0
- package/lib/commands/preview.js +1 -2
- package/lib/commands/remove-platform.d.ts +14 -0
- package/lib/commands/remove-platform.js +0 -1
- package/lib/commands/resources/resources-update.d.ts +13 -0
- package/lib/commands/resources/resources-update.js +0 -2
- package/lib/commands/run.d.ts +61 -0
- package/lib/commands/run.js +0 -1
- package/lib/commands/setup.d.ts +8 -0
- package/lib/commands/setup.js +0 -1
- package/lib/commands/start.d.ts +9 -0
- 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.d.ts +22 -0
- package/lib/commands/typings.js +1 -2
- package/lib/commands/update-platform.d.ts +17 -0
- package/lib/commands/update-platform.js +0 -5
- package/lib/commands/update.d.ts +21 -0
- package/lib/commands/update.js +0 -2
- package/lib/commands/widget.d.ts +24 -0
- package/lib/commands/widget.js +0 -19
- package/lib/common/bootstrap.js +0 -1
- package/lib/common/child-process.d.ts +17 -0
- package/lib/common/child-process.js +0 -3
- package/lib/common/codeGeneration/code-entity.d.ts +22 -0
- package/lib/common/codeGeneration/code-entity.js +0 -1
- package/lib/common/codeGeneration/code-printer.d.ts +10 -0
- package/lib/common/codeGeneration/code-printer.js +0 -1
- package/lib/common/command-params.d.ts +14 -0
- package/lib/common/command-params.js +0 -1
- package/lib/common/commands/analytics.d.ts +30 -0
- package/lib/common/commands/analytics.js +0 -3
- package/lib/common/commands/autocompletion.d.ts +35 -0
- package/lib/common/commands/autocompletion.js +0 -3
- package/lib/common/commands/device/device-log-stream.d.ts +16 -0
- package/lib/common/commands/device/device-log-stream.js +0 -1
- package/lib/common/commands/device/get-file.d.ts +14 -0
- package/lib/common/commands/device/get-file.js +0 -2
- package/lib/common/commands/device/list-applications.d.ts +10 -0
- package/lib/common/commands/device/list-applications.js +0 -1
- package/lib/common/commands/device/list-devices.d.ts +16 -0
- package/lib/common/commands/device/list-devices.js +0 -3
- package/lib/common/commands/device/list-files.d.ts +14 -0
- package/lib/common/commands/device/list-files.js +0 -2
- package/lib/common/commands/device/put-file.d.ts +14 -0
- package/lib/common/commands/device/put-file.js +0 -2
- package/lib/common/commands/device/run-application.d.ts +13 -0
- package/lib/common/commands/device/run-application.js +0 -1
- package/lib/common/commands/device/stop-application.d.ts +10 -0
- package/lib/common/commands/device/stop-application.js +0 -1
- package/lib/common/commands/device/uninstall-application.d.ts +10 -0
- package/lib/common/commands/device/uninstall-application.js +0 -1
- package/lib/common/commands/doctor.d.ts +23 -0
- package/lib/common/commands/doctor.js +3 -3
- package/lib/common/commands/generate-messages.d.ts +13 -0
- package/lib/common/commands/generate-messages.js +0 -1
- package/lib/common/commands/help.d.ts +14 -0
- package/lib/common/commands/help.js +0 -1
- package/lib/common/commands/package-manager-get.d.ts +10 -0
- package/lib/common/commands/package-manager-get.js +0 -1
- package/lib/common/commands/package-manager-set.d.ts +11 -0
- package/lib/common/commands/package-manager-set.js +0 -1
- package/lib/common/commands/post-install.d.ts +9 -0
- package/lib/common/commands/post-install.js +0 -1
- package/lib/common/commands/preuninstall.d.ts +16 -0
- package/lib/common/commands/preuninstall.js +2 -11
- package/lib/common/commands/proxy/proxy-base.d.ts +13 -0
- package/lib/common/commands/proxy/proxy-base.js +0 -4
- package/lib/common/commands/proxy/proxy-clear.d.ts +9 -0
- package/lib/common/commands/proxy/proxy-clear.js +0 -1
- package/lib/common/commands/proxy/proxy-get.d.ts +9 -0
- package/lib/common/commands/proxy/proxy-get.js +0 -1
- package/lib/common/commands/proxy/proxy-set.d.ts +23 -0
- package/lib/common/commands/proxy/proxy-set.js +0 -1
- package/lib/common/common-lib.js +0 -1
- package/lib/common/constants.d.ts +117 -0
- package/lib/common/constants.js +14 -12
- 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 +49 -118
- package/lib/common/decorators.d.ts +13 -0
- package/lib/common/decorators.js +0 -48
- 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 +15 -52
- package/lib/common/definitions/key-commands.js +8 -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/dispatchers.js +1 -10
- package/lib/common/enums.d.ts +34 -0
- package/lib/common/enums.js +42 -0
- package/lib/common/errors.d.ts +15 -0
- package/lib/common/errors.js +4 -13
- package/lib/common/file-system.d.ts +77 -0
- package/lib/common/file-system.js +2 -13
- package/lib/common/header.d.ts +1 -0
- package/lib/common/header.js +0 -3
- package/lib/common/helpers.d.ts +62 -0
- package/lib/common/helpers.js +6 -92
- package/lib/common/host-info.d.ts +24 -0
- package/lib/common/host-info.js +0 -4
- package/lib/common/http-client.d.ts +14 -0
- package/lib/common/http-client.js +11 -20
- package/lib/common/logger/appenders/cli-appender.d.ts +2 -0
- package/lib/common/logger/appenders/cli-appender.js +0 -4
- package/lib/common/logger/appenders/emit-appender.d.ts +5 -0
- package/lib/common/logger/appenders/emit-appender.js +0 -4
- package/lib/common/logger/layouts/cli-layout.d.ts +2 -0
- package/lib/common/logger/layouts/cli-layout.js +0 -1
- package/lib/common/logger/logger.d.ts +24 -0
- package/lib/common/logger/logger.js +0 -5
- package/lib/common/messages/messages.d.ts +7 -0
- package/lib/common/messages/messages.js +0 -6
- package/lib/common/mobile/android/android-application-manager.d.ts +31 -0
- package/lib/common/mobile/android/android-application-manager.js +1 -20
- package/lib/common/mobile/android/android-debug-bridge-result-handler.d.ts +9 -0
- package/lib/common/mobile/android/android-debug-bridge-result-handler.js +0 -1
- package/lib/common/mobile/android/android-debug-bridge.d.ts +24 -0
- package/lib/common/mobile/android/android-debug-bridge.js +0 -6
- package/lib/common/mobile/android/android-device-file-system.d.ts +26 -0
- package/lib/common/mobile/android/android-device-file-system.js +0 -4
- package/lib/common/mobile/android/android-device-hash-service.d.ts +23 -0
- package/lib/common/mobile/android/android-device-hash-service.js +0 -3
- package/lib/common/mobile/android/android-device.d.ts +24 -0
- package/lib/common/mobile/android/android-device.js +0 -8
- package/lib/common/mobile/android/android-emulator-services.d.ts +23 -0
- package/lib/common/mobile/android/android-emulator-services.js +1 -2
- package/lib/common/mobile/android/android-ini-file-parser.d.ts +8 -0
- package/lib/common/mobile/android/android-ini-file-parser.js +0 -9
- package/lib/common/mobile/android/android-log-filter.d.ts +11 -0
- package/lib/common/mobile/android/android-log-filter.js +0 -4
- package/lib/common/mobile/android/android-virtual-device-service.d.ts +37 -0
- package/lib/common/mobile/android/android-virtual-device-service.js +0 -26
- package/lib/common/mobile/android/device-android-debug-bridge.d.ts +18 -0
- package/lib/common/mobile/android/device-android-debug-bridge.js +0 -1
- package/lib/common/mobile/android/genymotion/genymotion-service.d.ts +26 -0
- package/lib/common/mobile/android/genymotion/genymotion-service.js +1 -6
- package/lib/common/mobile/android/genymotion/virtualbox-service.d.ts +13 -0
- package/lib/common/mobile/android/genymotion/virtualbox-service.js +0 -11
- package/lib/common/mobile/android/logcat-helper.d.ts +17 -0
- package/lib/common/mobile/android/logcat-helper.js +0 -13
- package/lib/common/mobile/application-manager-base.d.ts +27 -0
- package/lib/common/mobile/application-manager-base.js +0 -6
- package/lib/common/mobile/device-emitter.d.ts +8 -0
- package/lib/common/mobile/device-emitter.js +0 -4
- package/lib/common/mobile/device-log-emitter.d.ts +9 -0
- package/lib/common/mobile/device-log-emitter.js +0 -1
- package/lib/common/mobile/device-log-provider-base.d.ts +21 -0
- package/lib/common/mobile/device-log-provider-base.js +0 -1
- package/lib/common/mobile/device-log-provider.d.ts +21 -0
- package/lib/common/mobile/device-log-provider.js +0 -23
- package/lib/common/mobile/device-platforms-constants.d.ts +8 -0
- package/lib/common/mobile/device-platforms-constants.js +0 -1
- package/lib/common/mobile/emulator-helper.d.ts +32 -0
- package/lib/common/mobile/emulator-helper.js +0 -3
- package/lib/common/mobile/ios/device/ios-application-manager.d.ts +27 -0
- package/lib/common/mobile/ios/device/ios-application-manager.js +0 -3
- package/lib/common/mobile/ios/device/ios-device-file-system.d.ts +19 -0
- package/lib/common/mobile/ios/device/ios-device-file-system.js +0 -9
- package/lib/common/mobile/ios/device/ios-device-operations.d.ts +29 -0
- package/lib/common/mobile/ios/device/ios-device-operations.js +0 -4
- package/lib/common/mobile/ios/device/ios-device.d.ts +32 -0
- package/lib/common/mobile/ios/device/ios-device.js +0 -4
- package/lib/common/mobile/ios/ios-device-base.d.ts +24 -0
- 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.d.ts +6 -0
- package/lib/common/mobile/ios/ios-log-filter.js +0 -1
- package/lib/common/mobile/ios/simulator/ios-emulator-services.d.ts +1 -0
- package/lib/common/mobile/ios/simulator/ios-emulator-services.js +0 -4
- package/lib/common/mobile/ios/simulator/ios-sim-resolver.d.ts +7 -0
- package/lib/common/mobile/ios/simulator/ios-sim-resolver.js +0 -1
- package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.d.ts +27 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +0 -6
- package/lib/common/mobile/ios/simulator/ios-simulator-device.d.ts +27 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-device.js +0 -5
- package/lib/common/mobile/ios/simulator/ios-simulator-file-system.d.ts +16 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-file-system.js +0 -1
- package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.d.ts +15 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.js +0 -1
- package/lib/common/mobile/local-to-device-path-data-factory.d.ts +3 -0
- package/lib/common/mobile/local-to-device-path-data-factory.js +0 -1
- package/lib/common/mobile/log-filter.d.ts +13 -0
- package/lib/common/mobile/log-filter.js +0 -2
- package/lib/common/mobile/logging-levels.d.ts +4 -0
- package/lib/common/mobile/logging-levels.js +0 -1
- package/lib/common/mobile/mobile-core/android-device-discovery.d.ts +16 -0
- package/lib/common/mobile/mobile-core/android-device-discovery.js +0 -2
- package/lib/common/mobile/mobile-core/android-emulator-discovery.d.ts +11 -0
- package/lib/common/mobile/mobile-core/android-emulator-discovery.js +0 -3
- package/lib/common/mobile/mobile-core/android-process-service.d.ts +33 -0
- package/lib/common/mobile/mobile-core/android-process-service.js +0 -32
- package/lib/common/mobile/mobile-core/device-discovery.d.ts +12 -0
- package/lib/common/mobile/mobile-core/device-discovery.js +0 -1
- package/lib/common/mobile/mobile-core/devices-service.d.ts +99 -0
- package/lib/common/mobile/mobile-core/devices-service.js +0 -69
- package/lib/common/mobile/mobile-core/ios-device-discovery.d.ts +12 -0
- package/lib/common/mobile/mobile-core/ios-device-discovery.js +0 -2
- package/lib/common/mobile/mobile-core/ios-simulator-discovery.d.ts +20 -0
- package/lib/common/mobile/mobile-core/ios-simulator-discovery.js +0 -3
- package/lib/common/mobile/mobile-helper.d.ts +22 -0
- package/lib/common/mobile/mobile-helper.js +0 -1
- package/lib/common/mobile/wp8/wp8-emulator-services.d.ts +1 -0
- package/lib/common/mobile/wp8/wp8-emulator-services.js +0 -1
- package/lib/common/opener.d.ts +4 -0
- package/lib/common/opener.js +0 -1
- package/lib/common/os-info.d.ts +7 -0
- package/lib/common/os-info.js +0 -1
- package/lib/common/plist-parser.d.ts +5 -0
- package/lib/common/plist-parser.js +0 -1
- package/lib/common/project-helper.d.ts +15 -0
- package/lib/common/project-helper.js +0 -1
- package/lib/common/prompter.d.ts +23 -0
- package/lib/common/prompter.js +1 -9
- package/lib/common/queue.d.ts +8 -0
- package/lib/common/queue.js +0 -1
- package/lib/common/resource-loader.d.ts +10 -0
- package/lib/common/resource-loader.js +0 -1
- package/lib/common/services/analytics/google-analytics-custom-dimensions.d.ts +8 -15
- package/lib/common/services/analytics/google-analytics-custom-dimensions.js +13 -0
- package/lib/common/services/auto-completion-service.d.ts +36 -0
- package/lib/common/services/auto-completion-service.js +1 -13
- package/lib/common/services/cancellation.d.ts +1 -0
- package/lib/common/services/cancellation.js +2 -2
- 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 +10 -18
- package/lib/common/services/help-service.d.ts +46 -0
- package/lib/common/services/help-service.js +4 -11
- package/lib/common/services/hooks-service.d.ts +40 -0
- package/lib/common/services/hooks-service.js +110 -64
- package/lib/common/services/ios-notification-service.d.ts +7 -0
- package/lib/common/services/ios-notification-service.js +0 -1
- package/lib/common/services/json-file-settings-service.d.ts +24 -0
- package/lib/common/services/json-file-settings-service.js +0 -6
- package/lib/common/services/lock-service.d.ts +18 -0
- package/lib/common/services/lock-service.js +0 -6
- package/lib/common/services/message-contract-generator.d.ts +8 -0
- package/lib/common/services/message-contract-generator.js +0 -1
- package/lib/common/services/messages-service.d.ts +15 -0
- package/lib/common/services/messages-service.js +0 -1
- package/lib/common/services/micro-templating-service.d.ts +12 -0
- package/lib/common/services/micro-templating-service.js +0 -6
- package/lib/common/services/net-service.d.ts +13 -0
- package/lib/common/services/net-service.js +0 -3
- package/lib/common/services/project-files-manager.d.ts +14 -0
- package/lib/common/services/project-files-manager.js +0 -5
- package/lib/common/services/project-files-provider-base.d.ts +12 -0
- package/lib/common/services/project-files-provider-base.js +0 -1
- package/lib/common/services/proxy-service.d.ts +12 -0
- package/lib/common/services/proxy-service.js +0 -1
- package/lib/common/services/qr.d.ts +7 -0
- package/lib/common/services/qr.js +0 -1
- package/lib/common/services/settings-service.d.ts +10 -0
- package/lib/common/services/settings-service.js +0 -1
- package/lib/common/services/xcode-select-service.d.ts +12 -0
- package/lib/common/services/xcode-select-service.js +0 -1
- package/lib/common/utils.d.ts +10 -0
- package/lib/common/utils.js +0 -1
- package/lib/common/validators/project-name-validator.d.ts +18 -0
- package/lib/common/validators/project-name-validator.js +0 -1
- package/lib/common/validators/validation-result.d.ts +7 -0
- package/lib/common/validators/validation-result.js +0 -1
- package/lib/common/verify-node-version.d.ts +3 -0
- package/lib/common/verify-node-version.js +2 -8
- package/lib/common/yok.d.ts +60 -0
- package/lib/common/yok.js +173 -165
- package/lib/config.d.ts +45 -0
- package/lib/config.js +3 -23
- package/lib/constants-provider.d.ts +4 -0
- package/lib/constants-provider.js +0 -1
- package/lib/constants.d.ts +331 -0
- package/lib/constants.js +59 -58
- 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/build-controller.js +3 -4
- package/lib/controllers/debug-controller.d.ts +31 -0
- package/lib/controllers/debug-controller.js +3 -8
- package/lib/controllers/deploy-controller.d.ts +7 -0
- package/lib/controllers/deploy-controller.js +0 -1
- package/lib/controllers/migrate-controller.d.ts +67 -0
- package/lib/controllers/migrate-controller.js +4 -90
- package/lib/controllers/platform-controller.d.ts +20 -0
- package/lib/controllers/platform-controller.js +2 -9
- package/lib/controllers/prepare-controller.d.ts +45 -0
- package/lib/controllers/prepare-controller.js +8 -24
- package/lib/controllers/run-controller.d.ts +57 -0
- package/lib/controllers/run-controller.js +1 -81
- package/lib/controllers/update-controller-base.d.ts +27 -0
- package/lib/controllers/update-controller-base.js +0 -1
- package/lib/controllers/update-controller.d.ts +36 -0
- package/lib/controllers/update-controller.js +0 -11
- package/lib/data/build-data.d.ts +33 -0
- package/lib/data/build-data.js +0 -1
- package/lib/data/controller-data-base.d.ts +8 -0
- package/lib/data/controller-data-base.js +0 -1
- package/lib/data/debug-data.d.ts +2 -0
- package/lib/data/debug-data.js +0 -1
- package/lib/data/platform-data.d.ts +7 -0
- package/lib/data/platform-data.js +0 -1
- package/lib/data/prepare-data.d.ts +22 -0
- package/lib/data/prepare-data.js +0 -1
- package/lib/data/run-data.d.ts +6 -0
- package/lib/data/run-data.js +0 -1
- package/lib/declarations.d.ts +2 -1
- package/lib/definitions/ios.d.ts +36 -1
- package/lib/definitions/project.d.ts +1 -6
- package/lib/definitions/system-warnings.d.ts +3 -3
- package/lib/definitions/system-warnings.js +8 -0
- package/lib/detached-processes/cleanup-js-subprocess.d.ts +2 -0
- package/lib/detached-processes/cleanup-js-subprocess.js +3 -8
- package/lib/detached-processes/cleanup-process.d.ts +1 -0
- package/lib/detached-processes/cleanup-process.js +15 -18
- package/lib/detached-processes/detached-process-enums.d.ts +15 -67
- package/lib/detached-processes/detached-process-enums.js +24 -0
- package/lib/detached-processes/file-log-service.d.ts +7 -0
- package/lib/detached-processes/file-log-service.js +2 -2
- package/lib/device-path-provider.d.ts +9 -0
- package/lib/device-path-provider.js +0 -1
- package/lib/device-sockets/ios/app-debug-socket-proxy-factory.d.ts +22 -0
- package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +0 -7
- package/lib/device-sockets/ios/notification.d.ts +13 -0
- package/lib/device-sockets/ios/notification.js +0 -3
- package/lib/device-sockets/ios/socket-request-executor.d.ts +11 -0
- package/lib/device-sockets/ios/socket-request-executor.js +0 -3
- package/lib/helpers/android-bundle-validator-helper.d.ts +18 -0
- package/lib/helpers/android-bundle-validator-helper.js +1 -2
- package/lib/helpers/deploy-command-helper.d.ts +16 -0
- package/lib/helpers/deploy-command-helper.js +0 -1
- package/lib/helpers/key-command-helper.d.ts +13 -0
- package/lib/helpers/key-command-helper.js +3 -4
- package/lib/helpers/livesync-command-helper.d.ts +36 -0
- package/lib/helpers/livesync-command-helper.js +2 -4
- package/lib/helpers/network-connectivity-validator.d.ts +12 -0
- package/lib/helpers/network-connectivity-validator.js +0 -1
- package/lib/helpers/options-track-helper.d.ts +14 -0
- package/lib/helpers/options-track-helper.js +4 -3
- package/lib/helpers/package-path-helper.d.ts +2 -0
- package/lib/helpers/package-path-helper.js +0 -1
- package/lib/helpers/platform-command-helper.d.ts +35 -0
- package/lib/helpers/platform-command-helper.js +2 -7
- package/lib/helpers/version-validator-helper.d.ts +8 -0
- package/lib/helpers/version-validator-helper.js +0 -1
- package/lib/key-commands/bootstrap.d.ts +1 -0
- package/lib/key-commands/bootstrap.js +3 -3
- package/lib/key-commands/index.d.ts +166 -0
- package/lib/key-commands/index.js +5 -5
- package/lib/nativescript-cli-lib-bootstrap.d.ts +1 -0
- package/lib/nativescript-cli-lib-bootstrap.js +0 -4
- package/lib/nativescript-cli-lib.d.ts +1 -0
- package/lib/nativescript-cli-lib.js +0 -1
- package/lib/nativescript-cli.d.ts +1 -0
- package/lib/nativescript-cli.js +2 -11
- package/lib/node/pbxproj-dom-xcode.d.ts +4 -0
- package/lib/node/pbxproj-dom-xcode.js +0 -1
- package/lib/node/xcode.d.ts +2 -0
- package/lib/node/xcode.js +0 -1
- package/lib/node-package-manager.d.ts +16 -0
- package/lib/node-package-manager.js +1 -11
- package/lib/options.d.ts +33 -0
- package/lib/options.js +186 -183
- package/lib/package-installation-manager.d.ts +30 -0
- package/lib/package-installation-manager.js +1 -8
- package/lib/package-manager.d.ts +32 -0
- package/lib/package-manager.js +0 -2
- package/lib/platform-command-param.d.ts +10 -0
- package/lib/platform-command-param.js +0 -1
- package/lib/pnpm-package-manager.d.ts +16 -0
- package/lib/pnpm-package-manager.js +1 -4
- package/lib/project-data.d.ts +58 -0
- package/lib/project-data.js +0 -12
- package/lib/providers/project-files-provider.d.ts +12 -0
- package/lib/providers/project-files-provider.js +0 -1
- package/lib/resolvers/livesync-service-resolver.d.ts +9 -0
- package/lib/resolvers/livesync-service-resolver.js +0 -1
- package/lib/services/analytics/analytics-broker-process.d.ts +1 -0
- package/lib/services/analytics/analytics-broker-process.js +8 -10
- package/lib/services/analytics/analytics-broker.d.ts +11 -0
- package/lib/services/analytics/analytics-broker.js +2 -2
- package/lib/services/analytics/analytics-service.d.ts +46 -0
- package/lib/services/analytics/analytics-service.js +29 -29
- package/lib/services/analytics/google-analytics-provider.d.ts +22 -0
- package/lib/services/analytics/google-analytics-provider.js +96 -92
- package/lib/services/analytics-settings-service.d.ts +1 -0
- package/lib/services/analytics-settings-service.js +0 -5
- package/lib/services/android/android-bundle-tool-service.d.ts +27 -0
- package/lib/services/android/android-bundle-tool-service.js +102 -4
- package/lib/services/android/gradle-build-args-service.d.ts +17 -0
- package/lib/services/android/gradle-build-args-service.js +0 -3
- package/lib/services/android/gradle-build-service.d.ts +12 -0
- package/lib/services/android/gradle-build-service.js +0 -1
- package/lib/services/android/gradle-command-service.d.ts +11 -0
- package/lib/services/android/gradle-command-service.js +0 -1
- package/lib/services/android-device-debug-service.d.ts +30 -0
- package/lib/services/android-device-debug-service.js +0 -6
- package/lib/services/android-plugin-build-service.d.ts +55 -0
- package/lib/services/android-plugin-build-service.js +2 -31
- package/lib/services/android-project-service.d.ts +75 -0
- package/lib/services/android-project-service.js +4 -71
- package/lib/services/android-resources-migration-service.d.ts +17 -0
- package/lib/services/android-resources-migration-service.js +0 -7
- package/lib/services/apple-portal/apple-portal-application-service.d.ts +12 -0
- package/lib/services/apple-portal/apple-portal-application-service.js +0 -1
- package/lib/services/apple-portal/apple-portal-cookie-service.d.ts +10 -0
- package/lib/services/apple-portal/apple-portal-cookie-service.js +0 -1
- package/lib/services/apple-portal/apple-portal-session-service.d.ts +19 -0
- package/lib/services/apple-portal/apple-portal-session-service.js +4 -6
- package/lib/services/apple-portal/srp/srp-wrapper.d.ts +29 -0
- package/lib/services/apple-portal/srp/srp-wrapper.js +1 -4
- package/lib/services/assets-generation/assets-generation-service.d.ts +24 -0
- package/lib/services/assets-generation/assets-generation-service.js +13 -11
- package/lib/services/build-artifacts-service.d.ts +16 -0
- package/lib/services/build-artifacts-service.js +1 -2
- package/lib/services/build-data-service.d.ts +7 -0
- package/lib/services/build-data-service.js +0 -1
- package/lib/services/build-info-file-service.d.ts +16 -0
- package/lib/services/build-info-file-service.js +0 -1
- package/lib/services/bundler/bundler-compiler-service.d.ts +50 -0
- package/lib/services/bundler/bundler-compiler-service.js +3 -145
- package/lib/services/bundler/bundler.d.ts +75 -0
- package/lib/services/bundler/bundler.js +0 -1
- package/lib/services/cleanup-service.d.ts +29 -0
- package/lib/services/cleanup-service.js +10 -13
- package/lib/services/cocoapods-platform-manager.d.ts +17 -0
- package/lib/services/cocoapods-platform-manager.js +0 -9
- package/lib/services/cocoapods-service.d.ts +47 -0
- package/lib/services/cocoapods-service.js +1 -21
- package/lib/services/debug-data-service.d.ts +7 -0
- package/lib/services/debug-data-service.js +0 -1
- package/lib/services/debug-service-base.d.ts +12 -0
- package/lib/services/debug-service-base.js +0 -7
- package/lib/services/device/device-install-app-service.d.ts +19 -0
- package/lib/services/device/device-install-app-service.js +1 -2
- package/lib/services/doctor-service.d.ts +51 -0
- package/lib/services/doctor-service.js +20 -32
- package/lib/services/extensibility-service.d.ts +36 -0
- package/lib/services/extensibility-service.js +126 -13
- package/lib/services/files-hash-service.d.ts +17 -0
- package/lib/services/files-hash-service.js +0 -1
- package/lib/services/hmr-status-service.d.ts +19 -0
- package/lib/services/hmr-status-service.js +0 -2
- package/lib/services/info-service.d.ts +6 -0
- package/lib/services/info-service.js +0 -1
- package/lib/services/initialize-service.d.ts +8 -0
- package/lib/services/initialize-service.js +2 -5
- package/lib/services/ios/export-options-plist-service.d.ts +13 -0
- package/lib/services/ios/export-options-plist-service.js +0 -4
- package/lib/services/ios/ios-signing-service.d.ts +33 -0
- package/lib/services/ios/ios-signing-service.js +0 -4
- 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 -138
- package/lib/services/ios/xcodebuild-args-service.d.ts +20 -0
- package/lib/services/ios/xcodebuild-args-service.js +0 -29
- package/lib/services/ios/xcodebuild-command-service.d.ts +17 -0
- package/lib/services/ios/xcodebuild-command-service.js +0 -3
- package/lib/services/ios/xcodebuild-service.d.ts +13 -0
- package/lib/services/ios/xcodebuild-service.js +1 -2
- package/lib/services/ios-debugger-port-service.d.ts +20 -0
- package/lib/services/ios-debugger-port-service.js +0 -1
- package/lib/services/ios-device-debug-service.d.ts +29 -0
- package/lib/services/ios-device-debug-service.js +0 -1
- package/lib/services/ios-entitlements-service.d.ts +19 -0
- package/lib/services/ios-entitlements-service.js +3 -4
- package/lib/services/ios-extensions-service.d.ts +12 -0
- package/lib/services/ios-extensions-service.js +0 -1
- package/lib/services/ios-log-filter.d.ts +11 -0
- package/lib/services/ios-log-filter.js +0 -20
- package/lib/services/ios-native-target-service.d.ts +14 -0
- package/lib/services/ios-native-target-service.js +5 -6
- package/lib/services/ios-project-service.d.ts +108 -0
- package/lib/services/ios-project-service.js +9 -135
- package/lib/services/ios-provision-service.d.ts +18 -0
- package/lib/services/ios-provision-service.js +0 -3
- package/lib/services/ios-watch-app-service.d.ts +39 -0
- package/lib/services/ios-watch-app-service.js +18 -75
- package/lib/services/ip-service.d.ts +10 -0
- package/lib/services/ip-service.js +0 -2
- package/lib/services/itmstransporter-service.d.ts +26 -0
- package/lib/services/itmstransporter-service.js +0 -1
- package/lib/services/karma-execution.d.ts +1 -0
- package/lib/services/karma-execution.js +0 -2
- package/lib/services/livesync/android-device-livesync-service-base.d.ts +19 -0
- package/lib/services/livesync/android-device-livesync-service-base.js +0 -1
- package/lib/services/livesync/android-device-livesync-service.d.ts +24 -0
- package/lib/services/livesync/android-device-livesync-service.js +0 -2
- package/lib/services/livesync/android-device-livesync-sockets-service.d.ts +36 -0
- package/lib/services/livesync/android-device-livesync-sockets-service.js +0 -3
- package/lib/services/livesync/android-livesync-service.d.ts +16 -0
- package/lib/services/livesync/android-livesync-service.js +0 -1
- package/lib/services/livesync/android-livesync-tool.d.ts +58 -0
- package/lib/services/livesync/android-livesync-tool.js +0 -4
- package/lib/services/livesync/device-livesync-service-base.d.ts +13 -0
- package/lib/services/livesync/device-livesync-service-base.js +0 -2
- package/lib/services/livesync/ios-device-livesync-service.d.ts +28 -0
- package/lib/services/livesync/ios-device-livesync-service.js +0 -7
- package/lib/services/livesync/ios-livesync-service.d.ts +17 -0
- package/lib/services/livesync/ios-livesync-service.js +0 -55
- package/lib/services/livesync/livesync-socket.d.ts +5 -0
- package/lib/services/livesync/livesync-socket.js +0 -1
- package/lib/services/livesync/platform-livesync-service-base.d.ts +25 -0
- package/lib/services/livesync/platform-livesync-service-base.js +0 -5
- package/lib/services/livesync-process-data-service.d.ts +10 -0
- package/lib/services/livesync-process-data-service.js +0 -1
- package/lib/services/log-parser-service.d.ts +11 -0
- package/lib/services/log-parser-service.js +0 -1
- package/lib/services/log-source-map-service.d.ts +28 -0
- package/lib/services/log-source-map-service.js +0 -15
- package/lib/services/marking-mode-service.d.ts +12 -0
- package/lib/services/marking-mode-service.js +10 -8
- package/lib/services/metadata-filtering-service.d.ts +19 -0
- package/lib/services/metadata-filtering-service.js +0 -1
- package/lib/services/npm-config-service.d.ts +7 -0
- package/lib/services/npm-config-service.js +0 -4
- package/lib/services/pacote-service.d.ts +16 -0
- package/lib/services/pacote-service.js +0 -7
- package/lib/services/performance-service.d.ts +19 -0
- package/lib/services/performance-service.js +2 -3
- package/lib/services/platform/add-platform-service.d.ts +21 -0
- package/lib/services/platform/add-platform-service.js +2 -49
- package/lib/services/platform/platform-validation-service.d.ts +17 -0
- package/lib/services/platform/platform-validation-service.js +0 -1
- package/lib/services/platform/prepare-native-platform-service.d.ts +15 -0
- package/lib/services/platform/prepare-native-platform-service.js +3 -5
- package/lib/services/platform-environment-requirements.d.ts +15 -0
- package/lib/services/platform-environment-requirements.js +4 -8
- package/lib/services/platform-project-service-base.d.ts +14 -0
- package/lib/services/platform-project-service-base.js +0 -1
- package/lib/services/platforms-data-service.d.ts +9 -0
- package/lib/services/platforms-data-service.js +0 -1
- package/lib/services/plugins-service.d.ts +60 -0
- package/lib/services/plugins-service.js +2 -20
- package/lib/services/prepare-data-service.d.ts +7 -0
- package/lib/services/prepare-data-service.js +0 -1
- package/lib/services/project-backup-service.d.ts +12 -0
- package/lib/services/project-backup-service.js +0 -4
- package/lib/services/project-changes-service.d.ts +30 -0
- package/lib/services/project-changes-service.js +3 -14
- package/lib/services/project-cleanup-service.d.ts +13 -0
- package/lib/services/project-cleanup-service.js +0 -2
- package/lib/services/project-config-service.d.ts +33 -0
- package/lib/services/project-config-service.js +35 -32
- package/lib/services/project-data-service.d.ts +48 -0
- package/lib/services/project-data-service.js +7 -36
- package/lib/services/project-name-service.d.ts +16 -0
- package/lib/services/project-name-service.js +4 -5
- package/lib/services/project-service.d.ts +34 -0
- package/lib/services/project-service.js +0 -10
- package/lib/services/project-templates-service.d.ts +18 -0
- package/lib/services/project-templates-service.js +2 -3
- package/lib/services/qr-code-terminal-service.d.ts +5 -0
- package/lib/services/qr-code-terminal-service.js +0 -1
- package/lib/services/require-service.d.ts +3 -0
- package/lib/services/require-service.js +0 -1
- package/lib/services/start-service.d.ts +30 -0
- package/lib/services/start-service.js +0 -1
- package/lib/services/temp-service.d.ts +14 -0
- package/lib/services/temp-service.js +0 -3
- package/lib/services/terminal-spinner-service.d.ts +5 -0
- package/lib/services/terminal-spinner-service.js +0 -2
- package/lib/services/test-execution-service.d.ts +26 -0
- package/lib/services/test-execution-service.js +3 -9
- package/lib/services/test-initialization-service.d.ts +10 -0
- package/lib/services/test-initialization-service.js +0 -4
- package/lib/services/timeline-profiler-service.d.ts +18 -0
- package/lib/services/timeline-profiler-service.js +0 -1
- package/lib/services/user-settings-service.d.ts +14 -0
- package/lib/services/user-settings-service.js +0 -1
- package/lib/services/versions-service.d.ts +5 -0
- package/lib/services/versions-service.js +5 -6
- package/lib/services/watch-ignore-list-service.d.ts +7 -0
- package/lib/services/watch-ignore-list-service.js +0 -1
- package/lib/services/xcconfig-service.d.ts +15 -0
- package/lib/services/xcconfig-service.js +45 -12
- package/lib/services/xcproj-service.d.ts +1 -0
- package/lib/services/xcproj-service.js +0 -1
- package/lib/shared-event-bus.d.ts +1 -0
- package/lib/shared-event-bus.js +0 -6
- package/lib/sys-info.d.ts +18 -0
- package/lib/sys-info.js +2 -2
- package/lib/tools/config-manipulation/config-transformer.d.ts +28 -0
- package/lib/tools/config-manipulation/config-transformer.js +15 -19
- package/lib/tools/node-modules/node-modules-builder.d.ts +9 -0
- package/lib/tools/node-modules/node-modules-builder.js +0 -1
- package/lib/tools/node-modules/node-modules-dependencies-builder.d.ts +10 -0
- package/lib/tools/node-modules/node-modules-dependencies-builder.js +0 -6
- 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/yarn-package-manager.js +0 -1
- package/lib/yarn2-package-manager.d.ts +18 -0
- package/lib/yarn2-package-manager.js +0 -3
- package/package.json +11 -118
- package/postinstall.js +7 -2
- package/lib/.d.ts +0 -504
- package/lib/services/analytics/google-analytics-cross-client-custom-dimensions.d.ts +0 -6
- 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
|
@@ -18,7 +18,6 @@ class GradleBuildArgsService {
|
|
|
18
18
|
if (await this.$analyticsService.isEnabled(this.$staticConfig.TRACK_FEATURE_USAGE_SETTING_NAME)) {
|
|
19
19
|
args.push("-PgatherAnalyticsData=true");
|
|
20
20
|
}
|
|
21
|
-
// allow modifying gradle args from a `before-build-task-args` hook
|
|
22
21
|
await this.$hooksService.executeBeforeHooks("build-task-args", {
|
|
23
22
|
hookArgs: { args },
|
|
24
23
|
});
|
|
@@ -31,7 +30,6 @@ class GradleBuildArgsService {
|
|
|
31
30
|
}
|
|
32
31
|
getBaseTaskArgs(buildData) {
|
|
33
32
|
const args = this.getBuildLoggingArgs();
|
|
34
|
-
// ensure we initialize project data
|
|
35
33
|
this.$projectData.initializeProjectData(buildData.projectDir);
|
|
36
34
|
args.push(`-PappPath=${this.$projectData.getAppDirectoryPath()}`, `-PappResourcesPath=${this.$projectData.getAppResourcesDirectoryPath()}`);
|
|
37
35
|
if (buildData.gradleArgs) {
|
|
@@ -63,4 +61,3 @@ class GradleBuildArgsService {
|
|
|
63
61
|
}
|
|
64
62
|
exports.GradleBuildArgsService = GradleBuildArgsService;
|
|
65
63
|
yok_1.injector.register("gradleBuildArgsService", GradleBuildArgsService);
|
|
66
|
-
//# sourceMappingURL=gradle-build-args-service.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from "events";
|
|
2
|
+
import { IGradleBuildService, IGradleBuildArgsService, IGradleCommandService } from "../../definitions/gradle";
|
|
3
|
+
import { IAndroidBuildData } from "../../definitions/build";
|
|
4
|
+
import { IChildProcess } from "../../common/declarations";
|
|
5
|
+
export declare class GradleBuildService extends EventEmitter implements IGradleBuildService {
|
|
6
|
+
private $childProcess;
|
|
7
|
+
private $gradleBuildArgsService;
|
|
8
|
+
private $gradleCommandService;
|
|
9
|
+
constructor($childProcess: IChildProcess, $gradleBuildArgsService: IGradleBuildArgsService, $gradleCommandService: IGradleCommandService);
|
|
10
|
+
buildProject(projectRoot: string, buildData: IAndroidBuildData): Promise<void>;
|
|
11
|
+
cleanProject(projectRoot: string, buildData: IAndroidBuildData): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IChildProcess, IErrors, IHostInfo, ISpawnResult } from "../../common/declarations";
|
|
2
|
+
import { IGradleCommandService, IGradleCommandOptions } from "../../definitions/gradle";
|
|
3
|
+
export declare class GradleCommandService implements IGradleCommandService {
|
|
4
|
+
private $childProcess;
|
|
5
|
+
private $errors;
|
|
6
|
+
private $hostInfo;
|
|
7
|
+
private $logger;
|
|
8
|
+
constructor($childProcess: IChildProcess, $errors: IErrors, $hostInfo: IHostInfo, $logger: ILogger);
|
|
9
|
+
executeCommand(gradleArgs: string[], options: IGradleCommandOptions): Promise<ISpawnResult>;
|
|
10
|
+
private executeCommandSafe;
|
|
11
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DebugServiceBase } from "./debug-service-base";
|
|
2
|
+
import { IDeviceDebugService, IDebugData, IDebugOptions, IDebugResultInfo } from "../definitions/debug";
|
|
3
|
+
import { IStaticConfig } from "../declarations";
|
|
4
|
+
import { IErrors, INet } from "../common/declarations";
|
|
5
|
+
import { ICleanupService } from "../definitions/cleanup-service";
|
|
6
|
+
export declare class AndroidDeviceDebugService extends DebugServiceBase implements IDeviceDebugService {
|
|
7
|
+
protected device: Mobile.IAndroidDevice;
|
|
8
|
+
protected $devicesService: Mobile.IDevicesService;
|
|
9
|
+
protected $cleanupService: ICleanupService;
|
|
10
|
+
private $errors;
|
|
11
|
+
private $logger;
|
|
12
|
+
private $androidProcessService;
|
|
13
|
+
private $staticConfig;
|
|
14
|
+
private $net;
|
|
15
|
+
private $deviceLogProvider;
|
|
16
|
+
private _packageName;
|
|
17
|
+
private deviceIdentifier;
|
|
18
|
+
get platform(): string;
|
|
19
|
+
constructor(device: Mobile.IAndroidDevice, $devicesService: Mobile.IDevicesService, $cleanupService: ICleanupService, $errors: IErrors, $logger: ILogger, $androidProcessService: Mobile.IAndroidProcessService, $staticConfig: IStaticConfig, $net: INet, $deviceLogProvider: Mobile.IDeviceLogProvider);
|
|
20
|
+
debug(debugData: IDebugData, debugOptions: IDebugOptions): Promise<IDebugResultInfo>;
|
|
21
|
+
debugStop(): Promise<void>;
|
|
22
|
+
private removePortForwarding;
|
|
23
|
+
private getForwardedDebugPort;
|
|
24
|
+
private unixSocketForward;
|
|
25
|
+
private debugCore;
|
|
26
|
+
private printDebugPort;
|
|
27
|
+
private validateRunningApp;
|
|
28
|
+
private waitForDebugServer;
|
|
29
|
+
private isAppRunning;
|
|
30
|
+
}
|
|
@@ -33,7 +33,6 @@ class AndroidDeviceDebugService extends debug_service_base_1.DebugServiceBase {
|
|
|
33
33
|
async debug(debugData, debugOptions) {
|
|
34
34
|
this._packageName = debugData.applicationIdentifier;
|
|
35
35
|
const result = await this.debugCore(debugData.applicationIdentifier, debugOptions);
|
|
36
|
-
// TODO: extract this logic outside the debug service
|
|
37
36
|
if (debugOptions.start && !debugOptions.justlaunch) {
|
|
38
37
|
const pid = await this.$androidProcessService.getAppProcessId(this.deviceIdentifier, debugData.applicationIdentifier);
|
|
39
38
|
if (pid) {
|
|
@@ -56,7 +55,6 @@ class AndroidDeviceDebugService extends debug_service_base_1.DebugServiceBase {
|
|
|
56
55
|
`tcp:${port}`,
|
|
57
56
|
]);
|
|
58
57
|
}
|
|
59
|
-
// TODO: Remove this method and reuse logic from androidProcessService
|
|
60
58
|
async getForwardedDebugPort(deviceId, packageName) {
|
|
61
59
|
let port = -1;
|
|
62
60
|
const forwardsResult = await this.device.adb.executeCommand([
|
|
@@ -64,7 +62,6 @@ class AndroidDeviceDebugService extends debug_service_base_1.DebugServiceBase {
|
|
|
64
62
|
"--list",
|
|
65
63
|
]);
|
|
66
64
|
const unixSocketName = `${packageName}-inspectorServer`;
|
|
67
|
-
//matches 123a188909e6czzc tcp:40001 localabstract:org.nativescript.testUnixSockets-debug
|
|
68
65
|
const regexp = new RegExp(`(?:${deviceId} tcp:)([\\d]+)(?= localabstract:${unixSocketName})`, "g");
|
|
69
66
|
const match = regexp.exec(forwardsResult);
|
|
70
67
|
if (match) {
|
|
@@ -80,7 +77,6 @@ class AndroidDeviceDebugService extends debug_service_base_1.DebugServiceBase {
|
|
|
80
77
|
});
|
|
81
78
|
return port;
|
|
82
79
|
}
|
|
83
|
-
// TODO: Remove this method and reuse logic from androidProcessService
|
|
84
80
|
async unixSocketForward(local, remote) {
|
|
85
81
|
await this.device.adb.executeCommand([
|
|
86
82
|
"forward",
|
|
@@ -106,7 +102,6 @@ class AndroidDeviceDebugService extends debug_service_base_1.DebugServiceBase {
|
|
|
106
102
|
async printDebugPort(deviceId, port) {
|
|
107
103
|
this.$logger.info("device: " + deviceId + " debug port: " + port + "\n");
|
|
108
104
|
}
|
|
109
|
-
// TODO: extract this logic outside the debug service
|
|
110
105
|
async validateRunningApp(deviceId, packageName) {
|
|
111
106
|
if (!(await this.isAppRunning(packageName, deviceId))) {
|
|
112
107
|
this.$errors.fail(`The application ${packageName} does not appear to be running on ${deviceId} or is not built with debugging enabled. Try starting the application manually.`);
|
|
@@ -149,4 +144,3 @@ __decorate([
|
|
|
149
144
|
(0, decorators_1.performanceLog)()
|
|
150
145
|
], AndroidDeviceDebugService.prototype, "debugCore", null);
|
|
151
146
|
yok_1.injector.register("androidDeviceDebugService", AndroidDeviceDebugService, false);
|
|
152
|
-
//# sourceMappingURL=android-device-debug-service.js.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { INodePackageManager, IWatchIgnoreListService, IOptions } from "../declarations";
|
|
2
|
+
import { IProjectData, IProjectDataService } from "../definitions/project";
|
|
3
|
+
import { IAndroidPluginBuildService, IPluginBuildOptions } from "../definitions/android-plugin-migrator";
|
|
4
|
+
import { IFileSystem, IChildProcess, IHostInfo, IErrors, IHooksService } from "../common/declarations";
|
|
5
|
+
import { IFilesHashService } from "../definitions/files-hash-service";
|
|
6
|
+
import { IInjector } from "../common/definitions/yok";
|
|
7
|
+
export declare class AndroidPluginBuildService implements IAndroidPluginBuildService {
|
|
8
|
+
private $fs;
|
|
9
|
+
private $childProcess;
|
|
10
|
+
private $hostInfo;
|
|
11
|
+
private $options;
|
|
12
|
+
private $logger;
|
|
13
|
+
private $packageManager;
|
|
14
|
+
private $projectData;
|
|
15
|
+
private $projectDataService;
|
|
16
|
+
private $devicePlatformsConstants;
|
|
17
|
+
private $errors;
|
|
18
|
+
private $filesHashService;
|
|
19
|
+
$hooksService: IHooksService;
|
|
20
|
+
private $injector;
|
|
21
|
+
private $watchIgnoreListService;
|
|
22
|
+
private get $platformsDataService();
|
|
23
|
+
constructor($fs: IFileSystem, $childProcess: IChildProcess, $hostInfo: IHostInfo, $options: IOptions, $logger: ILogger, $packageManager: INodePackageManager, $projectData: IProjectData, $projectDataService: IProjectDataService, $devicePlatformsConstants: Mobile.IDevicePlatformsConstants, $errors: IErrors, $filesHashService: IFilesHashService, $hooksService: IHooksService, $injector: IInjector, $watchIgnoreListService: IWatchIgnoreListService);
|
|
24
|
+
private static MANIFEST_ROOT;
|
|
25
|
+
private getAndroidSourceDirectories;
|
|
26
|
+
private getManifest;
|
|
27
|
+
private updateManifestContent;
|
|
28
|
+
private createManifestContent;
|
|
29
|
+
private getXml;
|
|
30
|
+
private getIncludeGradleCompileDependenciesScope;
|
|
31
|
+
private getScope;
|
|
32
|
+
buildAar(options: IPluginBuildOptions): Promise<boolean>;
|
|
33
|
+
private cleanPluginDir;
|
|
34
|
+
private getSourceFilesHashes;
|
|
35
|
+
private writePluginHashInfo;
|
|
36
|
+
private shouldBuildAar;
|
|
37
|
+
private getPathToPluginBuildDataFile;
|
|
38
|
+
private updateManifest;
|
|
39
|
+
private copySourceSetDirectories;
|
|
40
|
+
private setupGradle;
|
|
41
|
+
private getRuntimeGradleVersions;
|
|
42
|
+
private getLatestRuntimeVersion;
|
|
43
|
+
private getLocalGradleVersions;
|
|
44
|
+
private getGradleVersions;
|
|
45
|
+
private getGradleVersionsCore;
|
|
46
|
+
private replaceGradleVersion;
|
|
47
|
+
private replaceGradleAndroidPluginVersion;
|
|
48
|
+
private replaceFileContent;
|
|
49
|
+
private addCompileDependencies;
|
|
50
|
+
private copyAar;
|
|
51
|
+
migrateIncludeGradle(options: IPluginBuildOptions): boolean;
|
|
52
|
+
private buildPlugin;
|
|
53
|
+
private validateOptions;
|
|
54
|
+
private validatePlatformsAndroidDirPathOption;
|
|
55
|
+
}
|
|
@@ -54,15 +54,12 @@ class AndroidPluginBuildService {
|
|
|
54
54
|
async updateManifestContent(oldManifestContent, defaultPackageName) {
|
|
55
55
|
let xml = await this.getXml(oldManifestContent);
|
|
56
56
|
let packageName = defaultPackageName;
|
|
57
|
-
// if the manifest file is full-featured and declares settings inside the manifest scope
|
|
58
57
|
if (xml["manifest"]) {
|
|
59
58
|
if (xml["manifest"]["$"]["package"]) {
|
|
60
59
|
packageName = xml["manifest"]["$"]["package"];
|
|
61
60
|
}
|
|
62
|
-
// set the xml as the value to iterate over its properties
|
|
63
61
|
xml = xml["manifest"];
|
|
64
62
|
}
|
|
65
|
-
// if the manifest file doesn't have a <manifest> scope, only the first setting will be picked up
|
|
66
63
|
const newManifest = { manifest: {} };
|
|
67
64
|
for (const prop in xml) {
|
|
68
65
|
newManifest.manifest[prop] = xml[prop];
|
|
@@ -135,14 +132,6 @@ class AndroidPluginBuildService {
|
|
|
135
132
|
}
|
|
136
133
|
return result;
|
|
137
134
|
}
|
|
138
|
-
/**
|
|
139
|
-
* Returns whether the build has completed or not
|
|
140
|
-
* @param {Object} options
|
|
141
|
-
* @param {string} options.pluginName - The name of the plugin. E.g. 'nativescript-barcodescanner'
|
|
142
|
-
* @param {string} options.platformsAndroidDirPath - The path to the 'plugin/src/platforms/android' directory.
|
|
143
|
-
* @param {string} options.aarOutputDir - The path where the aar should be copied after a successful build.
|
|
144
|
-
* @param {string} options.tempPluginDirPath - The path where the android plugin will be built.
|
|
145
|
-
*/
|
|
146
135
|
async buildAar(options) {
|
|
147
136
|
this.validateOptions(options);
|
|
148
137
|
const manifestFilePath = this.getManifest(options.platformsAndroidDirPath);
|
|
@@ -178,7 +167,6 @@ class AndroidPluginBuildService {
|
|
|
178
167
|
return shouldBuildAar;
|
|
179
168
|
}
|
|
180
169
|
cleanPluginDir(pluginTempDir) {
|
|
181
|
-
// In case plugin was already built in the current process, we need to clean the old sources as they may break the new build.
|
|
182
170
|
this.$fs.deleteDirectory(pluginTempDir);
|
|
183
171
|
this.$fs.ensureDirectoryExists(pluginTempDir);
|
|
184
172
|
}
|
|
@@ -252,7 +240,6 @@ class AndroidPluginBuildService {
|
|
|
252
240
|
this.replaceGradleAndroidPluginVersion(buildGradlePath, runtimeGradleVersions.gradleAndroidPluginVersion);
|
|
253
241
|
this.replaceFileContent(buildGradlePath, "{{pluginName}}", pluginName);
|
|
254
242
|
this.replaceFileContent(settingsGradlePath, "{{pluginName}}", pluginName);
|
|
255
|
-
// gets the package from the AndroidManifest to use as the namespace or fallback to the `org.nativescript.${shortPluginName}`
|
|
256
243
|
const shortPluginName = (0, helpers_1.getShortPluginName)(pluginName);
|
|
257
244
|
const manifestPath = path.join(pluginTempDir, "src", "main", "AndroidManifest.xml");
|
|
258
245
|
const manifestContent = this.$fs.readText(manifestPath);
|
|
@@ -305,7 +292,6 @@ class AndroidPluginBuildService {
|
|
|
305
292
|
var _a, _b;
|
|
306
293
|
const packageName = ((_b = (_a = this.$projectData.nsConfig) === null || _a === void 0 ? void 0 : _a.android) === null || _b === void 0 ? void 0 : _b.runtimePackageName) ||
|
|
307
294
|
constants_1.SCOPED_ANDROID_RUNTIME_NAME;
|
|
308
|
-
// try reading from installed runtime first before reading from the npm registry...
|
|
309
295
|
const installedRuntimePackageJSONPath = (0, resolve_package_path_1.resolvePackageJSONPath)(packageName, {
|
|
310
296
|
paths: [this.$projectData.projectDir],
|
|
311
297
|
});
|
|
@@ -341,23 +327,13 @@ class AndroidPluginBuildService {
|
|
|
341
327
|
}
|
|
342
328
|
const packageName = ((_b = (_a = this.$projectData.nsConfig) === null || _a === void 0 ? void 0 : _a.android) === null || _b === void 0 ? void 0 : _b.runtimePackageName) ||
|
|
343
329
|
constants_1.SCOPED_ANDROID_RUNTIME_NAME;
|
|
344
|
-
// fallback to reading from npm...
|
|
345
330
|
try {
|
|
346
331
|
let output = await this.$packageManager.view(`${packageName}@${runtimeVersion}`, { version_info: true });
|
|
347
332
|
output = (_c = output === null || output === void 0 ? void 0 : output["version_info"]) !== null && _c !== void 0 ? _c : output;
|
|
348
333
|
if (!output) {
|
|
349
|
-
/**
|
|
350
|
-
* fallback to the old 'gradle' key in package.json
|
|
351
|
-
*
|
|
352
|
-
* format:
|
|
353
|
-
*
|
|
354
|
-
* gradle: { version: '6.4', android: '3.6.4' }
|
|
355
|
-
*
|
|
356
|
-
*/
|
|
357
334
|
output = await this.$packageManager.view(`${packageName}@${runtimeVersion}`, { gradle: true });
|
|
358
335
|
output = (_d = output === null || output === void 0 ? void 0 : output["gradle"]) !== null && _d !== void 0 ? _d : output;
|
|
359
336
|
const { version, android } = output;
|
|
360
|
-
// covert output to the new format...
|
|
361
337
|
output = {
|
|
362
338
|
gradle: version,
|
|
363
339
|
gradleAndroid: android,
|
|
@@ -429,10 +405,6 @@ class AndroidPluginBuildService {
|
|
|
429
405
|
this.$errors.fail(`No built aar found at ${pathToBuiltAar}`);
|
|
430
406
|
}
|
|
431
407
|
}
|
|
432
|
-
/**
|
|
433
|
-
* @param {Object} options
|
|
434
|
-
* @param {string} options.platformsAndroidDirPath - The path to the 'plugin/src/platforms/android' directory.
|
|
435
|
-
*/
|
|
436
408
|
migrateIncludeGradle(options) {
|
|
437
409
|
this.validatePlatformsAndroidDirPathOption(options);
|
|
438
410
|
const includeGradleFilePath = path.join(options.platformsAndroidDirPath, constants_1.INCLUDE_GRADLE_NAME);
|
|
@@ -485,8 +457,8 @@ class AndroidPluginBuildService {
|
|
|
485
457
|
};
|
|
486
458
|
if (this.$options.hostProjectPath) {
|
|
487
459
|
opts.env = {
|
|
488
|
-
USER_PROJECT_PLATFORMS_ANDROID: path.resolve((0, process_1.cwd)(), this.$options.hostProjectPath),
|
|
489
|
-
...process.env,
|
|
460
|
+
USER_PROJECT_PLATFORMS_ANDROID: path.resolve((0, process_1.cwd)(), this.$options.hostProjectPath),
|
|
461
|
+
...process.env,
|
|
490
462
|
};
|
|
491
463
|
}
|
|
492
464
|
try {
|
|
@@ -533,4 +505,3 @@ __decorate([
|
|
|
533
505
|
(0, helpers_1.hook)("buildAndroidPlugin")
|
|
534
506
|
], AndroidPluginBuildService.prototype, "buildPlugin", null);
|
|
535
507
|
yok_1.injector.register("androidPluginBuildService", AndroidPluginBuildService);
|
|
536
|
-
//# sourceMappingURL=android-plugin-build-service.js.map
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as semver from "semver";
|
|
2
|
+
import * as projectServiceBaseLib from "./platform-project-service-base";
|
|
3
|
+
import { IProjectData, IProjectDataService, IValidatePlatformOutput } from "../definitions/project";
|
|
4
|
+
import { IPlatformData, IPlatformEnvironmentRequirements } from "../definitions/platform";
|
|
5
|
+
import { IAndroidToolsInfo, IAndroidResourcesMigrationService, IOptions, IDependencyData } from "../declarations";
|
|
6
|
+
import { IAndroidBuildData } from "../definitions/build";
|
|
7
|
+
import { IPluginData } from "../definitions/plugins";
|
|
8
|
+
import { IErrors, IFileSystem, IAnalyticsService, IRelease, ISpawnResult } from "../common/declarations";
|
|
9
|
+
import { IAndroidPluginBuildService } from "../definitions/android-plugin-migrator";
|
|
10
|
+
import { IFilesHashService } from "../definitions/files-hash-service";
|
|
11
|
+
import { IGradleCommandService, IGradleBuildService } from "../definitions/gradle";
|
|
12
|
+
import { IInjector } from "../common/definitions/yok";
|
|
13
|
+
import { INotConfiguredEnvOptions } from "../common/definitions/commands";
|
|
14
|
+
export declare class AndroidProjectService extends projectServiceBaseLib.PlatformProjectServiceBase {
|
|
15
|
+
private $androidToolsInfo;
|
|
16
|
+
private $errors;
|
|
17
|
+
private $logger;
|
|
18
|
+
private $options;
|
|
19
|
+
private $injector;
|
|
20
|
+
private $devicePlatformsConstants;
|
|
21
|
+
private $androidPluginBuildService;
|
|
22
|
+
private $platformEnvironmentRequirements;
|
|
23
|
+
private $androidResourcesMigrationService;
|
|
24
|
+
private $filesHashService;
|
|
25
|
+
private $gradleCommandService;
|
|
26
|
+
private $gradleBuildService;
|
|
27
|
+
private $analyticsService;
|
|
28
|
+
private static VALUES_DIRNAME;
|
|
29
|
+
private static VALUES_VERSION_DIRNAME_PREFIX;
|
|
30
|
+
private static ANDROID_PLATFORM_NAME;
|
|
31
|
+
private static MIN_RUNTIME_VERSION_WITH_GRADLE;
|
|
32
|
+
constructor($androidToolsInfo: IAndroidToolsInfo, $errors: IErrors, $fs: IFileSystem, $logger: ILogger, $projectDataService: IProjectDataService, $options: IOptions, $injector: IInjector, $devicePlatformsConstants: Mobile.IDevicePlatformsConstants, $androidPluginBuildService: IAndroidPluginBuildService, $platformEnvironmentRequirements: IPlatformEnvironmentRequirements, $androidResourcesMigrationService: IAndroidResourcesMigrationService, $filesHashService: IFilesHashService, $gradleCommandService: IGradleCommandService, $gradleBuildService: IGradleBuildService, $analyticsService: IAnalyticsService);
|
|
33
|
+
private _platformData;
|
|
34
|
+
getPlatformData(projectData: IProjectData): IPlatformData;
|
|
35
|
+
getCurrentPlatformVersion(platformData: IPlatformData, projectData: IProjectData): string;
|
|
36
|
+
validateOptions(): Promise<boolean>;
|
|
37
|
+
getAppResourcesDestinationDirectoryPath(projectData: IProjectData): string;
|
|
38
|
+
validate(projectData: IProjectData, options: IOptions, notConfiguredEnvOptions?: INotConfiguredEnvOptions): Promise<IValidatePlatformOutput>;
|
|
39
|
+
createProject(frameworkDir: string, frameworkVersion: string, projectData: IProjectData): Promise<void>;
|
|
40
|
+
private getResDestinationDir;
|
|
41
|
+
private cleanResValues;
|
|
42
|
+
interpolateData(projectData: IProjectData): Promise<void>;
|
|
43
|
+
interpolateConfigurationFile(projectData: IProjectData): void;
|
|
44
|
+
private getProjectNameFromId;
|
|
45
|
+
afterCreateProject(projectRoot: string): void;
|
|
46
|
+
updatePlatform(currentVersion: string, newVersion: string, canUpdate: boolean, projectData: IProjectData, addPlatform?: Function, removePlatforms?: (platforms: string[]) => Promise<void>): Promise<boolean>;
|
|
47
|
+
buildProject(projectRoot: string, projectData: IProjectData, buildData: IAndroidBuildData): Promise<void>;
|
|
48
|
+
buildForDeploy(projectRoot: string, projectData: IProjectData, buildData?: IAndroidBuildData): Promise<void>;
|
|
49
|
+
isPlatformPrepared(projectRoot: string, projectData: IProjectData): boolean;
|
|
50
|
+
getFrameworkFilesExtensions(): string[];
|
|
51
|
+
prepareProject(): Promise<void>;
|
|
52
|
+
ensureConfigurationFileInAppResources(projectData: IProjectData): void;
|
|
53
|
+
prepareAppResources(projectData: IProjectData): void;
|
|
54
|
+
preparePluginNativeCode(pluginData: IPluginData, projectData: IProjectData): Promise<void>;
|
|
55
|
+
processConfigurationFilesFromAppResources(): Promise<void>;
|
|
56
|
+
removePluginNativeCode(pluginData: IPluginData, projectData: IProjectData): Promise<void>;
|
|
57
|
+
beforePrepareAllPlugins(projectData: IProjectData, dependencies?: IDependencyData[]): Promise<IDependencyData[]>;
|
|
58
|
+
handleNativeDependenciesChange(projectData: IProjectData, opts: IRelease): Promise<void>;
|
|
59
|
+
private filterUniqueDependencies;
|
|
60
|
+
private provideDependenciesJson;
|
|
61
|
+
private static isNativeAndroidDependency;
|
|
62
|
+
stopServices(projectRoot: string): Promise<ISpawnResult>;
|
|
63
|
+
cleanProject(projectRoot: string): Promise<void>;
|
|
64
|
+
cleanDeviceTempFolder(deviceIdentifier: string, projectData: IProjectData): Promise<void>;
|
|
65
|
+
checkForChanges(): Promise<void>;
|
|
66
|
+
getDeploymentTarget(projectData: IProjectData): semver.SemVer;
|
|
67
|
+
private copy;
|
|
68
|
+
private validatePackageName;
|
|
69
|
+
private validateProjectName;
|
|
70
|
+
private getLegacyAppResourcesDestinationDirPath;
|
|
71
|
+
private getUpdatedAppResourcesDestinationDirPath;
|
|
72
|
+
private cleanUpPreparedResources;
|
|
73
|
+
private trackKotlinUsage;
|
|
74
|
+
private tryGetAndroidBuildStatistics;
|
|
75
|
+
}
|
|
@@ -18,40 +18,7 @@ const constants_1 = require("../common/constants");
|
|
|
18
18
|
const helpers_1 = require("../common/helpers");
|
|
19
19
|
const decorators_1 = require(".././common/decorators");
|
|
20
20
|
const yok_1 = require("../common/yok");
|
|
21
|
-
|
|
22
|
-
// we sort the native dependencies topologically to make sure they are processed in the right order
|
|
23
|
-
// native dependenciess need to be sorted so the deepst dependencies are built before it's parents
|
|
24
|
-
//
|
|
25
|
-
// for example, given this dep structure (assuming these are all native dependencies that need to be built)
|
|
26
|
-
// (note: we list all dependencies at the root level, so the leaf nodes are essentially references to the root nodes)
|
|
27
|
-
//
|
|
28
|
-
// |- dep1
|
|
29
|
-
// |- dep2
|
|
30
|
-
// |- |- dep3
|
|
31
|
-
// |- |- dep4
|
|
32
|
-
// |- |- |- dep5
|
|
33
|
-
// |- dep3
|
|
34
|
-
// |- dep4
|
|
35
|
-
// |- |- dep5
|
|
36
|
-
// |- dep5
|
|
37
|
-
//
|
|
38
|
-
// It is sorted:
|
|
39
|
-
//
|
|
40
|
-
// |- dep1
|
|
41
|
-
// |- dep3
|
|
42
|
-
// |- dep5
|
|
43
|
-
// |- dep4 # depends on dep5, so dep5 must be built first, ie above ^
|
|
44
|
-
// |- |- dep5
|
|
45
|
-
// |- dep2 # depends on dep3, dep4 (and dep5 through dep4) so all of them must be built first before dep2 is built
|
|
46
|
-
// |- |- dep3
|
|
47
|
-
// |- |- dep4
|
|
48
|
-
// |- |- |- dep5
|
|
49
|
-
//
|
|
50
|
-
// for more details see: https://wikiless.org/wiki/Topological_sorting?lang=en
|
|
51
|
-
//
|
|
52
|
-
function topologicalSortNativeDependencies(dependencies, start = [], depth = 0, total = 0 // do not pass in, we calculate it in the initial run!
|
|
53
|
-
) {
|
|
54
|
-
// we set the total on the initial call - and never increment it, as it's used for esacaping the recursion
|
|
21
|
+
function topologicalSortNativeDependencies(dependencies, start = [], depth = 0, total = 0) {
|
|
55
22
|
if (total === 0) {
|
|
56
23
|
total = dependencies.length;
|
|
57
24
|
}
|
|
@@ -65,8 +32,6 @@ function topologicalSortNativeDependencies(dependencies, start = [], depth = 0,
|
|
|
65
32
|
return sortedDeps;
|
|
66
33
|
}, start);
|
|
67
34
|
const remainingDeps = dependencies.filter((nativeDep) => !sortedDeps.includes(nativeDep));
|
|
68
|
-
// recurse if we still have remaining deps
|
|
69
|
-
// the second condition here prevents infinite recursion
|
|
70
35
|
if (remainingDeps.length && sortedDeps.length < total) {
|
|
71
36
|
return topologicalSortNativeDependencies(remainingDeps, sortedDeps, depth + 1, total);
|
|
72
37
|
}
|
|
@@ -120,7 +85,7 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
120
85
|
constants.APK_DIR,
|
|
121
86
|
];
|
|
122
87
|
const packageName = this.getProjectNameFromId(projectData);
|
|
123
|
-
const runtimePackage = this.$projectDataService.getRuntimePackage(projectData.projectDir,
|
|
88
|
+
const runtimePackage = this.$projectDataService.getRuntimePackage(projectData.projectDir, constants.PlatformTypes.android);
|
|
124
89
|
this._platformData = {
|
|
125
90
|
frameworkPackageName: runtimePackage.name,
|
|
126
91
|
normalizedPlatformName: "Android",
|
|
@@ -161,7 +126,7 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
161
126
|
configurationFileName: constants.MANIFEST_FILE_NAME,
|
|
162
127
|
configurationFilePath: path.join(...configurationsDirectoryArr),
|
|
163
128
|
relativeToFrameworkConfigurationFilePath: path.join(constants.SRC_DIR, constants.MAIN_DIR, constants.MANIFEST_FILE_NAME),
|
|
164
|
-
fastLivesyncFileExtensions: [".jpg", ".gif", ".png", ".bmp", ".webp"],
|
|
129
|
+
fastLivesyncFileExtensions: [".jpg", ".gif", ".png", ".bmp", ".webp"],
|
|
165
130
|
};
|
|
166
131
|
}
|
|
167
132
|
return this._platformData;
|
|
@@ -214,7 +179,6 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
214
179
|
const targetSdkVersion = androidToolsInfo && androidToolsInfo.targetSdkVersion;
|
|
215
180
|
this.$logger.trace(`Using Android SDK '${targetSdkVersion}'.`);
|
|
216
181
|
this.copy(this.getPlatformData(projectData).projectRoot, frameworkDir, "*", "-R");
|
|
217
|
-
// TODO: Check if we actually need this and if it should be targetSdk or compileSdk
|
|
218
182
|
this.cleanResValues(targetSdkVersion, projectData);
|
|
219
183
|
}
|
|
220
184
|
getResDestinationDir(projectData) {
|
|
@@ -246,7 +210,6 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
246
210
|
_.map(directoriesToClean, (dir) => this.$fs.deleteDirectory(dir));
|
|
247
211
|
}
|
|
248
212
|
async interpolateData(projectData) {
|
|
249
|
-
// Interpolate the apilevel and package
|
|
250
213
|
this.interpolateConfigurationFile(projectData);
|
|
251
214
|
const appResourcesDirectoryPath = projectData.getAppResourcesDirectoryPath();
|
|
252
215
|
let stringsFilePath;
|
|
@@ -262,10 +225,8 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
262
225
|
const gradleSettingsFilePath = path.join(this.getPlatformData(projectData).projectRoot, "settings.gradle");
|
|
263
226
|
shell.sed("-i", /__PROJECT_NAME__/, this.getProjectNameFromId(projectData), gradleSettingsFilePath);
|
|
264
227
|
try {
|
|
265
|
-
// will replace applicationId in app/App_Resources/Android/app.gradle if it has not been edited by the user
|
|
266
228
|
const appGradleContent = this.$fs.readText(projectData.appGradlePath);
|
|
267
229
|
if (appGradleContent.indexOf(constants.PACKAGE_PLACEHOLDER_NAME) !== -1) {
|
|
268
|
-
//TODO: For compatibility with old templates. Once all templates are updated should delete.
|
|
269
230
|
shell.sed("-i", new RegExp(constants.PACKAGE_PLACEHOLDER_NAME), projectData.projectIdentifiers.android, projectData.appGradlePath);
|
|
270
231
|
}
|
|
271
232
|
}
|
|
@@ -319,7 +280,6 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
319
280
|
return [".jar", ".dat"];
|
|
320
281
|
}
|
|
321
282
|
async prepareProject() {
|
|
322
|
-
// Intentionally left empty.
|
|
323
283
|
}
|
|
324
284
|
ensureConfigurationFileInAppResources(projectData) {
|
|
325
285
|
const appResourcesDirectoryPath = projectData.appResourcesDirectoryPath;
|
|
@@ -336,7 +296,6 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
336
296
|
this.$logger.warn("No manifest found in " + originalAndroidManifestFilePath);
|
|
337
297
|
return;
|
|
338
298
|
}
|
|
339
|
-
// Overwrite the AndroidManifest from runtime.
|
|
340
299
|
if (!appResourcesDirStructureHasMigrated) {
|
|
341
300
|
this.$fs.copyFile(originalAndroidManifestFilePath, this.getPlatformData(projectData).configurationFilePath);
|
|
342
301
|
}
|
|
@@ -353,8 +312,6 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
353
312
|
}
|
|
354
313
|
else {
|
|
355
314
|
this.$fs.copyFile(path.join(projectAppResourcesPath, platformData.normalizedPlatformName, "*"), platformsAppResourcesPath);
|
|
356
|
-
// https://github.com/NativeScript/android-runtime/issues/899
|
|
357
|
-
// App_Resources/Android/libs is reserved to user's aars and jars, but they should not be copied as resources
|
|
358
315
|
this.$fs.deleteDirectory(path.join(platformsAppResourcesPath, "libs"));
|
|
359
316
|
}
|
|
360
317
|
const androidToolsInfo = this.$androidToolsInfo.getToolsInfo({
|
|
@@ -364,7 +321,6 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
364
321
|
this.cleanResValues(compileSdkVersion, projectData);
|
|
365
322
|
}
|
|
366
323
|
async preparePluginNativeCode(pluginData, projectData) {
|
|
367
|
-
// build Android plugins which contain AndroidManifest.xml and/or resources
|
|
368
324
|
const pluginPlatformsFolderPath = this.getPluginPlatformsFolderPath(pluginData, AndroidProjectService.ANDROID_PLATFORM_NAME);
|
|
369
325
|
if (this.$fs.exists(pluginPlatformsFolderPath)) {
|
|
370
326
|
const options = {
|
|
@@ -386,7 +342,6 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
386
342
|
return;
|
|
387
343
|
}
|
|
388
344
|
async removePluginNativeCode(pluginData, projectData) {
|
|
389
|
-
// not implemented
|
|
390
345
|
}
|
|
391
346
|
async beforePrepareAllPlugins(projectData, dependencies) {
|
|
392
347
|
if (dependencies) {
|
|
@@ -400,7 +355,6 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
400
355
|
filterUniqueDependencies(dependencies) {
|
|
401
356
|
const depsDictionary = dependencies.reduce((dict, dep) => {
|
|
402
357
|
const collision = dict[dep.name];
|
|
403
|
-
// in case there are multiple dependencies to the same module, the one declared in the package.json takes precedence
|
|
404
358
|
if (!collision || collision.depth > dep.depth) {
|
|
405
359
|
dict[dep.name] = dep;
|
|
406
360
|
}
|
|
@@ -419,7 +373,6 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
419
373
|
name,
|
|
420
374
|
directory: path.relative(platformDir, directory),
|
|
421
375
|
dependencies: dependencies.filter((dep) => {
|
|
422
|
-
// filter out transient dependencies that don't have native dependencies
|
|
423
376
|
return (nativeDependencyData.findIndex((nativeDep) => nativeDep.name === dep) !== -1);
|
|
424
377
|
}),
|
|
425
378
|
};
|
|
@@ -427,7 +380,6 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
427
380
|
nativeDependencies = topologicalSortNativeDependencies(nativeDependencies);
|
|
428
381
|
const jsonContent = JSON.stringify(nativeDependencies, null, 4);
|
|
429
382
|
this.$fs.writeFile(dependenciesJsonPath, jsonContent);
|
|
430
|
-
// we sort all the dependencies to respect the topological sorting of the native dependencies
|
|
431
383
|
return dependencies.sort(function (a, b) {
|
|
432
384
|
return (nativeDependencies.findIndex((n) => n.name === a.name) -
|
|
433
385
|
nativeDependencies.findIndex((n) => n.name === b.name));
|
|
@@ -459,7 +411,6 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
459
411
|
await adb.executeShellCommand(["rm", "-rf", deviceRootPath]);
|
|
460
412
|
}
|
|
461
413
|
async checkForChanges() {
|
|
462
|
-
// Nothing android specific to check yet.
|
|
463
414
|
}
|
|
464
415
|
getDeploymentTarget(projectData) {
|
|
465
416
|
return;
|
|
@@ -469,12 +420,9 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
469
420
|
shell.cp(cpArg, paths, projectRoot);
|
|
470
421
|
}
|
|
471
422
|
validatePackageName(packageName) {
|
|
472
|
-
//Make the package conform to Java package types
|
|
473
|
-
//Enforce underscore limitation
|
|
474
423
|
if (!/^[a-zA-Z]+(\.[a-zA-Z0-9][a-zA-Z0-9_]*)+$/.test(packageName)) {
|
|
475
424
|
this.$errors.fail(`Package name must look like: com.company.Name. Got: ${packageName}`);
|
|
476
425
|
}
|
|
477
|
-
//Class is a reserved word
|
|
478
426
|
if (/\b[Cc]lass\b/.test(packageName)) {
|
|
479
427
|
this.$errors.fail("class is a reserved word");
|
|
480
428
|
}
|
|
@@ -483,7 +431,6 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
483
431
|
if (projectName === "") {
|
|
484
432
|
this.$errors.fail("Project name cannot be empty");
|
|
485
433
|
}
|
|
486
|
-
//Classes in Java don't begin with numbers
|
|
487
434
|
if (/^[0-9]/.test(projectName)) {
|
|
488
435
|
this.$errors.fail("Project name must not begin with a number");
|
|
489
436
|
}
|
|
@@ -504,19 +451,6 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
504
451
|
];
|
|
505
452
|
return path.join(this.getPlatformData(projectData).projectRoot, ...resourcePath);
|
|
506
453
|
}
|
|
507
|
-
/**
|
|
508
|
-
* The purpose of this method is to delete the previously prepared user resources.
|
|
509
|
-
* The content of the `<platforms>/android/.../res` directory is based on user's resources and gradle project template from android-runtime.
|
|
510
|
-
* During preparation of the `<path to user's App_Resources>/Android` we want to clean all the users files from previous preparation,
|
|
511
|
-
* but keep the ones that were introduced during `platform add` of the android-runtime.
|
|
512
|
-
* Currently the Gradle project template contains resources only in values and values-v21 directories.
|
|
513
|
-
* So the current logic of the method is cleaning al resources from `<platforms>/android/.../res` that are not in `values.*` directories
|
|
514
|
-
* and that exist in the `<path to user's App_Resources>/Android/.../res` directory
|
|
515
|
-
* This means that if user has a resource file in values-v29 for example, builds the project and then deletes this resource,
|
|
516
|
-
* it will be kept in platforms directory. Reference issue: `https://github.com/NativeScript/nativescript-cli/issues/5083`
|
|
517
|
-
* Same is valid for files in `drawable-<resolution>` directories - in case in user's resources there's drawable-hdpi directory,
|
|
518
|
-
* which is deleted after the first build of app, it will remain in platforms directory.
|
|
519
|
-
*/
|
|
520
454
|
cleanUpPreparedResources(projectData) {
|
|
521
455
|
let resourcesDirPath = path.join(projectData.appResourcesDirectoryPath, this.getPlatformData(projectData).normalizedPlatformName);
|
|
522
456
|
if (this.$androidResourcesMigrationService.hasMigrated(projectData.appResourcesDirectoryPath)) {
|
|
@@ -541,7 +475,7 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
|
|
|
541
475
|
const hasUseKotlinPropertyInAppData = `hasUseKotlinPropertyInApp${analyticsDelimiter}${buildStatistics.kotlinUsage.hasUseKotlinPropertyInApp}`;
|
|
542
476
|
const hasKotlinRuntimeClassesData = `hasKotlinRuntimeClasses${analyticsDelimiter}${buildStatistics.kotlinUsage.hasKotlinRuntimeClasses}`;
|
|
543
477
|
await this.$analyticsService.trackEventActionInGoogleAnalytics({
|
|
544
|
-
action:
|
|
478
|
+
action: constants.TrackActionNames.UsingKotlin,
|
|
545
479
|
additionalData: `${hasUseKotlinPropertyInAppData}${analyticsDelimiter}${hasKotlinRuntimeClassesData}`,
|
|
546
480
|
});
|
|
547
481
|
}
|
|
@@ -574,4 +508,3 @@ __decorate([
|
|
|
574
508
|
(0, helpers_1.hook)("buildAndroid")
|
|
575
509
|
], AndroidProjectService.prototype, "buildProject", null);
|
|
576
510
|
yok_1.injector.register("androidProjectService", AndroidProjectService);
|
|
577
|
-
//# sourceMappingURL=android-project-service.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IAndroidResourcesMigrationService } from "../declarations";
|
|
2
|
+
import { IFileSystem, IErrors } from "../common/declarations";
|
|
3
|
+
export declare class AndroidResourcesMigrationService implements IAndroidResourcesMigrationService {
|
|
4
|
+
private $fs;
|
|
5
|
+
private $errors;
|
|
6
|
+
private $logger;
|
|
7
|
+
private $devicePlatformsConstants;
|
|
8
|
+
private static ANDROID_DIR;
|
|
9
|
+
private static ANDROID_DIR_TEMP;
|
|
10
|
+
private static ANDROID_DIR_OLD;
|
|
11
|
+
constructor($fs: IFileSystem, $errors: IErrors, $logger: ILogger, $devicePlatformsConstants: Mobile.IDevicePlatformsConstants);
|
|
12
|
+
canMigrate(platformString: string): boolean;
|
|
13
|
+
hasMigrated(appResourcesDir: string): boolean;
|
|
14
|
+
migrate(appResourcesDir: string, backupLocation?: string): Promise<void>;
|
|
15
|
+
private tryMigrate;
|
|
16
|
+
private recover;
|
|
17
|
+
}
|
|
@@ -46,7 +46,6 @@ class AndroidResourcesMigrationService {
|
|
|
46
46
|
const appResourcesMainSourceSetResourcesDestination = path.join(appMainSourceSet, constants.RESOURCES_DIR);
|
|
47
47
|
this.$fs.ensureDirectoryExists(appResourcesDestination);
|
|
48
48
|
this.$fs.ensureDirectoryExists(appMainSourceSet);
|
|
49
|
-
// create /java, /res and /assets in the App_Resources/Android/src/main directory
|
|
50
49
|
this.$fs.ensureDirectoryExists(appResourcesMainSourceSetResourcesDestination);
|
|
51
50
|
this.$fs.ensureDirectoryExists(path.join(appMainSourceSet, "java"));
|
|
52
51
|
this.$fs.ensureDirectoryExists(path.join(appMainSourceSet, constants.ASSETS_DIR));
|
|
@@ -60,25 +59,20 @@ class AndroidResourcesMigrationService {
|
|
|
60
59
|
const resourceFiles = getFiles(appResourcesFiles);
|
|
61
60
|
resourceDirectories.forEach((dir) => {
|
|
62
61
|
if (path.basename(dir) !== "libs") {
|
|
63
|
-
// don't copy /App_Resources/Android/libs into the src/main/res/libs directory
|
|
64
62
|
this.$fs.copyFile(dir, appResourcesMainSourceSetResourcesDestination);
|
|
65
63
|
}
|
|
66
64
|
else {
|
|
67
|
-
// copy App_Resources/Android/libs to App_ResourcesNew/Android/libs
|
|
68
65
|
this.$fs.copyFile(dir, path.join(appResourcesDestination));
|
|
69
66
|
}
|
|
70
67
|
});
|
|
71
68
|
resourceFiles.forEach((file) => {
|
|
72
69
|
const fileName = path.basename(file);
|
|
73
70
|
if (fileName !== constants.MANIFEST_FILE_NAME) {
|
|
74
|
-
// don't copy AndroidManifest into /App_Resources/Android as it needs to be inside src/main/
|
|
75
71
|
this.$fs.copyFile(file, path.join(appResourcesDestination, fileName));
|
|
76
72
|
}
|
|
77
73
|
});
|
|
78
74
|
this.$fs.copyFile(path.join(originalAppResources, constants.MANIFEST_FILE_NAME), path.join(appMainSourceSet, constants.MANIFEST_FILE_NAME));
|
|
79
|
-
// rename the legacy app_resources to ANDROID_DIR_OLD
|
|
80
75
|
this.$fs.rename(originalAppResources, appResourcesBackup);
|
|
81
|
-
// move the new, updated app_resources to App_Resources/Android, as the de facto resources
|
|
82
76
|
this.$fs.rename(appResourcesDestination, originalAppResources);
|
|
83
77
|
}
|
|
84
78
|
recover(originalAppResources, appResourcesDestination, appResourcesBackup) {
|
|
@@ -95,4 +89,3 @@ AndroidResourcesMigrationService.ANDROID_DIR = "Android";
|
|
|
95
89
|
AndroidResourcesMigrationService.ANDROID_DIR_TEMP = "Android-Updated";
|
|
96
90
|
AndroidResourcesMigrationService.ANDROID_DIR_OLD = "Android-Pre-v4";
|
|
97
91
|
yok_1.injector.register("androidResourcesMigrationService", AndroidResourcesMigrationService);
|
|
98
|
-
//# sourceMappingURL=android-resources-migration-service.js.map
|