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
|
@@ -69,9 +69,6 @@ class AndroidVirtualDeviceService {
|
|
|
69
69
|
get pathToEmulatorExecutable() {
|
|
70
70
|
const emulatorExecutableName = "emulator";
|
|
71
71
|
if (this.androidHome) {
|
|
72
|
-
// Check https://developer.android.com/studio/releases/sdk-tools.html (25.3.0)
|
|
73
|
-
// Since this version of SDK tools, the emulator is a separate package.
|
|
74
|
-
// However the emulator executable still exists in the "tools" dir.
|
|
75
72
|
const pathToEmulatorFromAndroidStudio = path.join(this.androidHome, emulatorExecutableName, emulatorExecutableName);
|
|
76
73
|
const realFilePath = this.$hostInfo.isWindows
|
|
77
74
|
? `${pathToEmulatorFromAndroidStudio}.exe`
|
|
@@ -111,17 +108,6 @@ class AndroidVirtualDeviceService {
|
|
|
111
108
|
client.on("data", (data) => {
|
|
112
109
|
output += data.toString();
|
|
113
110
|
const imageIdentifier = this.getImageIdentifierFromClientOutput(output);
|
|
114
|
-
// old output should look like:
|
|
115
|
-
// Android Console: type 'help' for a list of commands
|
|
116
|
-
// OK
|
|
117
|
-
// <Name of image>
|
|
118
|
-
// OK
|
|
119
|
-
// new output should look like:
|
|
120
|
-
// Android Console: type 'help' for a list of commands
|
|
121
|
-
// OK
|
|
122
|
-
// a\u001b[K\u001b[Dav\u001b[K\u001b[D\u001b[Davd\u001b...
|
|
123
|
-
// <Name of image>
|
|
124
|
-
// OK
|
|
125
111
|
if (imageIdentifier && !isResolved) {
|
|
126
112
|
this.mapEmulatorIdToImageIdentifier[emulatorId] = imageIdentifier;
|
|
127
113
|
this.clearNetConnection(client, timer);
|
|
@@ -173,8 +159,6 @@ class AndroidVirtualDeviceService {
|
|
|
173
159
|
if (this.pathToAvdManagerExecutable &&
|
|
174
160
|
this.$fs.exists(this.pathToAvdManagerExecutable)) {
|
|
175
161
|
if (process.env.JAVA_HOME) {
|
|
176
|
-
// In case JAVA_HOME is set, but it points to incorrect directory (i.e. there's no java in $JAVA_HOME/bin/java), avdmanager will fail
|
|
177
|
-
// no matter if you have correct java in PATH.
|
|
178
162
|
canExecute = !!(await this.$sysInfo.getJavaVersionFromJavaHome());
|
|
179
163
|
}
|
|
180
164
|
else {
|
|
@@ -246,13 +230,6 @@ class AndroidVirtualDeviceService {
|
|
|
246
230
|
const avdOutput = output.split(constants_1.AndroidVirtualDevice.AVAILABLE_AVDS_MESSAGE);
|
|
247
231
|
const availableDevices = avdOutput && avdOutput[1] && avdOutput[1].trim();
|
|
248
232
|
if (availableDevices) {
|
|
249
|
-
// In some cases `avdmanager list avds` command prints:
|
|
250
|
-
// `The following Android Virtual Devices could not be loaded:
|
|
251
|
-
// Name: Pixel_2_XL_API_28
|
|
252
|
-
// Path: /Users/<username>/.android/avd/Pixel_2_XL_API_28.avd
|
|
253
|
-
// Error: Google pixel_2_xl no longer exists as a device`
|
|
254
|
-
// These devices sometimes are valid so try to parse them.
|
|
255
|
-
// Also these devices are printed at the end of the output and are separated with 2 new lines from the valid devices output.
|
|
256
233
|
const parts = availableDevices.split(/(?:\r?\n){2}/);
|
|
257
234
|
const items = [parts[0], parts[1]].filter((item) => !!item);
|
|
258
235
|
for (const item of items) {
|
|
@@ -269,7 +246,6 @@ class AndroidVirtualDeviceService {
|
|
|
269
246
|
}
|
|
270
247
|
getAvdManagerDeviceInfo(output) {
|
|
271
248
|
const avdManagerDeviceInfo = Object.create(null);
|
|
272
|
-
// Split by `\n`, not EOL as the avdmanager and android executables print results with `\n` only even on Windows
|
|
273
249
|
_.reduce(output.split("\n"), (result, row) => {
|
|
274
250
|
const [key, value] = row.split(": ").map((part) => part.trim());
|
|
275
251
|
switch (key) {
|
|
@@ -316,7 +292,6 @@ class AndroidVirtualDeviceService {
|
|
|
316
292
|
};
|
|
317
293
|
}
|
|
318
294
|
getImageIdentifierFromClientOutput(output) {
|
|
319
|
-
// The lines should be trimmed after the split because the output has \r\n and when using split(EOL) on mac each line ends with \r.
|
|
320
295
|
const lines = _.map(output.split(os_1.EOL), (line) => line.trim());
|
|
321
296
|
const firstIndexOfOk = _.indexOf(lines, "OK");
|
|
322
297
|
if (firstIndexOfOk < 0) {
|
|
@@ -365,4 +340,3 @@ __decorate([
|
|
|
365
340
|
(0, decorators_1.cache)()
|
|
366
341
|
], AndroidVirtualDeviceService.prototype, "getConfigurationError", null);
|
|
367
342
|
yok_1.injector.register("androidVirtualDeviceService", AndroidVirtualDeviceService);
|
|
368
|
-
//# sourceMappingURL=android-virtual-device-service.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AndroidDebugBridge } from "./android-debug-bridge";
|
|
2
|
+
import { IChildProcess, IErrors, IStringDictionary } from "../../declarations";
|
|
3
|
+
interface IComposeCommandResult {
|
|
4
|
+
command: string;
|
|
5
|
+
args: string[];
|
|
6
|
+
}
|
|
7
|
+
export declare class DeviceAndroidDebugBridge extends AndroidDebugBridge implements Mobile.IDeviceAndroidDebugBridge {
|
|
8
|
+
private identifier;
|
|
9
|
+
protected $childProcess: IChildProcess;
|
|
10
|
+
protected $errors: IErrors;
|
|
11
|
+
protected $logger: ILogger;
|
|
12
|
+
protected $staticConfig: Config.IStaticConfig;
|
|
13
|
+
protected $androidDebugBridgeResultHandler: Mobile.IAndroidDebugBridgeResultHandler;
|
|
14
|
+
constructor(identifier: string, $childProcess: IChildProcess, $errors: IErrors, $logger: ILogger, $staticConfig: Config.IStaticConfig, $androidDebugBridgeResultHandler: Mobile.IAndroidDebugBridgeResultHandler);
|
|
15
|
+
sendBroadcastToDevice(action: string, extras?: IStringDictionary): Promise<number>;
|
|
16
|
+
protected composeCommand(params: string[]): Promise<IComposeCommandResult>;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IChildProcess, IFileSystem } from "../../../declarations";
|
|
2
|
+
export declare class AndroidGenymotionService implements Mobile.IAndroidVirtualDeviceService {
|
|
3
|
+
private $adb;
|
|
4
|
+
private $childProcess;
|
|
5
|
+
private $devicePlatformsConstants;
|
|
6
|
+
private $emulatorHelper;
|
|
7
|
+
private $fs;
|
|
8
|
+
private $logger;
|
|
9
|
+
private $virtualBoxService;
|
|
10
|
+
constructor($adb: Mobile.IAndroidDebugBridge, $childProcess: IChildProcess, $devicePlatformsConstants: Mobile.IDevicePlatformsConstants, $emulatorHelper: Mobile.IEmulatorHelper, $fs: IFileSystem, $logger: ILogger, $virtualBoxService: Mobile.IVirtualBoxService);
|
|
11
|
+
getEmulatorImages(adbDevicesOutput: string[]): Promise<Mobile.IEmulatorImagesOutput>;
|
|
12
|
+
getRunningEmulatorIds(adbDevicesOutput: string[]): Promise<string[]>;
|
|
13
|
+
get pathToEmulatorExecutable(): string;
|
|
14
|
+
startEmulatorArgs(imageIdentifier: string): string[];
|
|
15
|
+
private getEmulatorImagesCore;
|
|
16
|
+
getRunningEmulatorName(emulatorId: string): Promise<string>;
|
|
17
|
+
getRunningEmulatorImageIdentifier(emulatorId: string): Promise<string>;
|
|
18
|
+
private getRunningEmulatorData;
|
|
19
|
+
private get playerSearchPaths();
|
|
20
|
+
private parseListVmsOutput;
|
|
21
|
+
private convertToDeviceInfo;
|
|
22
|
+
private getSdkVersion;
|
|
23
|
+
private isGenymotionEmulator;
|
|
24
|
+
private getConfigurationPlatformSpecficErrorMessage;
|
|
25
|
+
private getConfigurationError;
|
|
26
|
+
}
|
|
@@ -42,7 +42,6 @@ class AndroidGenymotionService {
|
|
|
42
42
|
.map(async (row) => {
|
|
43
43
|
const match = row.match(/^(.+?)\s+device$/);
|
|
44
44
|
if (match && match[1]) {
|
|
45
|
-
// possible genymotion emulator
|
|
46
45
|
const emulatorId = match[1];
|
|
47
46
|
const result = (await this.isGenymotionEmulator(emulatorId))
|
|
48
47
|
? emulatorId
|
|
@@ -93,7 +92,6 @@ class AndroidGenymotionService {
|
|
|
93
92
|
this.$emulatorHelper.setRunningAndroidEmulatorProperties(runningEmulatorId, runningEmulator);
|
|
94
93
|
return runningEmulator;
|
|
95
94
|
}
|
|
96
|
-
// https://wiki.appcelerator.org/display/guides2/Installing+Genymotion
|
|
97
95
|
get playerSearchPaths() {
|
|
98
96
|
return {
|
|
99
97
|
darwin: [
|
|
@@ -135,14 +133,13 @@ class AndroidGenymotionService {
|
|
|
135
133
|
vendor: constants_1.AndroidVirtualDevice.GENYMOTION_VENDOR_NAME,
|
|
136
134
|
status: constants_1.NOT_RUNNING_EMULATOR_STATUS,
|
|
137
135
|
errorHelp: [configurationError, error].filter((item) => !!item).join(os_1.EOL) || null,
|
|
138
|
-
isTablet: false,
|
|
136
|
+
isTablet: false,
|
|
139
137
|
type: constants_1.DeviceTypes.Emulator,
|
|
140
138
|
connectionTypes: [constants_2.DeviceConnectionType.Local],
|
|
141
139
|
platform: this.$devicePlatformsConstants.Android,
|
|
142
140
|
};
|
|
143
141
|
}
|
|
144
142
|
getSdkVersion(output) {
|
|
145
|
-
// Example -> Name: android_version, value: 6.0.0, timestamp: 1530090506102029000, flags:
|
|
146
143
|
const androidApiLevelRow = output
|
|
147
144
|
.split("\n")
|
|
148
145
|
.filter((row) => !!row)
|
|
@@ -168,7 +165,6 @@ In case you have installed Genymotion in a different location, please add the pa
|
|
|
168
165
|
}
|
|
169
166
|
async getConfigurationError() {
|
|
170
167
|
const result = await this.$childProcess.trySpawnFromCloseEvent(this.pathToEmulatorExecutable, [], {}, { throwError: false });
|
|
171
|
-
// When player is spawned, it always prints message on stderr.
|
|
172
168
|
if (result &&
|
|
173
169
|
result.stderr &&
|
|
174
170
|
result.stderr.indexOf(constants_1.AndroidVirtualDevice.GENYMOTION_DEFAULT_STDERR_STRING) === -1) {
|
|
@@ -186,4 +182,3 @@ __decorate([
|
|
|
186
182
|
(0, decorators_1.cache)()
|
|
187
183
|
], AndroidGenymotionService.prototype, "getConfigurationError", null);
|
|
188
184
|
yok_1.injector.register("androidGenymotionService", AndroidGenymotionService);
|
|
189
|
-
//# sourceMappingURL=genymotion-service.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IChildProcess, IFileSystem, IHostInfo } from "../../../declarations";
|
|
2
|
+
export declare class VirtualBoxService implements Mobile.IVirtualBoxService {
|
|
3
|
+
private $childProcess;
|
|
4
|
+
private $fs;
|
|
5
|
+
private $hostInfo;
|
|
6
|
+
private $logger;
|
|
7
|
+
constructor($childProcess: IChildProcess, $fs: IFileSystem, $hostInfo: IHostInfo, $logger: ILogger);
|
|
8
|
+
listVms(): Promise<Mobile.IVirtualBoxListVmsOutput>;
|
|
9
|
+
enumerateGuestProperties(id: string): Promise<Mobile.IVirtualBoxEnumerateGuestPropertiesOutput>;
|
|
10
|
+
private getvBoxManageSearchPaths;
|
|
11
|
+
private get vBoxManageExecutableNames();
|
|
12
|
+
private getvBoxManagePath;
|
|
13
|
+
}
|
|
@@ -34,7 +34,6 @@ class VirtualBoxService {
|
|
|
34
34
|
.split(os_1.EOL)
|
|
35
35
|
.filter((row) => !!row)
|
|
36
36
|
.map((row) => {
|
|
37
|
-
// Example row: "Google Nexus 4 - 5.0.0 - API 21 - 768x1280" {9d9beef2-cc60-4a54-bcc0-cc1dbf89811f}
|
|
38
37
|
const [rawName, rawId] = row.split('" ');
|
|
39
38
|
const id = rawId.substr(1, rawId.length - 2);
|
|
40
39
|
const name = rawName.substr(1, rawName.length - 1);
|
|
@@ -71,15 +70,6 @@ class VirtualBoxService {
|
|
|
71
70
|
if (this.$hostInfo.isWindows) {
|
|
72
71
|
let searchPath = null;
|
|
73
72
|
try {
|
|
74
|
-
/* This can be used as interface!!!!
|
|
75
|
-
arch:null
|
|
76
|
-
hive:"HKLM"
|
|
77
|
-
host:""
|
|
78
|
-
key:"\Software\Oracle\VirtualBox"
|
|
79
|
-
name:"InstallDir"
|
|
80
|
-
type:"REG_SZ"
|
|
81
|
-
value:"C:\Program Files\Oracle\VirtualBox\"
|
|
82
|
-
*/
|
|
83
73
|
const result = await (0, helpers_1.getWinRegPropertyValue)("\\Software\\Oracle\\VirtualBox", "InstallDir");
|
|
84
74
|
searchPath = result && result.value ? result.value : null;
|
|
85
75
|
}
|
|
@@ -112,4 +102,3 @@ __decorate([
|
|
|
112
102
|
(0, decorators_1.cache)()
|
|
113
103
|
], VirtualBoxService.prototype, "getvBoxManagePath", null);
|
|
114
104
|
yok_1.injector.register("virtualBoxService", VirtualBoxService);
|
|
115
|
-
//# sourceMappingURL=virtualbox-service.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IInjector } from "../../definitions/yok";
|
|
2
|
+
export declare class LogcatHelper implements Mobile.ILogcatHelper {
|
|
3
|
+
private $deviceLogProvider;
|
|
4
|
+
private $devicePlatformsConstants;
|
|
5
|
+
private $logger;
|
|
6
|
+
private $injector;
|
|
7
|
+
private $devicesService;
|
|
8
|
+
private mapDevicesLoggingData;
|
|
9
|
+
constructor($deviceLogProvider: Mobile.IDeviceLogProvider, $devicePlatformsConstants: Mobile.IDevicePlatformsConstants, $logger: ILogger, $injector: IInjector, $devicesService: Mobile.IDevicesService);
|
|
10
|
+
start(options: Mobile.ILogcatStartOptions): Promise<void>;
|
|
11
|
+
dump(deviceIdentifier: string): Promise<void>;
|
|
12
|
+
stop(deviceIdentifier: string): void;
|
|
13
|
+
private forceStop;
|
|
14
|
+
private isLogcatPidSupported;
|
|
15
|
+
private getLogcatStream;
|
|
16
|
+
private getAppStartTrackingLogcatStream;
|
|
17
|
+
}
|
|
@@ -40,7 +40,6 @@ class LogcatHelper {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
catch (err) {
|
|
43
|
-
// Ignore the error, the process is dead.
|
|
44
43
|
}
|
|
45
44
|
});
|
|
46
45
|
lineStream.on("data", (lineBuffer) => {
|
|
@@ -61,7 +60,6 @@ class LogcatHelper {
|
|
|
61
60
|
return;
|
|
62
61
|
const lines = (lineBuffer.toString() || "").split("\n");
|
|
63
62
|
for (let line of lines) {
|
|
64
|
-
// 2024-06-26 16:43:22.286 630-659 ActivityManager system_server I Start proc 8854:org.nativescript.uitestsapp/u0a190 for next-top-activity {org.nativescript.uitestsapp/com.tns.NativeScriptActivity}
|
|
65
63
|
const startProc = /Start proc (?<pid>[0-9]+):(?<appId>.+?)\//.exec(line);
|
|
66
64
|
if (startProc &&
|
|
67
65
|
((_b = startProc.groups) === null || _b === void 0 ? void 0 : _b.appId) === options.appId &&
|
|
@@ -88,9 +86,6 @@ class LogcatHelper {
|
|
|
88
86
|
lineStream.removeAllListeners();
|
|
89
87
|
});
|
|
90
88
|
}
|
|
91
|
-
/**
|
|
92
|
-
* Stops the logcat process for the specified device if keepSingleProcess is not passed on start
|
|
93
|
-
*/
|
|
94
89
|
stop(deviceIdentifier) {
|
|
95
90
|
if (this.mapDevicesLoggingData[deviceIdentifier] &&
|
|
96
91
|
!this.mapDevicesLoggingData[deviceIdentifier].keepSingleProcess) {
|
|
@@ -107,9 +102,6 @@ class LogcatHelper {
|
|
|
107
102
|
(_e = loggingData.lineStream) === null || _e === void 0 ? void 0 : _e.removeAllListeners();
|
|
108
103
|
delete this.mapDevicesLoggingData[deviceIdentifier];
|
|
109
104
|
}
|
|
110
|
-
/**
|
|
111
|
-
* @deprecated - we likely don't need this anymore, and can simplify the code...
|
|
112
|
-
*/
|
|
113
105
|
async isLogcatPidSupported(deviceIdentifier) {
|
|
114
106
|
const device = await this.$devicesService.getDevice(deviceIdentifier);
|
|
115
107
|
const minAndroidWithLogcatPidSupport = "7.0.0";
|
|
@@ -119,7 +111,6 @@ class LogcatHelper {
|
|
|
119
111
|
async getLogcatStream(deviceIdentifier, pid) {
|
|
120
112
|
const isLogcatPidSupported = await this.isLogcatPidSupported(deviceIdentifier);
|
|
121
113
|
const adb = this.$injector.resolve(device_android_debug_bridge_1.DeviceAndroidDebugBridge, { identifier: deviceIdentifier });
|
|
122
|
-
// -T 1 - shows only new logs after starting adb logcat
|
|
123
114
|
const logcatCommand = ["logcat", "-T", "1"];
|
|
124
115
|
const acceptedTags = [
|
|
125
116
|
"chromium",
|
|
@@ -132,7 +123,6 @@ class LogcatHelper {
|
|
|
132
123
|
if (pid && isLogcatPidSupported) {
|
|
133
124
|
logcatCommand.push(`--pid=${pid}`);
|
|
134
125
|
acceptedTags.forEach((tag) => {
|
|
135
|
-
// -s <tag> - shows only logs with the specified tag
|
|
136
126
|
logcatCommand.push("-s", tag);
|
|
137
127
|
});
|
|
138
128
|
}
|
|
@@ -143,8 +133,6 @@ class LogcatHelper {
|
|
|
143
133
|
}
|
|
144
134
|
async getAppStartTrackingLogcatStream(deviceIdentifier, appId) {
|
|
145
135
|
const adb = this.$injector.resolve(device_android_debug_bridge_1.DeviceAndroidDebugBridge, { identifier: deviceIdentifier });
|
|
146
|
-
// -b system - shows the system buffer/logs only
|
|
147
|
-
// -T 1 - shows only new logs after starting adb logcat
|
|
148
136
|
const logcatCommand = [
|
|
149
137
|
`logcat`,
|
|
150
138
|
`-b`,
|
|
@@ -165,4 +153,3 @@ class LogcatHelper {
|
|
|
165
153
|
}
|
|
166
154
|
exports.LogcatHelper = LogcatHelper;
|
|
167
155
|
yok_1.injector.register("logcatHelper", LogcatHelper);
|
|
168
|
-
//# sourceMappingURL=logcat-helper.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter } from "events";
|
|
2
|
+
import { IBuildData } from "../../definitions/build";
|
|
3
|
+
import { IDictionary, IHooksService } from "../declarations";
|
|
4
|
+
export declare abstract class ApplicationManagerBase extends EventEmitter implements Mobile.IDeviceApplicationManager {
|
|
5
|
+
protected $logger: ILogger;
|
|
6
|
+
protected $hooksService: IHooksService;
|
|
7
|
+
protected $deviceLogProvider: Mobile.IDeviceLogProvider;
|
|
8
|
+
private lastInstalledAppIdentifiers;
|
|
9
|
+
private lastAvailableDebuggableApps;
|
|
10
|
+
private lastAvailableDebuggableAppViews;
|
|
11
|
+
constructor($logger: ILogger, $hooksService: IHooksService, $deviceLogProvider: Mobile.IDeviceLogProvider);
|
|
12
|
+
setTransferredAppFiles(files: string[]): Promise<void>;
|
|
13
|
+
reinstallApplication(appIdentifier: string, packageFilePath: string, buildData?: IBuildData): Promise<void>;
|
|
14
|
+
restartApplication(appData: Mobile.IApplicationData): Promise<void>;
|
|
15
|
+
isApplicationInstalled(appIdentifier: string): Promise<boolean>;
|
|
16
|
+
private checkForApplicationUpdatesPromise;
|
|
17
|
+
checkForApplicationUpdates(): Promise<void>;
|
|
18
|
+
tryStartApplication(appData: Mobile.IApplicationData): Promise<void>;
|
|
19
|
+
abstract installApplication(packageFilePath: string, appIdentifier?: string, buildData?: IBuildData): Promise<void>;
|
|
20
|
+
abstract uninstallApplication(appIdentifier: string): Promise<void>;
|
|
21
|
+
abstract startApplication(appData: Mobile.IApplicationData): Promise<void>;
|
|
22
|
+
abstract stopApplication(appData: Mobile.IApplicationData): Promise<void>;
|
|
23
|
+
abstract getInstalledApplications(): Promise<string[]>;
|
|
24
|
+
abstract getDebuggableApps(): Promise<Mobile.IDeviceApplicationInformation[]>;
|
|
25
|
+
abstract getDebuggableAppViews(appIdentifiers: string[]): Promise<IDictionary<Mobile.IDebugWebViewInfo[]>>;
|
|
26
|
+
private checkForAvailableDebuggableAppsChanges;
|
|
27
|
+
}
|
|
@@ -36,9 +36,6 @@ class ApplicationManagerBase extends events_1.EventEmitter {
|
|
|
36
36
|
if (!this.checkForApplicationUpdatesPromise) {
|
|
37
37
|
this.checkForApplicationUpdatesPromise = new Promise(async (resolve, reject) => {
|
|
38
38
|
let isFulfilled = false;
|
|
39
|
-
// As this method is called on 500ms, but it's execution may last much longer
|
|
40
|
-
// use locking, so the next executions will not get into the body, while the first one is still working.
|
|
41
|
-
// In case we do not break the next executions, we'll report each app as newly installed several times.
|
|
42
39
|
try {
|
|
43
40
|
const currentlyInstalledAppIdentifiers = await this.getInstalledApplications();
|
|
44
41
|
const previouslyInstalledAppIdentifiers = this.lastInstalledAppIdentifiers || [];
|
|
@@ -83,7 +80,6 @@ class ApplicationManagerBase extends events_1.EventEmitter {
|
|
|
83
80
|
_.each(notAvailableAppsForDebugging, (appInfo) => {
|
|
84
81
|
this.emit("debuggableAppLost", appInfo);
|
|
85
82
|
if (_.has(this.lastAvailableDebuggableAppViews, appInfo.appIdentifier)) {
|
|
86
|
-
// Prevent emitting debuggableViewLost when application cannot be debugged anymore.
|
|
87
83
|
delete this.lastAvailableDebuggableAppViews[appInfo.appIdentifier];
|
|
88
84
|
}
|
|
89
85
|
});
|
|
@@ -102,7 +98,6 @@ class ApplicationManagerBase extends events_1.EventEmitter {
|
|
|
102
98
|
_.each(newAvailableViews, (debugWebViewInfo) => {
|
|
103
99
|
this.emit("debuggableViewFound", appIdentifier, debugWebViewInfo);
|
|
104
100
|
});
|
|
105
|
-
// Determine which of the views had changed since last check and raise debuggableViewChanged event for them:
|
|
106
101
|
const keptViews = _.differenceBy(currentlyAvailableViews, newAvailableViews, "id");
|
|
107
102
|
_.each(keptViews, (view) => {
|
|
108
103
|
const previousTimeViewInfo = _.find(previouslyAvailableViews, (previousView) => previousView.id === view.id);
|
|
@@ -116,4 +111,3 @@ class ApplicationManagerBase extends events_1.EventEmitter {
|
|
|
116
111
|
}
|
|
117
112
|
}
|
|
118
113
|
exports.ApplicationManagerBase = ApplicationManagerBase;
|
|
119
|
-
//# sourceMappingURL=application-manager-base.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EventEmitter } from "events";
|
|
2
|
+
export declare class DeviceEmitter extends EventEmitter {
|
|
3
|
+
private $deviceLogProvider;
|
|
4
|
+
private $devicesService;
|
|
5
|
+
constructor($deviceLogProvider: EventEmitter, $devicesService: Mobile.IDevicesService);
|
|
6
|
+
initialize(): void;
|
|
7
|
+
private attachApplicationChangedHandlers;
|
|
8
|
+
}
|
|
@@ -15,10 +15,7 @@ class DeviceEmitter extends events_1.EventEmitter {
|
|
|
15
15
|
this.$devicesService.on(constants_1.DeviceDiscoveryEventNames.DEVICE_FOUND, (device) => {
|
|
16
16
|
this.emit(constants_1.DeviceDiscoveryEventNames.DEVICE_FOUND, device.deviceInfo);
|
|
17
17
|
this.attachApplicationChangedHandlers(device);
|
|
18
|
-
// await: Do not await as this will require to mark the lambda with async keyword, but there's no way to await the lambda itself.
|
|
19
|
-
/* tslint:disable:no-floating-promises */
|
|
20
18
|
device.openDeviceLogStream();
|
|
21
|
-
/* tslint:enable:no-floating-promises */
|
|
22
19
|
});
|
|
23
20
|
this.$devicesService.on(constants_1.DeviceDiscoveryEventNames.DEVICE_LOST, (device) => {
|
|
24
21
|
this.emit(constants_1.DeviceDiscoveryEventNames.DEVICE_LOST, device.deviceInfo);
|
|
@@ -62,4 +59,3 @@ class DeviceEmitter extends events_1.EventEmitter {
|
|
|
62
59
|
}
|
|
63
60
|
exports.DeviceEmitter = DeviceEmitter;
|
|
64
61
|
yok_1.injector.register("deviceEmitter", DeviceEmitter);
|
|
65
|
-
//# sourceMappingURL=device-emitter.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DeviceLogProviderBase } from "./device-log-provider-base";
|
|
2
|
+
export declare class DeviceLogEmitter extends DeviceLogProviderBase {
|
|
3
|
+
protected $logFilter: Mobile.ILogFilter;
|
|
4
|
+
private $loggingLevels;
|
|
5
|
+
protected $logSourceMapService: Mobile.ILogSourceMapService;
|
|
6
|
+
constructor($logFilter: Mobile.ILogFilter, $logger: ILogger, $loggingLevels: Mobile.ILoggingLevels, $logSourceMapService: Mobile.ILogSourceMapService);
|
|
7
|
+
logData(line: string, platform: string, deviceIdentifier: string): void;
|
|
8
|
+
setLogLevel(logLevel: string, deviceIdentifier?: string): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter } from "events";
|
|
2
|
+
import { IDictionary } from "../declarations";
|
|
3
|
+
export declare abstract class DeviceLogProviderBase extends EventEmitter implements Mobile.IDeviceLogProvider {
|
|
4
|
+
protected $logFilter: Mobile.ILogFilter;
|
|
5
|
+
protected $logger: ILogger;
|
|
6
|
+
protected $logSourceMapService: Mobile.ILogSourceMapService;
|
|
7
|
+
protected devicesLogOptions: IDictionary<Mobile.IDeviceLogOptions>;
|
|
8
|
+
constructor($logFilter: Mobile.ILogFilter, $logger: ILogger, $logSourceMapService: Mobile.ILogSourceMapService);
|
|
9
|
+
setSourceFileLocation(pathToOriginalFile: string): Promise<void>;
|
|
10
|
+
abstract logData(lineText: string, platform: string, deviceIdentifier: string): void;
|
|
11
|
+
abstract setLogLevel(logLevel: string, deviceIdentifier?: string): void;
|
|
12
|
+
setApplicationPidForDevice(deviceIdentifier: string, pid: string): void;
|
|
13
|
+
setApplicationIdForDevice(deviceIdentifier: string, appId: string): void;
|
|
14
|
+
setProjectNameForDevice(deviceIdentifier: string, projectName: string): void;
|
|
15
|
+
setProjectDirForDevice(deviceIdentifier: string, projectDir: string): void;
|
|
16
|
+
protected setDefaultLogLevelForDevice(deviceIdentifier: string): void;
|
|
17
|
+
protected getApplicationPidForDevice(deviceIdentifier: string): string;
|
|
18
|
+
getApplicationIdForDevice(deviceIdentifier: string): string;
|
|
19
|
+
protected getDeviceLogOptionsForDevice(deviceIdentifier: string): Mobile.IDeviceLogOptions;
|
|
20
|
+
protected setDeviceLogOptionsProperty(deviceIdentifier: string, propNameFunction: Function, propertyValue: string | boolean): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DeviceLogProviderBase } from "./device-log-provider-base";
|
|
2
|
+
import { IOptions } from "../../declarations";
|
|
3
|
+
import { ITimelineProfilerService } from "../../services/timeline-profiler-service";
|
|
4
|
+
export declare class DeviceLogProvider extends DeviceLogProviderBase {
|
|
5
|
+
protected $logFilter: Mobile.ILogFilter;
|
|
6
|
+
protected $logger: ILogger;
|
|
7
|
+
protected $logSourceMapService: Mobile.ILogSourceMapService;
|
|
8
|
+
protected $timelineProfilerService: ITimelineProfilerService;
|
|
9
|
+
protected $options: IOptions;
|
|
10
|
+
constructor($logFilter: Mobile.ILogFilter, $logger: ILogger, $logSourceMapService: Mobile.ILogSourceMapService, $timelineProfilerService: ITimelineProfilerService, $options: IOptions);
|
|
11
|
+
logData(lineText: string, platform: string, deviceIdentifier: string): void;
|
|
12
|
+
setLogLevel(logLevel: string, deviceIdentifier?: string): void;
|
|
13
|
+
private consoleLogLevelRegex;
|
|
14
|
+
private consoleLevelColor;
|
|
15
|
+
private deviceColorMap;
|
|
16
|
+
private colorPool;
|
|
17
|
+
private colorPoolIndex;
|
|
18
|
+
private getDeviceColor;
|
|
19
|
+
private logDataCore;
|
|
20
|
+
private printLine;
|
|
21
|
+
}
|
|
@@ -35,7 +35,6 @@ class DeviceLogProvider extends device_log_provider_base_1.DeviceLogProviderBase
|
|
|
35
35
|
this.colorPoolIndex = 0;
|
|
36
36
|
}
|
|
37
37
|
logData(lineText, platform, deviceIdentifier) {
|
|
38
|
-
// console.log(lineText)
|
|
39
38
|
const loggingOptions = this.getDeviceLogOptionsForDevice(deviceIdentifier);
|
|
40
39
|
let data = this.$logFilter.filterData(platform, lineText, loggingOptions);
|
|
41
40
|
data = this.$logSourceMapService.replaceWithOriginalFileLocations(platform, data, loggingOptions);
|
|
@@ -53,7 +52,6 @@ class DeviceLogProvider extends device_log_provider_base_1.DeviceLogProviderBase
|
|
|
53
52
|
return this.deviceColorMap.get(deviceIdentifier);
|
|
54
53
|
}
|
|
55
54
|
const color = this.colorPool[this.colorPoolIndex];
|
|
56
|
-
// wrap around if we have no more colors in the pool
|
|
57
55
|
this.colorPoolIndex =
|
|
58
56
|
this.colorPoolIndex === this.colorPool.length - 1
|
|
59
57
|
? 0
|
|
@@ -63,13 +61,10 @@ class DeviceLogProvider extends device_log_provider_base_1.DeviceLogProviderBase
|
|
|
63
61
|
}
|
|
64
62
|
logDataCore(data, deviceIdentifier) {
|
|
65
63
|
var _a, _b, _c;
|
|
66
|
-
// todo: use config to set logger - --env.classicLogs is temporary!
|
|
67
64
|
if ("classicLogs" in ((_a = this.$options.env) !== null && _a !== void 0 ? _a : {})) {
|
|
68
|
-
// legacy logging
|
|
69
65
|
this.$logger.info(data, { [constants_2.LoggerConfigData.skipNewLine]: true });
|
|
70
66
|
return;
|
|
71
67
|
}
|
|
72
|
-
// todo: extract into an injectable printer/logger service
|
|
73
68
|
let shouldPrepend = false;
|
|
74
69
|
let splitIndexes = [];
|
|
75
70
|
const lines = data
|
|
@@ -124,25 +119,7 @@ class DeviceLogProvider extends device_log_provider_base_1.DeviceLogProviderBase
|
|
|
124
119
|
printLine(prefix, ...parts) {
|
|
125
120
|
const fullLine = parts.join(" ");
|
|
126
121
|
console.log(prefix, fullLine);
|
|
127
|
-
/**
|
|
128
|
-
* Note: Disabled
|
|
129
|
-
*
|
|
130
|
-
* This splits the output into lines that fit within the current
|
|
131
|
-
* terminal width, however this makes copying json objects that
|
|
132
|
-
* span across multiple lines difficult, as it introduces
|
|
133
|
-
* whitespace & line breaks
|
|
134
|
-
*/
|
|
135
|
-
// const maxWidth = process.stdout.columns - 2;
|
|
136
|
-
// if (!maxWidth || maxWidth < 10 || fullLine.length < maxWidth) {
|
|
137
|
-
// console.log(prefix, fullLine);
|
|
138
|
-
// } else {
|
|
139
|
-
// for (let i = 0; i < fullLine.length; i += maxWidth) {
|
|
140
|
-
// const part = fullLine.substring(i, i + maxWidth);
|
|
141
|
-
// console.log(prefix, part);
|
|
142
|
-
// }
|
|
143
|
-
// }
|
|
144
122
|
}
|
|
145
123
|
}
|
|
146
124
|
exports.DeviceLogProvider = DeviceLogProvider;
|
|
147
125
|
yok_1.injector.register("deviceLogProvider", DeviceLogProvider);
|
|
148
|
-
//# sourceMappingURL=device-log-provider.js.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare class EmulatorHelper implements Mobile.IEmulatorHelper {
|
|
2
|
+
mapAndroidApiLevelToVersion: {
|
|
3
|
+
"android-36": string;
|
|
4
|
+
"android-36.1": string;
|
|
5
|
+
"android-35": string;
|
|
6
|
+
"android-34": string;
|
|
7
|
+
"android-33": string;
|
|
8
|
+
"android-32": string;
|
|
9
|
+
"android-31": string;
|
|
10
|
+
"android-30": string;
|
|
11
|
+
"android-29": string;
|
|
12
|
+
"android-28": string;
|
|
13
|
+
"android-27": string;
|
|
14
|
+
"android-26": string;
|
|
15
|
+
"android-25": string;
|
|
16
|
+
"android-24": string;
|
|
17
|
+
"android-23": string;
|
|
18
|
+
"android-22": string;
|
|
19
|
+
"android-21": string;
|
|
20
|
+
"android-20": string;
|
|
21
|
+
"android-19": string;
|
|
22
|
+
"android-18": string;
|
|
23
|
+
"android-17": string;
|
|
24
|
+
};
|
|
25
|
+
getEmulatorsFromAvailableEmulatorsOutput(availableEmulatorsOutput: Mobile.IListEmulatorsOutput): Mobile.IDeviceInfo[];
|
|
26
|
+
getErrorsFromAvailableEmulatorsOutput(availableEmulatorsOutput: Mobile.IListEmulatorsOutput): string[];
|
|
27
|
+
getEmulatorByImageIdentifier(imageIdentifier: string, emulators: Mobile.IDeviceInfo[]): Mobile.IDeviceInfo;
|
|
28
|
+
getEmulatorByIdOrName(emulatorIdOrName: string, emulators: Mobile.IDeviceInfo[]): Mobile.IDeviceInfo;
|
|
29
|
+
isEmulatorRunning(emulator: Mobile.IDeviceInfo): boolean;
|
|
30
|
+
getEmulatorByStartEmulatorOptions(options: Mobile.IStartEmulatorOptions, emulators: Mobile.IDeviceInfo[]): Mobile.IDeviceInfo;
|
|
31
|
+
setRunningAndroidEmulatorProperties(emulatorId: string, emulator: Mobile.IDeviceInfo): void;
|
|
32
|
+
}
|
|
@@ -6,7 +6,6 @@ const _ = require("lodash");
|
|
|
6
6
|
const yok_1 = require("../yok");
|
|
7
7
|
class EmulatorHelper {
|
|
8
8
|
constructor() {
|
|
9
|
-
// https://developer.android.com/guide/topics/manifest/uses-sdk-element
|
|
10
9
|
this.mapAndroidApiLevelToVersion = {
|
|
11
10
|
"android-36": "16.0.0",
|
|
12
11
|
"android-36.1": "16.0.0",
|
|
@@ -82,9 +81,7 @@ class EmulatorHelper {
|
|
|
82
81
|
emulator.identifier = emulatorId;
|
|
83
82
|
emulator.status = constants_1.RUNNING_EMULATOR_STATUS;
|
|
84
83
|
emulator.type = constants_1.DeviceTypes.Device;
|
|
85
|
-
//emulator.isTablet; // TODO: consider to do this here!!!
|
|
86
84
|
}
|
|
87
85
|
}
|
|
88
86
|
exports.EmulatorHelper = EmulatorHelper;
|
|
89
87
|
yok_1.injector.register("emulatorHelper", EmulatorHelper);
|
|
90
|
-
//# sourceMappingURL=emulator-helper.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ApplicationManagerBase } from "../../application-manager-base";
|
|
2
|
+
import { IOptions } from "../../../../declarations";
|
|
3
|
+
import { IHooksService, IErrors, IiOSNotificationService, IDictionary } from "../../../declarations";
|
|
4
|
+
export declare class IOSApplicationManager extends ApplicationManagerBase {
|
|
5
|
+
protected $logger: ILogger;
|
|
6
|
+
protected $hooksService: IHooksService;
|
|
7
|
+
private device;
|
|
8
|
+
private $errors;
|
|
9
|
+
private $iOSNotificationService;
|
|
10
|
+
private $iosDeviceOperations;
|
|
11
|
+
private $options;
|
|
12
|
+
protected $deviceLogProvider: Mobile.IDeviceLogProvider;
|
|
13
|
+
private applicationsLiveSyncInfos;
|
|
14
|
+
constructor($logger: ILogger, $hooksService: IHooksService, device: Mobile.IiOSDevice, $errors: IErrors, $iOSNotificationService: IiOSNotificationService, $iosDeviceOperations: IIOSDeviceOperations, $options: IOptions, $deviceLogProvider: Mobile.IDeviceLogProvider);
|
|
15
|
+
getInstalledApplications(): Promise<string[]>;
|
|
16
|
+
installApplication(packageFilePath: string): Promise<void>;
|
|
17
|
+
getApplicationsInformation(): Promise<Mobile.IApplicationInfo[]>;
|
|
18
|
+
uninstallApplication(appIdentifier: string): Promise<void>;
|
|
19
|
+
startApplication(appData: Mobile.IStartApplicationData): Promise<void>;
|
|
20
|
+
stopApplication(appData: Mobile.IApplicationData): Promise<void>;
|
|
21
|
+
restartApplication(appData: Mobile.IStartApplicationData): Promise<void>;
|
|
22
|
+
private setDeviceLogData;
|
|
23
|
+
private runApplicationCore;
|
|
24
|
+
private startDeviceLog;
|
|
25
|
+
getDebuggableApps(): Promise<Mobile.IDeviceApplicationInformation[]>;
|
|
26
|
+
getDebuggableAppViews(appIdentifiers: string[]): Promise<IDictionary<Mobile.IDebugWebViewInfo[]>>;
|
|
27
|
+
}
|
|
@@ -115,11 +115,9 @@ class IOSApplicationManager extends application_manager_base_1.ApplicationManage
|
|
|
115
115
|
await this.device.openDeviceLogStream();
|
|
116
116
|
}
|
|
117
117
|
getDebuggableApps() {
|
|
118
|
-
// Implement when we can find debuggable applications for iOS.
|
|
119
118
|
return Promise.resolve([]);
|
|
120
119
|
}
|
|
121
120
|
getDebuggableAppViews(appIdentifiers) {
|
|
122
|
-
// Implement when we can find debuggable applications for iOS.
|
|
123
121
|
return Promise.resolve(null);
|
|
124
122
|
}
|
|
125
123
|
}
|
|
@@ -130,4 +128,3 @@ __decorate([
|
|
|
130
128
|
__decorate([
|
|
131
129
|
(0, decorators_1.cache)()
|
|
132
130
|
], IOSApplicationManager.prototype, "startDeviceLog", null);
|
|
133
|
-
//# sourceMappingURL=ios-application-manager.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IFileSystem, IStringDictionary } from "../../../declarations";
|
|
2
|
+
export declare class IOSDeviceFileSystem implements Mobile.IDeviceFileSystem {
|
|
3
|
+
private device;
|
|
4
|
+
private $logger;
|
|
5
|
+
private $iosDeviceOperations;
|
|
6
|
+
private $fs;
|
|
7
|
+
private static AFC_DELETE_FILE_NOT_FOUND_ERROR;
|
|
8
|
+
constructor(device: Mobile.IDevice, $logger: ILogger, $iosDeviceOperations: IIOSDeviceOperations, $fs: IFileSystem);
|
|
9
|
+
listFiles(devicePath: string, appIdentifier: string): Promise<void>;
|
|
10
|
+
getDirectoryEntries(devicePath: string, appIdentifier: string): Promise<string[] | null>;
|
|
11
|
+
getFile(deviceFilePath: string, appIdentifier: string, outputFilePath?: string): Promise<void>;
|
|
12
|
+
getFileContent(deviceFilePath: string, appIdentifier: string): Promise<string>;
|
|
13
|
+
putFile(localFilePath: string, deviceFilePath: string, appIdentifier: string): Promise<void>;
|
|
14
|
+
deleteFile(deviceFilePath: string, appIdentifier: string): Promise<void>;
|
|
15
|
+
transferFiles(deviceAppData: Mobile.IDeviceAppData, localToDevicePaths: Mobile.ILocalToDevicePathData[]): Promise<Mobile.ILocalToDevicePathData[]>;
|
|
16
|
+
transferDirectory(deviceAppData: Mobile.IDeviceAppData, localToDevicePaths: Mobile.ILocalToDevicePathData[], projectFilesPath: string): Promise<Mobile.ILocalToDevicePathData[]>;
|
|
17
|
+
updateHashesOnDevice(hashes: IStringDictionary, appIdentifier: string): Promise<void>;
|
|
18
|
+
private uploadFilesCore;
|
|
19
|
+
}
|