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
|
@@ -114,14 +114,6 @@ class IOSDeviceFileSystem {
|
|
|
114
114
|
}
|
|
115
115
|
async uploadFilesCore(filesToUpload) {
|
|
116
116
|
await this.$iosDeviceOperations.uploadFiles(filesToUpload, (err) => {
|
|
117
|
-
// Previously an error whose deviceId did not exactly match was
|
|
118
|
-
// dropped on the floor — including errors with NO deviceId at
|
|
119
|
-
// all (some ios-device-lib error paths don't attribute one).
|
|
120
|
-
// That left "Successfully synced" printed over a failed
|
|
121
|
-
// transfer and the app silently running stale JavaScript.
|
|
122
|
-
// Rethrow unless the error is positively attributed to a
|
|
123
|
-
// DIFFERENT device; surface even those at warn level so a
|
|
124
|
-
// failed upload is never invisible.
|
|
125
117
|
if (!err.deviceId ||
|
|
126
118
|
err.deviceId === this.device.deviceInfo.identifier) {
|
|
127
119
|
throw err;
|
|
@@ -132,4 +124,3 @@ class IOSDeviceFileSystem {
|
|
|
132
124
|
}
|
|
133
125
|
exports.IOSDeviceFileSystem = IOSDeviceFileSystem;
|
|
134
126
|
IOSDeviceFileSystem.AFC_DELETE_FILE_NOT_FOUND_ERROR = 8;
|
|
135
|
-
//# sourceMappingURL=ios-device-file-system.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EventEmitter } from "events";
|
|
2
|
+
import { IDisposable, IShouldDispose, IDictionary } from "../../../declarations";
|
|
3
|
+
export declare class IOSDeviceOperations extends EventEmitter implements IIOSDeviceOperations, IDisposable, IShouldDispose {
|
|
4
|
+
private $logger;
|
|
5
|
+
isInitialized: boolean;
|
|
6
|
+
shouldDispose: boolean;
|
|
7
|
+
private deviceLib;
|
|
8
|
+
constructor($logger: ILogger);
|
|
9
|
+
install(ipaPath: string, deviceIdentifiers: string[], errorHandler: DeviceOperationErrorHandler): Promise<IOSDeviceResponse>;
|
|
10
|
+
uninstall(appIdentifier: string, deviceIdentifiers: string[], errorHandler: DeviceOperationErrorHandler): Promise<IOSDeviceResponse>;
|
|
11
|
+
startLookingForDevices(deviceFoundCallback: DeviceInfoCallback, deviceUpdatedCallback: DeviceInfoCallback, deviceLostCallback: DeviceInfoCallback, options?: Mobile.IDeviceLookingOptions): Promise<void>;
|
|
12
|
+
startDeviceLog(deviceIdentifier: string): void;
|
|
13
|
+
apps(deviceIdentifiers: string[], errorHandler?: DeviceOperationErrorHandler): Promise<IOSDeviceAppInfo>;
|
|
14
|
+
listDirectory(listArray: IOSDeviceLib.IReadOperationData[], errorHandler?: DeviceOperationErrorHandler): Promise<IOSDeviceMultipleResponse>;
|
|
15
|
+
readFiles(deviceFilePaths: IOSDeviceLib.IReadOperationData[], errorHandler?: DeviceOperationErrorHandler): Promise<IOSDeviceResponse>;
|
|
16
|
+
downloadFiles(deviceFilePaths: IOSDeviceLib.IFileOperationData[], errorHandler?: DeviceOperationErrorHandler): Promise<IOSDeviceResponse>;
|
|
17
|
+
uploadFiles(files: IOSDeviceLib.IUploadFilesData[], errorHandler?: DeviceOperationErrorHandler): Promise<IOSDeviceResponse>;
|
|
18
|
+
deleteFiles(deleteArray: IOSDeviceLib.IDeleteFileData[], errorHandler?: DeviceOperationErrorHandler): Promise<IOSDeviceResponse>;
|
|
19
|
+
start(startArray: IOSDeviceLib.IDdiApplicationData[], errorHandler?: DeviceOperationErrorHandler): Promise<IOSDeviceResponse>;
|
|
20
|
+
stop(stopArray: IOSDeviceLib.IDdiApplicationData[], errorHandler?: DeviceOperationErrorHandler): Promise<IOSDeviceResponse>;
|
|
21
|
+
dispose(signal?: string): void;
|
|
22
|
+
postNotification(postNotificationArray: IOSDeviceLib.IPostNotificationData[], errorHandler?: DeviceOperationErrorHandler): Promise<IOSDeviceResponse>;
|
|
23
|
+
awaitNotificationResponse(awaitNotificationResponseArray: IOSDeviceLib.IAwaitNotificatioNResponseData[], errorHandler?: DeviceOperationErrorHandler): Promise<IOSDeviceResponse>;
|
|
24
|
+
connectToPort(connectToPortArray: IOSDeviceLib.IConnectToPortData[], errorHandler?: DeviceOperationErrorHandler): Promise<IDictionary<IOSDeviceLib.IConnectToPortResponse[]>>;
|
|
25
|
+
setShouldDispose(shouldDispose: boolean): void;
|
|
26
|
+
private getMultipleResults;
|
|
27
|
+
private assertIsInitialized;
|
|
28
|
+
private attacheDeviceLogDataHandler;
|
|
29
|
+
}
|
|
@@ -44,7 +44,6 @@ class IOSDeviceOperations extends events_1.EventEmitter {
|
|
|
44
44
|
if (options && options.shouldReturnImmediateResult) {
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
-
// We need this because we need to make sure that we have devices.
|
|
48
47
|
await new Promise((resolve, reject) => {
|
|
49
48
|
let iterationsCount = 0;
|
|
50
49
|
const maxIterationsCount = 3;
|
|
@@ -126,8 +125,6 @@ class IOSDeviceOperations extends events_1.EventEmitter {
|
|
|
126
125
|
return this.getMultipleResults(() => this.deviceLib.stop(stopArray), errorHandler);
|
|
127
126
|
}
|
|
128
127
|
dispose(signal) {
|
|
129
|
-
// We need to check if we should dispose the device lib.
|
|
130
|
-
// For example we do not want to dispose it when we start printing the device logs.
|
|
131
128
|
if (this.shouldDispose && this.deviceLib) {
|
|
132
129
|
this.deviceLib.removeAllListeners();
|
|
133
130
|
this.deviceLib.dispose(signal);
|
|
@@ -198,4 +195,3 @@ __decorate([
|
|
|
198
195
|
(0, decorators_1.cache)()
|
|
199
196
|
], IOSDeviceOperations.prototype, "attacheDeviceLogDataHandler", null);
|
|
200
197
|
yok_1.injector.register("iosDeviceOperations", IOSDeviceOperations);
|
|
201
|
-
//# sourceMappingURL=ios-device-operations.js.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as net from "net";
|
|
2
|
+
import { IOSDeviceBase } from "../ios-device-base";
|
|
3
|
+
import { IiOSSocketRequestExecutor } from "../../../../declarations";
|
|
4
|
+
import { IErrors } from "../../../declarations";
|
|
5
|
+
import { IInjector } from "../../../definitions/yok";
|
|
6
|
+
export declare class IOSDevice extends IOSDeviceBase {
|
|
7
|
+
private deviceActionInfo;
|
|
8
|
+
protected $errors: IErrors;
|
|
9
|
+
private $injector;
|
|
10
|
+
protected $iOSDebuggerPortService: IIOSDebuggerPortService;
|
|
11
|
+
protected $deviceLogProvider: Mobile.IDeviceLogProvider;
|
|
12
|
+
protected $logger: ILogger;
|
|
13
|
+
protected $lockService: ILockService;
|
|
14
|
+
private $iOSSocketRequestExecutor;
|
|
15
|
+
private $devicePlatformsConstants;
|
|
16
|
+
private $iOSDeviceProductNameMapper;
|
|
17
|
+
private $iosDeviceOperations;
|
|
18
|
+
private $mobileHelper;
|
|
19
|
+
applicationManager: Mobile.IDeviceApplicationManager;
|
|
20
|
+
fileSystem: Mobile.IDeviceFileSystem;
|
|
21
|
+
deviceInfo: Mobile.IDeviceInfo;
|
|
22
|
+
private _deviceLogHandler;
|
|
23
|
+
constructor(deviceActionInfo: IOSDeviceLib.IDeviceActionInfo, $errors: IErrors, $injector: IInjector, $iOSDebuggerPortService: IIOSDebuggerPortService, $deviceLogProvider: Mobile.IDeviceLogProvider, $logger: ILogger, $lockService: ILockService, $iOSSocketRequestExecutor: IiOSSocketRequestExecutor, $devicePlatformsConstants: Mobile.IDevicePlatformsConstants, $iOSDeviceProductNameMapper: Mobile.IiOSDeviceProductNameMapper, $iosDeviceOperations: IIOSDeviceOperations, $mobileHelper: Mobile.IMobileHelper);
|
|
24
|
+
get isEmulator(): boolean;
|
|
25
|
+
get isOnlyWiFiConnected(): boolean;
|
|
26
|
+
openDeviceLogStream(): Promise<void>;
|
|
27
|
+
protected getDebugSocketCore(appId: string): Promise<net.Socket>;
|
|
28
|
+
private actionOnDeviceLog;
|
|
29
|
+
detach(): void;
|
|
30
|
+
private getActiveArchitecture;
|
|
31
|
+
private getPlatform;
|
|
32
|
+
}
|
|
@@ -106,7 +106,6 @@ class IOSDevice extends ios_device_base_1.IOSDeviceBase {
|
|
|
106
106
|
const majorVersionAsString = productType.match(/.*?(\d+)\,(\d+)/)[1];
|
|
107
107
|
const majorVersion = parseInt(majorVersionAsString);
|
|
108
108
|
let isArm64Architecture = false;
|
|
109
|
-
//https://en.wikipedia.org/wiki/List_of_iOS_devices
|
|
110
109
|
if (_.startsWith(productType, "iphone")) {
|
|
111
110
|
isArm64Architecture = majorVersion >= 6;
|
|
112
111
|
}
|
|
@@ -117,7 +116,6 @@ class IOSDevice extends ios_device_base_1.IOSDeviceBase {
|
|
|
117
116
|
isArm64Architecture = majorVersion >= 7;
|
|
118
117
|
}
|
|
119
118
|
else if (_.startsWith(productType, "realitydevice")) {
|
|
120
|
-
// visionos
|
|
121
119
|
isArm64Architecture = true;
|
|
122
120
|
}
|
|
123
121
|
activeArchitecture = isArm64Architecture ? "arm64" : "armv7";
|
|
@@ -127,7 +125,6 @@ class IOSDevice extends ios_device_base_1.IOSDeviceBase {
|
|
|
127
125
|
getPlatform(productType) {
|
|
128
126
|
productType = productType.toLowerCase().trim();
|
|
129
127
|
if (_.startsWith(productType, "realitydevice")) {
|
|
130
|
-
// visionos
|
|
131
128
|
return this.$devicePlatformsConstants.visionOS;
|
|
132
129
|
}
|
|
133
130
|
return this.$devicePlatformsConstants.iOS;
|
|
@@ -138,4 +135,3 @@ __decorate([
|
|
|
138
135
|
(0, decorators_1.cache)()
|
|
139
136
|
], IOSDevice.prototype, "openDeviceLogStream", null);
|
|
140
137
|
yok_1.injector.register("iOSDevice", IOSDevice);
|
|
141
|
-
//# sourceMappingURL=ios-device.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as net from "net";
|
|
2
|
+
import { IErrors } from "../../declarations";
|
|
3
|
+
export declare abstract class IOSDeviceBase implements Mobile.IiOSDevice {
|
|
4
|
+
private cachedSockets;
|
|
5
|
+
protected abstract $errors: IErrors;
|
|
6
|
+
protected abstract $deviceLogProvider: Mobile.IDeviceLogProvider;
|
|
7
|
+
protected abstract $iOSDebuggerPortService: IIOSDebuggerPortService;
|
|
8
|
+
protected abstract $lockService: ILockService;
|
|
9
|
+
protected abstract $logger: ILogger;
|
|
10
|
+
abstract deviceInfo: Mobile.IDeviceInfo;
|
|
11
|
+
abstract applicationManager: Mobile.IDeviceApplicationManager;
|
|
12
|
+
abstract fileSystem: Mobile.IDeviceFileSystem;
|
|
13
|
+
abstract isEmulator: boolean;
|
|
14
|
+
abstract isOnlyWiFiConnected: boolean;
|
|
15
|
+
abstract openDeviceLogStream(options?: Mobile.IiOSLogStreamOptions): Promise<void>;
|
|
16
|
+
getDebugSocket(appId: string, projectName: string, projectDir: string, ensureAppStarted?: boolean): Promise<net.Socket>;
|
|
17
|
+
protected abstract getDebugSocketCore(appId: string): Promise<net.Socket>;
|
|
18
|
+
protected attachToDebuggerFoundEvent(appId: string, projectName: string, projectDir: string): Promise<void>;
|
|
19
|
+
protected getDebuggerPort(appId: string): Promise<number>;
|
|
20
|
+
destroyAllSockets(): Promise<void>;
|
|
21
|
+
destroyDebugSocket(appId: string): Promise<void>;
|
|
22
|
+
private destroySocketSafe;
|
|
23
|
+
private startDeviceLogProcess;
|
|
24
|
+
}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const yok_1 = require("../../yok");
|
|
4
4
|
class IosDeviceProductNameMapper {
|
|
5
5
|
constructor() {
|
|
6
|
-
// http://support.hockeyapp.net/kb/client-integration-ios-mac-os-x/ios-device-types
|
|
7
6
|
this.map = {
|
|
8
7
|
"iPhone1,1": "iPhone",
|
|
9
8
|
"iPhone1,2": "iPhone 3G",
|
|
@@ -64,4 +63,3 @@ class IosDeviceProductNameMapper {
|
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
65
|
yok_1.injector.register("iOSDeviceProductNameMapper", IosDeviceProductNameMapper);
|
|
67
|
-
//# sourceMappingURL=ios-device-product-name-mapper.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare class IOSLogFilter implements Mobile.IPlatformLogFilter {
|
|
2
|
+
private $loggingLevels;
|
|
3
|
+
protected infoFilterRegex: RegExp;
|
|
4
|
+
constructor($loggingLevels: Mobile.ILoggingLevels);
|
|
5
|
+
filterData(data: string, loggingOptions?: Mobile.IDeviceLogOptions): string;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -18,7 +18,6 @@ class IosEmulatorServices {
|
|
|
18
18
|
try {
|
|
19
19
|
if (options.platform === this.$devicePlatformsConstants.visionOS &&
|
|
20
20
|
!options.emulatorIdOrName) {
|
|
21
|
-
// find first available visionOS simulator (for now).
|
|
22
21
|
const { devices } = await this.tryGetiOSSimDevices();
|
|
23
22
|
options.emulatorIdOrName = (_a = devices.find((device) => device.platform === this.$devicePlatformsConstants.visionOS)) === null || _a === void 0 ? void 0 : _a.id;
|
|
24
23
|
}
|
|
@@ -52,8 +51,6 @@ class IosEmulatorServices {
|
|
|
52
51
|
}
|
|
53
52
|
async connectToPort(data) {
|
|
54
53
|
try {
|
|
55
|
-
// node v17+ resolves localhost to ::1 (ipv6) instead of 127.0.0.1 (ipv4)
|
|
56
|
-
// so we explicitly pass ipv4
|
|
57
54
|
const socket = net.connect(data.port, "127.0.0.1");
|
|
58
55
|
return socket;
|
|
59
56
|
}
|
|
@@ -111,4 +108,3 @@ class IosEmulatorServices {
|
|
|
111
108
|
}
|
|
112
109
|
}
|
|
113
110
|
yok_1.injector.register("iOSEmulatorServices", IosEmulatorServices);
|
|
114
|
-
//# sourceMappingURL=ios-emulator-services.js.map
|
|
@@ -21,4 +21,3 @@ exports.IOSSimResolver = IOSSimResolver;
|
|
|
21
21
|
IOSSimResolver.iOSSimName = "ios-sim-portable";
|
|
22
22
|
IOSSimResolver.iOSStandaloneExecutableName = "ios-sim-standalone.js";
|
|
23
23
|
yok_1.injector.register("iOSSimResolver", IOSSimResolver);
|
|
24
|
-
//# sourceMappingURL=ios-sim-resolver.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ApplicationManagerBase } from "../../application-manager-base";
|
|
2
|
+
import { IOptions } from "../../../../declarations";
|
|
3
|
+
import { IDictionary, IChildProcess, IFileSystem, IHooksService } from "../../../declarations";
|
|
4
|
+
import { ITempService } from "../../../../definitions/temp-service";
|
|
5
|
+
export declare class IOSSimulatorApplicationManager extends ApplicationManagerBase {
|
|
6
|
+
private $childProcess;
|
|
7
|
+
private iosSim;
|
|
8
|
+
private device;
|
|
9
|
+
private $options;
|
|
10
|
+
private $fs;
|
|
11
|
+
protected $deviceLogProvider: Mobile.IDeviceLogProvider;
|
|
12
|
+
private $tempService;
|
|
13
|
+
private _lldbProcesses;
|
|
14
|
+
constructor($childProcess: IChildProcess, iosSim: any, device: Mobile.IiOSDevice, $options: IOptions, $fs: IFileSystem, $deviceLogProvider: Mobile.IDeviceLogProvider, $tempService: ITempService, $logger: ILogger, $hooksService: IHooksService);
|
|
15
|
+
getInstalledApplications(): Promise<string[]>;
|
|
16
|
+
installApplication(packageFilePath: string): Promise<void>;
|
|
17
|
+
uninstallApplication(appIdentifier: string): Promise<void>;
|
|
18
|
+
startApplication(appData: Mobile.IStartApplicationData): Promise<void>;
|
|
19
|
+
stopApplication(appData: Mobile.IApplicationData): Promise<void>;
|
|
20
|
+
getDebuggableApps(): Promise<Mobile.IDeviceApplicationInformation[]>;
|
|
21
|
+
getDebuggableAppViews(appIdentifiers: string[]): Promise<IDictionary<Mobile.IDebugWebViewInfo[]>>;
|
|
22
|
+
private attachNativeDebugger;
|
|
23
|
+
private detachNativeDebugger;
|
|
24
|
+
private killProcess;
|
|
25
|
+
private setDeviceLogData;
|
|
26
|
+
private startDeviceLog;
|
|
27
|
+
}
|
|
@@ -73,13 +73,8 @@ class IOSSimulatorApplicationManager extends application_manager_base_1.Applicat
|
|
|
73
73
|
return [];
|
|
74
74
|
}
|
|
75
75
|
async getDebuggableAppViews(appIdentifiers) {
|
|
76
|
-
// Implement when we can find debuggable applications for iOS.
|
|
77
76
|
return Promise.resolve(null);
|
|
78
77
|
}
|
|
79
|
-
// iOS will kill the app if we freeze it in the NativeScript Runtime and wait for debug-brk.
|
|
80
|
-
// In order to avoid that, we are attaching lldb and passing it "process continue".
|
|
81
|
-
// In this way, iOS will not kill the app because it has a native debugger attached
|
|
82
|
-
// and the users will be able to attach a debug session using the debug-brk flag.
|
|
83
78
|
attachNativeDebugger(appId, pid) {
|
|
84
79
|
this._lldbProcesses[appId] = this.$childProcess.spawn("lldb", ["-p", pid]);
|
|
85
80
|
if (log4js.levels.TRACE.isGreaterThanOrEqualTo(this.$logger.getLevel())) {
|
|
@@ -121,4 +116,3 @@ __decorate([
|
|
|
121
116
|
__decorate([
|
|
122
117
|
(0, decorators_1.cache)()
|
|
123
118
|
], IOSSimulatorApplicationManager.prototype, "startDeviceLog", null);
|
|
124
|
-
//# sourceMappingURL=ios-simulator-application-manager.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as net from "net";
|
|
2
|
+
import { IOSDeviceBase } from "../ios-device-base";
|
|
3
|
+
import { IiOSNotification } from "../../../../declarations";
|
|
4
|
+
import { IErrors } from "../../../declarations";
|
|
5
|
+
import { IInjector } from "../../../definitions/yok";
|
|
6
|
+
export declare class IOSSimulator extends IOSDeviceBase implements Mobile.IiOSDevice {
|
|
7
|
+
private simulator;
|
|
8
|
+
private $devicePlatformsConstants;
|
|
9
|
+
protected $deviceLogProvider: Mobile.IDeviceLogProvider;
|
|
10
|
+
protected $errors: IErrors;
|
|
11
|
+
protected $lockService: ILockService;
|
|
12
|
+
private $injector;
|
|
13
|
+
protected $iOSDebuggerPortService: IIOSDebuggerPortService;
|
|
14
|
+
private $iOSSimResolver;
|
|
15
|
+
private $iOSEmulatorServices;
|
|
16
|
+
private $iOSNotification;
|
|
17
|
+
private $iOSSimulatorLogProvider;
|
|
18
|
+
protected $logger: ILogger;
|
|
19
|
+
applicationManager: Mobile.IDeviceApplicationManager;
|
|
20
|
+
fileSystem: Mobile.IDeviceFileSystem;
|
|
21
|
+
deviceInfo: Mobile.IDeviceInfo;
|
|
22
|
+
constructor(simulator: Mobile.IiSimDevice, $devicePlatformsConstants: Mobile.IDevicePlatformsConstants, $deviceLogProvider: Mobile.IDeviceLogProvider, $errors: IErrors, $lockService: ILockService, $injector: IInjector, $iOSDebuggerPortService: IIOSDebuggerPortService, $iOSSimResolver: Mobile.IiOSSimResolver, $iOSEmulatorServices: Mobile.IiOSSimulatorService, $iOSNotification: IiOSNotification, $iOSSimulatorLogProvider: Mobile.IiOSSimulatorLogProvider, $logger: ILogger);
|
|
23
|
+
get isEmulator(): boolean;
|
|
24
|
+
get isOnlyWiFiConnected(): boolean;
|
|
25
|
+
openDeviceLogStream(options?: Mobile.IiOSLogStreamOptions): Promise<void>;
|
|
26
|
+
protected getDebugSocketCore(appId: string): Promise<net.Socket>;
|
|
27
|
+
}
|
|
@@ -65,15 +65,11 @@ class IOSSimulator extends ios_device_base_1.IOSDeviceBase {
|
|
|
65
65
|
let socket;
|
|
66
66
|
const attachRequestMessage = this.$iOSNotification.getAttachRequest(appId, this.deviceInfo.identifier);
|
|
67
67
|
await this.$iOSEmulatorServices.postDarwinNotification(attachRequestMessage, this.deviceInfo.identifier);
|
|
68
|
-
// Retry posting the notification every five seconds, in case the AttachRequest
|
|
69
|
-
// event handler wasn't registered when the first one was sent
|
|
70
68
|
const postNotificationRetryInterval = setInterval(() => {
|
|
71
69
|
this.$iOSEmulatorServices
|
|
72
70
|
.postDarwinNotification(attachRequestMessage, this.deviceInfo.identifier)
|
|
73
71
|
.catch((e) => this.$logger.error(e));
|
|
74
72
|
}, 5e3);
|
|
75
|
-
// the internal retry-mechanism of getDebuggerPort will ensure the above
|
|
76
|
-
// interval has a chance to execute multiple times
|
|
77
73
|
const port = await super.getDebuggerPort(appId).finally(() => {
|
|
78
74
|
clearInterval(postNotificationRetryInterval);
|
|
79
75
|
});
|
|
@@ -92,4 +88,3 @@ exports.IOSSimulator = IOSSimulator;
|
|
|
92
88
|
__decorate([
|
|
93
89
|
(0, decorators_1.cache)()
|
|
94
90
|
], IOSSimulator.prototype, "openDeviceLogStream", null);
|
|
95
|
-
//# sourceMappingURL=ios-simulator-device.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IFileSystem, IStringDictionary } from "../../../declarations";
|
|
2
|
+
export declare class IOSSimulatorFileSystem implements Mobile.IDeviceFileSystem {
|
|
3
|
+
private iosSim;
|
|
4
|
+
private $fs;
|
|
5
|
+
private $logger;
|
|
6
|
+
constructor(iosSim: any, $fs: IFileSystem, $logger: ILogger);
|
|
7
|
+
listFiles(devicePath: string): Promise<void>;
|
|
8
|
+
getFile(deviceFilePath: string, appIdentifier: string, outputFilePath?: string): Promise<void>;
|
|
9
|
+
getFileContent(deviceFilePath: string, appIdentifier: string): Promise<string>;
|
|
10
|
+
putFile(localFilePath: string, deviceFilePath: string, appIdentifier: string): Promise<void>;
|
|
11
|
+
deleteFile(deviceFilePath: string, appIdentifier: string): Promise<void>;
|
|
12
|
+
transferFiles(deviceAppData: Mobile.IDeviceAppData, localToDevicePaths: Mobile.ILocalToDevicePathData[]): Promise<Mobile.ILocalToDevicePathData[]>;
|
|
13
|
+
transferDirectory(deviceAppData: Mobile.IDeviceAppData, localToDevicePaths: Mobile.ILocalToDevicePathData[], projectFilesPath: string): Promise<Mobile.ILocalToDevicePathData[]>;
|
|
14
|
+
transferFile(localFilePath: string, deviceFilePath: string): Promise<void>;
|
|
15
|
+
updateHashesOnDevice(hashes: IStringDictionary, appIdentifier: string): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventEmitter } from "events";
|
|
2
|
+
import { IShouldDispose, IDisposable } from "../../../declarations";
|
|
3
|
+
export declare class IOSSimulatorLogProvider extends EventEmitter implements Mobile.IiOSSimulatorLogProvider, IDisposable, IShouldDispose {
|
|
4
|
+
private $iOSSimResolver;
|
|
5
|
+
private $logger;
|
|
6
|
+
private $devicePlatformsConstants;
|
|
7
|
+
private $deviceLogProvider;
|
|
8
|
+
shouldDispose: boolean;
|
|
9
|
+
private simulatorsLoggingEnabled;
|
|
10
|
+
private simulatorsLogProcess;
|
|
11
|
+
constructor($iOSSimResolver: Mobile.IiOSSimResolver, $logger: ILogger, $devicePlatformsConstants: Mobile.IDevicePlatformsConstants, $deviceLogProvider: Mobile.IDeviceLogProvider);
|
|
12
|
+
setShouldDispose(shouldDispose: boolean): void;
|
|
13
|
+
startLogProcess(deviceId: string, options?: Mobile.IiOSLogStreamOptions): Promise<void>;
|
|
14
|
+
dispose(signal?: any): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IInjector } from "../definitions/yok";
|
|
2
|
+
export declare class LogFilter implements Mobile.ILogFilter {
|
|
3
|
+
private $devicePlatformsConstants;
|
|
4
|
+
private $injector;
|
|
5
|
+
private $loggingLevels;
|
|
6
|
+
private _loggingLevel;
|
|
7
|
+
constructor($devicePlatformsConstants: Mobile.IDevicePlatformsConstants, $injector: IInjector, $loggingLevels: Mobile.ILoggingLevels);
|
|
8
|
+
get loggingLevel(): string;
|
|
9
|
+
set loggingLevel(logLevel: string);
|
|
10
|
+
filterData(platform: string, data: string, loggingOptions?: Mobile.IDeviceLogOptions): string;
|
|
11
|
+
private getDeviceLogFilterInstance;
|
|
12
|
+
private verifyLogLevel;
|
|
13
|
+
}
|
|
@@ -24,7 +24,6 @@ class LogFilter {
|
|
|
24
24
|
if (deviceLogFilter) {
|
|
25
25
|
return deviceLogFilter.filterData(data, loggingOptions);
|
|
26
26
|
}
|
|
27
|
-
// In case the platform is not valid, just return the data without filtering.
|
|
28
27
|
return data;
|
|
29
28
|
}
|
|
30
29
|
getDeviceLogFilterInstance(platform) {
|
|
@@ -50,4 +49,3 @@ class LogFilter {
|
|
|
50
49
|
}
|
|
51
50
|
exports.LogFilter = LogFilter;
|
|
52
51
|
yok_1.injector.register("logFilter", LogFilter);
|
|
53
|
-
//# sourceMappingURL=log-filter.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DeviceDiscovery } from "./device-discovery";
|
|
2
|
+
import { IInjector } from "../../definitions/yok";
|
|
3
|
+
export declare class AndroidDeviceDiscovery extends DeviceDiscovery implements Mobile.IAndroidDeviceDiscovery {
|
|
4
|
+
private $injector;
|
|
5
|
+
private $adb;
|
|
6
|
+
private $mobileHelper;
|
|
7
|
+
private _devices;
|
|
8
|
+
private isStarted;
|
|
9
|
+
constructor($injector: IInjector, $adb: Mobile.IAndroidDebugBridge, $mobileHelper: Mobile.IMobileHelper);
|
|
10
|
+
private createAndAddDevice;
|
|
11
|
+
private deleteAndRemoveDevice;
|
|
12
|
+
startLookingForDevices(options?: Mobile.IDeviceLookingOptions): Promise<void>;
|
|
13
|
+
private checkForDevices;
|
|
14
|
+
private checkCurrentData;
|
|
15
|
+
ensureAdbServerStarted(): Promise<any>;
|
|
16
|
+
}
|
|
@@ -38,7 +38,6 @@ class AndroidDeviceDiscovery extends device_discovery_1.DeviceDiscovery {
|
|
|
38
38
|
}
|
|
39
39
|
async checkCurrentData(result) {
|
|
40
40
|
const currentDevices = result.map((element) => {
|
|
41
|
-
// http://developer.android.com/tools/help/adb.html#devicestatus
|
|
42
41
|
const data = element.split("\t");
|
|
43
42
|
const identifier = data[0];
|
|
44
43
|
const status = data[1];
|
|
@@ -71,4 +70,3 @@ class AndroidDeviceDiscovery extends device_discovery_1.DeviceDiscovery {
|
|
|
71
70
|
}
|
|
72
71
|
exports.AndroidDeviceDiscovery = AndroidDeviceDiscovery;
|
|
73
72
|
yok_1.injector.register("androidDeviceDiscovery", AndroidDeviceDiscovery);
|
|
74
|
-
//# sourceMappingURL=android-device-discovery.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from "events";
|
|
2
|
+
export declare class AndroidEmulatorDiscovery extends EventEmitter implements Mobile.IDeviceDiscovery {
|
|
3
|
+
private $androidEmulatorServices;
|
|
4
|
+
private $mobileHelper;
|
|
5
|
+
private _emulators;
|
|
6
|
+
constructor($androidEmulatorServices: Mobile.IEmulatorPlatformService, $mobileHelper: Mobile.IMobileHelper);
|
|
7
|
+
startLookingForDevices(options?: Mobile.IDeviceLookingOptions): Promise<void>;
|
|
8
|
+
getDevices(): Mobile.IDeviceInfo[];
|
|
9
|
+
private raiseOnEmulatorImagesFound;
|
|
10
|
+
private raiseOnEmulatorImagesLost;
|
|
11
|
+
}
|
|
@@ -21,11 +21,9 @@ class AndroidEmulatorDiscovery extends events_1.EventEmitter {
|
|
|
21
21
|
const availableEmulatorsOutput = await this.$androidEmulatorServices.getEmulatorImages();
|
|
22
22
|
const currentEmulators = availableEmulatorsOutput.devices;
|
|
23
23
|
const cachedEmulators = _.values(this._emulators);
|
|
24
|
-
// Remove old emulators
|
|
25
24
|
const lostEmulators = _(cachedEmulators)
|
|
26
25
|
.reject((e) => _.some(currentEmulators, (emulator) => emulator && e && emulator.imageIdentifier === e.imageIdentifier))
|
|
27
26
|
.value();
|
|
28
|
-
// Add new emulators
|
|
29
27
|
const foundEmulators = _(currentEmulators)
|
|
30
28
|
.reject((e) => _.some(cachedEmulators, (emulator) => emulator && e && emulator.imageIdentifier === e.imageIdentifier))
|
|
31
29
|
.value();
|
|
@@ -54,4 +52,3 @@ class AndroidEmulatorDiscovery extends events_1.EventEmitter {
|
|
|
54
52
|
}
|
|
55
53
|
exports.AndroidEmulatorDiscovery = AndroidEmulatorDiscovery;
|
|
56
54
|
yok_1.injector.register("androidEmulatorDiscovery", AndroidEmulatorDiscovery);
|
|
57
|
-
//# sourceMappingURL=android-emulator-discovery.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IDictionary, IErrors, INet } from "../../declarations";
|
|
2
|
+
import { ICleanupService } from "../../../definitions/cleanup-service";
|
|
3
|
+
import { IInjector } from "../../definitions/yok";
|
|
4
|
+
import { IStaticConfig } from "../../../declarations";
|
|
5
|
+
export declare class AndroidProcessService implements Mobile.IAndroidProcessService {
|
|
6
|
+
private $errors;
|
|
7
|
+
private $cleanupService;
|
|
8
|
+
private $injector;
|
|
9
|
+
private $net;
|
|
10
|
+
private $staticConfig;
|
|
11
|
+
private _devicesAdbs;
|
|
12
|
+
private _forwardedLocalPorts;
|
|
13
|
+
constructor($errors: IErrors, $cleanupService: ICleanupService, $injector: IInjector, $net: INet, $staticConfig: IStaticConfig);
|
|
14
|
+
forwardFreeTcpToAbstractPort(portForwardInputData: Mobile.IPortForwardData): Promise<number>;
|
|
15
|
+
mapAbstractToTcpPort(deviceIdentifier: string, appIdentifier: string, framework: string): Promise<string>;
|
|
16
|
+
getMappedAbstractToTcpPorts(deviceIdentifier: string, appIdentifiers: string[], framework: string): Promise<IDictionary<number>>;
|
|
17
|
+
getDebuggableApps(deviceIdentifier: string): Promise<Mobile.IDeviceApplicationInformation[]>;
|
|
18
|
+
getAppProcessId(deviceIdentifier: string, appIdentifier: string): Promise<string>;
|
|
19
|
+
private forwardPort;
|
|
20
|
+
private setupForPortForwarding;
|
|
21
|
+
private getApplicationInfoFromWebViewPortInformation;
|
|
22
|
+
private getNativeScriptApplicationInformation;
|
|
23
|
+
private getAbstractPortForApplication;
|
|
24
|
+
private getCordovaPortInformation;
|
|
25
|
+
private getNativeScriptPortInformation;
|
|
26
|
+
private getAbstractPortsInformation;
|
|
27
|
+
private getPortInformation;
|
|
28
|
+
private getProcessIds;
|
|
29
|
+
private getAlreadyMappedPort;
|
|
30
|
+
private getAdb;
|
|
31
|
+
private getApplicationIdentifierFromPid;
|
|
32
|
+
private getFirstMatchingGroupFromMultilineResult;
|
|
33
|
+
}
|
|
@@ -71,19 +71,6 @@ class AndroidProcessService {
|
|
|
71
71
|
async getDebuggableApps(deviceIdentifier) {
|
|
72
72
|
const adb = this.getAdb(deviceIdentifier);
|
|
73
73
|
const androidWebViewPortInformation = (await this.getAbstractPortsInformation(adb)).split(os_1.EOL);
|
|
74
|
-
// TODO: Add tests and make sure only unique names are returned. Input before groupBy is:
|
|
75
|
-
// [ { deviceIdentifier: 'SH26BW100473',
|
|
76
|
-
// appIdentifier: 'com.telerik.EmptyNS',
|
|
77
|
-
// framework: 'NativeScript' },
|
|
78
|
-
// { deviceIdentifier: 'SH26BW100473',
|
|
79
|
-
// appIdentifier: 'com.telerik.EmptyNS',
|
|
80
|
-
// framework: 'Cordova' },
|
|
81
|
-
// { deviceIdentifier: 'SH26BW100473',
|
|
82
|
-
// appIdentifier: 'chrome',
|
|
83
|
-
// framework: 'Cordova' },
|
|
84
|
-
// { deviceIdentifier: 'SH26BW100473',
|
|
85
|
-
// appIdentifier: 'chrome',
|
|
86
|
-
// framework: 'Cordova' } ]
|
|
87
74
|
const portInformation = await Promise.all(_.map(androidWebViewPortInformation, async (line) => (await this.getApplicationInfoFromWebViewPortInformation(adb, deviceIdentifier, line)) ||
|
|
88
75
|
(await this.getNativeScriptApplicationInformation(adb, deviceIdentifier, line))));
|
|
89
76
|
return _(portInformation)
|
|
@@ -122,7 +109,6 @@ class AndroidProcessService {
|
|
|
122
109
|
return adb;
|
|
123
110
|
}
|
|
124
111
|
async getApplicationInfoFromWebViewPortInformation(adb, deviceIdentifier, information) {
|
|
125
|
-
// Need to search by processId to check for old Android webviews (@webview_devtools_remote_<processId>).
|
|
126
112
|
const processIdRegExp = /@webview_devtools_remote_(.+)/g;
|
|
127
113
|
const processIdMatches = processIdRegExp.exec(information);
|
|
128
114
|
let cordovaAppIdentifier;
|
|
@@ -131,7 +117,6 @@ class AndroidProcessService {
|
|
|
131
117
|
cordovaAppIdentifier = await this.getApplicationIdentifierFromPid(adb, processId);
|
|
132
118
|
}
|
|
133
119
|
else {
|
|
134
|
-
// Search for appIdentifier (@<appIdentifier>_devtools_remote).
|
|
135
120
|
const chromeAppIdentifierRegExp = /@(.+)_devtools_remote\s?/g;
|
|
136
121
|
const chromeAppIdentifierMatches = chromeAppIdentifierRegExp.exec(information);
|
|
137
122
|
if (chromeAppIdentifierMatches && chromeAppIdentifierMatches.length > 0) {
|
|
@@ -148,7 +133,6 @@ class AndroidProcessService {
|
|
|
148
133
|
return null;
|
|
149
134
|
}
|
|
150
135
|
async getNativeScriptApplicationInformation(adb, deviceIdentifier, information) {
|
|
151
|
-
// Search for appIdentifier (@<appIdentifier-debug>).
|
|
152
136
|
const nativeScriptAppIdentifierRegExp = /@(.+)-(debug|inspectorServer)/g;
|
|
153
137
|
const nativeScriptAppIdentifierMatches = nativeScriptAppIdentifierRegExp.exec(information);
|
|
154
138
|
if (nativeScriptAppIdentifierMatches &&
|
|
@@ -163,10 +147,6 @@ class AndroidProcessService {
|
|
|
163
147
|
return null;
|
|
164
148
|
}
|
|
165
149
|
async getAbstractPortForApplication(adb, processId, appIdentifier, abstractPortsInformation, framework) {
|
|
166
|
-
// The result will look like this (without the columns names):
|
|
167
|
-
// Num RefCount Protocol Flags Type St Inode Path
|
|
168
|
-
// 0000000000000000: 00000002 00000000 00010000 0001 01 189004 @webview_devtools_remote_25512
|
|
169
|
-
// The Path column is the abstract port.
|
|
170
150
|
framework = framework || "";
|
|
171
151
|
switch (framework.toLowerCase()) {
|
|
172
152
|
case constants_1.TARGET_FRAMEWORK_IDENTIFIERS.Cordova.toLowerCase():
|
|
@@ -193,9 +173,6 @@ class AndroidProcessService {
|
|
|
193
173
|
return match && match[1];
|
|
194
174
|
}
|
|
195
175
|
async getProcessIds(adb, appIdentifiers) {
|
|
196
|
-
// Process information will look like this (without the columns names):
|
|
197
|
-
// USER PID PPID VSIZE RSS WCHAN PC NAME
|
|
198
|
-
// u0_a63 25512 1334 1519560 96040 ffffffff f76a8f75 S com.telerik.appbuildertabstest
|
|
199
176
|
const result = {};
|
|
200
177
|
const processIdInformation = await adb.executeShellCommand(["ps"]);
|
|
201
178
|
_.each(appIdentifiers, (appIdentifier) => {
|
|
@@ -206,11 +183,6 @@ class AndroidProcessService {
|
|
|
206
183
|
}
|
|
207
184
|
async getAlreadyMappedPort(adb, deviceIdentifier, abstractPort, adbForwardList) {
|
|
208
185
|
const allForwardedPorts = adbForwardList || (await adb.executeCommand(["forward", "--list"])) || "";
|
|
209
|
-
// Sample output:
|
|
210
|
-
// 5e2e580b tcp:62503 localabstract:webview_devtools_remote_7985
|
|
211
|
-
// 5e2e580b tcp:62524 localabstract:webview_devtools_remote_7986
|
|
212
|
-
// 5e2e580b tcp:63160 localabstract:webview_devtools_remote_7987
|
|
213
|
-
// 5e2e580b tcp:57577 localabstract:com.telerik.nrel-debug
|
|
214
186
|
const regex = new RegExp(`${deviceIdentifier}\\s+?tcp:(\\d+?)\\s+?.*?${abstractPort}$`);
|
|
215
187
|
return this.getFirstMatchingGroupFromMultilineResult(allForwardedPorts, regex);
|
|
216
188
|
}
|
|
@@ -224,9 +196,6 @@ class AndroidProcessService {
|
|
|
224
196
|
}
|
|
225
197
|
async getApplicationIdentifierFromPid(adb, pid, psData) {
|
|
226
198
|
psData = psData || (await adb.executeShellCommand(["ps"]));
|
|
227
|
-
// Process information will look like this (without the columns names):
|
|
228
|
-
// USER PID PPID VSIZE RSS WCHAN PC NAME
|
|
229
|
-
// u0_a63 25512 1334 1519560 96040 ffffffff f76a8f75 S com.telerik.appbuildertabstest
|
|
230
199
|
return this.getFirstMatchingGroupFromMultilineResult(psData, new RegExp(`\\s+${pid}(?:\\s+\\d+){3}\\s+.*\\s+(.*?)$`));
|
|
231
200
|
}
|
|
232
201
|
getFirstMatchingGroupFromMultilineResult(input, regex) {
|
|
@@ -249,4 +218,3 @@ __decorate([
|
|
|
249
218
|
(0, decorators_1.exported)("androidProcessService")
|
|
250
219
|
], AndroidProcessService.prototype, "getAppProcessId", null);
|
|
251
220
|
yok_1.injector.register("androidProcessService", AndroidProcessService);
|
|
252
|
-
//# sourceMappingURL=android-process-service.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from "events";
|
|
2
|
+
export declare class DeviceDiscovery extends EventEmitter implements Mobile.IDeviceDiscovery {
|
|
3
|
+
private devices;
|
|
4
|
+
startLookingForDevices(): Promise<void>;
|
|
5
|
+
protected getDevice(deviceIdentifier: string): Mobile.IDevice;
|
|
6
|
+
protected addDevice(device: Mobile.IDevice): void;
|
|
7
|
+
protected updateDeviceInfo(device: Mobile.IDevice): void;
|
|
8
|
+
protected removeDevice(deviceIdentifier: string): void;
|
|
9
|
+
private raiseOnDeviceFound;
|
|
10
|
+
private raiseOnDeviceUpdated;
|
|
11
|
+
private raiseOnDeviceLost;
|
|
12
|
+
}
|