UNPKG

nativescript

Version:

Command-line interface for building NativeScript projects

133 lines 7.41 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SOCKET_CONNECTION_TIMEOUT_MS = exports.AndroidVirtualDevice = exports.ATTACH_REQUEST_EVENT_NAME = exports.DEBUGGER_PORT_FOUND_EVENT_NAME = exports.DEFAULT_CHUNK_SIZE = exports.HttpProtocolToPort = exports.HttpStatusCodes = exports.Proxy = exports.IOS_RELAY_NOTIFICATION_COMMAND_TYPE = exports.IOS_OBSERVE_NOTIFICATION_COMMAND_TYPE = exports.IOS_POST_NOTIFICATION_COMMAND_TYPE = exports.FileExtensions = exports.TNS_CORE_MODULES = exports.NODE_MODULES_DIR_NAME = exports.Configurations = exports.TARGET_FRAMEWORK_IDENTIFIERS = exports.FAIL_LIVESYNC_LOG_REGEX = exports.IOS_APP_CRASH_LOG_REG_EXP = exports.IOS_LOG_PREDICATE = exports.DEVICE_LOG_EVENT_NAME = exports.EmulatorDiscoveryNames = exports.DeviceDiscoveryEventNames = exports.HmrConstants = exports.LiveSyncPaths = exports.APPLE_VENDOR_NAME = exports.NOT_RUNNING_EMULATOR_STATUS = exports.RUNNING_EMULATOR_STATUS = exports.CONNECTED_STATUS = exports.UNREACHABLE_STATUS = exports.ERROR_NO_VALID_SUBCOMMAND_FORMAT = exports.ERROR_CANNOT_RESOLVE_DEVICE = exports.ERROR_NO_DEVICES_CANT_USE_IOS_SIMULATOR = exports.ERROR_CANT_USE_SIMULATOR = exports.ERROR_NO_DEVICES = exports.APP_RESOURCES_FOLDER_NAME = exports.DeviceTypes = exports.ProvisionType = void 0; // enumeration taken from ProvisionType.cs class ProvisionType { } exports.ProvisionType = ProvisionType; ProvisionType.Development = "Development"; ProvisionType.AdHoc = "AdHoc"; ProvisionType.AppStore = "AppStore"; ProvisionType.Enterprise = "Enterprise"; class DeviceTypes { } exports.DeviceTypes = DeviceTypes; DeviceTypes.Emulator = "Emulator"; DeviceTypes.Simulator = "Simulator"; DeviceTypes.Device = "Device"; exports.APP_RESOURCES_FOLDER_NAME = "App_Resources"; exports.ERROR_NO_DEVICES = "Cannot find connected devices. Reconnect any connected devices, verify that your system recognizes them, and run this command again."; exports.ERROR_CANT_USE_SIMULATOR = "You can use iOS simulator only on OS X."; exports.ERROR_NO_DEVICES_CANT_USE_IOS_SIMULATOR = "Cannot find connected devices and cannot start iOS simulator on this OS."; exports.ERROR_CANNOT_RESOLVE_DEVICE = "Cannot resolve the specified connected device. The provided platform does not match the provided index or identifier. To list currently connected devices and verify that the specified pair of platform and index or identifier exists, run 'device'."; exports.ERROR_NO_VALID_SUBCOMMAND_FORMAT = "The input is not valid sub-command for '%s' command."; exports.UNREACHABLE_STATUS = "Unreachable"; exports.CONNECTED_STATUS = "Connected"; exports.RUNNING_EMULATOR_STATUS = "Running"; exports.NOT_RUNNING_EMULATOR_STATUS = "Not running"; exports.APPLE_VENDOR_NAME = "Apple"; class LiveSyncPaths { } exports.LiveSyncPaths = LiveSyncPaths; LiveSyncPaths.SYNC_DIR_NAME = "sync"; LiveSyncPaths.REMOVEDSYNC_DIR_NAME = "removedsync"; LiveSyncPaths.FULLSYNC_DIR_NAME = "fullsync"; LiveSyncPaths.IOS_DEVICE_PROJECT_ROOT_PATH = "Library/Application Support/LiveSync"; LiveSyncPaths.IOS_DEVICE_SYNC_ZIP_PATH = "Library/Application Support/LiveSync/sync.zip"; LiveSyncPaths.ANDROID_TMP_DIR_NAME = "/data/local/tmp"; class HmrConstants { } exports.HmrConstants = HmrConstants; HmrConstants.HMR_ERROR_STATUS = 3; HmrConstants.HMR_SUCCESS_STATUS = 2; class DeviceDiscoveryEventNames { } exports.DeviceDiscoveryEventNames = DeviceDiscoveryEventNames; DeviceDiscoveryEventNames.DEVICE_FOUND = "deviceFound"; DeviceDiscoveryEventNames.DEVICE_UPDATED = "deviceUpdated"; DeviceDiscoveryEventNames.DEVICE_LOST = "deviceLost"; class EmulatorDiscoveryNames { } exports.EmulatorDiscoveryNames = EmulatorDiscoveryNames; EmulatorDiscoveryNames.EMULATOR_IMAGE_FOUND = "emulatorImageFound"; EmulatorDiscoveryNames.EMULATOR_IMAGE_LOST = "emulatorImageLost"; exports.DEVICE_LOG_EVENT_NAME = "deviceLogData"; exports.IOS_LOG_PREDICATE = 'senderImagePath contains "NativeScript"'; exports.IOS_APP_CRASH_LOG_REG_EXP = /Fatal JavaScript exception \- application has been terminated/; exports.FAIL_LIVESYNC_LOG_REGEX = /Failed to refresh the application with RefreshRequest./; exports.TARGET_FRAMEWORK_IDENTIFIERS = { Cordova: "Cordova", NativeScript: "NativeScript", }; class Configurations { } exports.Configurations = Configurations; Configurations.Debug = "Debug"; Configurations.Release = "Release"; exports.NODE_MODULES_DIR_NAME = "node_modules"; exports.TNS_CORE_MODULES = "tns-core-modules"; class FileExtensions { } exports.FileExtensions = FileExtensions; FileExtensions.TYPESCRIPT_DEFINITION_FILE = ".d.ts"; FileExtensions.TYPESCRIPT_FILE = ".ts"; FileExtensions.PNG_FILE = ".png"; FileExtensions.NINE_PATCH_PNG_FILE = ".9.png"; exports.IOS_POST_NOTIFICATION_COMMAND_TYPE = "PostNotification"; exports.IOS_OBSERVE_NOTIFICATION_COMMAND_TYPE = "ObserveNotification"; exports.IOS_RELAY_NOTIFICATION_COMMAND_TYPE = "RelayNotification"; class Proxy { } exports.Proxy = Proxy; Proxy.CACHE_FILE_NAME = "proxy-cache.json"; Proxy.USE_PROXY = "USE_PROXY"; Proxy.PROXY_PORT = "PROXY_PORT"; Proxy.PROXY_HOSTNAME = "PROXY_HOSTNAME"; /** * Http status codes available from `require("http").STATUS_CODES`. */ class HttpStatusCodes { } exports.HttpStatusCodes = HttpStatusCodes; HttpStatusCodes.SEE_OTHER = 303; HttpStatusCodes.NOT_MODIFIED = 304; HttpStatusCodes.PAYMENT_REQUIRED = 402; HttpStatusCodes.PROXY_AUTHENTICATION_REQUIRED = 407; HttpStatusCodes.CONFLICTING_RESOURCE = 409; exports.HttpProtocolToPort = { "http:": 80, "https:": 443, }; exports.DEFAULT_CHUNK_SIZE = 100; exports.DEBUGGER_PORT_FOUND_EVENT_NAME = "DEBUGGER_PORT_FOUND"; exports.ATTACH_REQUEST_EVENT_NAME = "ATTACH_REQUEST"; class AndroidVirtualDevice { } exports.AndroidVirtualDevice = AndroidVirtualDevice; AndroidVirtualDevice.ANDROID_DIR_NAME = ".android"; AndroidVirtualDevice.AVD_DIR_NAME = "avd"; AndroidVirtualDevice.ENCODING_MASK = /^avd\.ini\.encoding=(.*)$/; AndroidVirtualDevice.INI_FILES_MASK = /^(.*)\.ini$/i; AndroidVirtualDevice.AVD_FILES_MASK = /^(.*)\.avd$/i; AndroidVirtualDevice.MIN_ANDROID_APILEVEL = 17; AndroidVirtualDevice.MIN_ANDROID_VERSION = "4.2"; /** * The message that is printed from `avdmanager list avds` */ AndroidVirtualDevice.AVAILABLE_AVDS_MESSAGE = "Available Android Virtual Devices:"; /** * The delimiter between devices that is used from `avdmanager list avds` */ AndroidVirtualDevice.AVD_LIST_DELIMITER = "---------"; AndroidVirtualDevice.CONFIG_INI_FILE_NAME = "config.ini"; AndroidVirtualDevice.INI_FILE_EXTENSION = ".ini"; AndroidVirtualDevice.AVD_FILE_EXTENSION = ".avd"; AndroidVirtualDevice.RUNNING_AVD_EMULATOR_REGEX = /^(emulator-\d+)\s+device$/; AndroidVirtualDevice.RUNNING_GENY_EMULATOR_REGEX = /^(.+?)\s+device$/; AndroidVirtualDevice.GENYMOTION_VENDOR_NAME = "Genymotion"; AndroidVirtualDevice.AVD_VENDOR_NAME = "Avd"; AndroidVirtualDevice.TIMEOUT_SECONDS = 120; AndroidVirtualDevice.GENYMOTION_DEFAULT_STDERR_STRING = "Logging activities to file"; AndroidVirtualDevice.UNABLE_TO_START_EMULATOR_MESSAGE = "Cannot run the app in the selected native emulator. Try to restart the adb server by running the `adb kill-server` command in the Command Prompt, or increase the allocated RAM of the virtual device through the Android Virtual Device manager. NativeScript CLI users can try to increase the timeout of the operation by adding the `--timeout` flag."; exports.SOCKET_CONNECTION_TIMEOUT_MS = 30000; //# sourceMappingURL=constants.js.map