This repository was archived by the owner on Feb 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconstants.ts
95 lines (78 loc) · 3.2 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// enumeration taken from ProvisionType.cs
export class ProvisionType {
static Development = "Development";
static AdHoc = "AdHoc";
static AppStore = "AppStore";
static Enterprise = "Enterprise";
}
export class DeviceTypes {
static Emulator = "Emulator";
static Simulator = "Simulator";
static Device = "Device";
}
export const APP_RESOURCES_FOLDER_NAME = "App_Resources";
export const ERROR_NO_DEVICES = "Cannot find connected devices. Reconnect any connected devices, verify that your system recognizes them, and run this command again.";
export const ERROR_CANT_USE_SIMULATOR = "You can use iOS simulator only on OS X.";
export const ERROR_NO_DEVICES_CANT_USE_IOS_SIMULATOR = "Cannot find connected devices and cannot start iOS simulator on this OS.";
export const 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'.";
export const ERROR_NO_VALID_SUBCOMMAND_FORMAT = "The input is not valid sub-command for '%s' command";
export const UNREACHABLE_STATUS = "Unreachable";
export const CONNECTED_STATUS = "Connected";
export class LiveSyncConstants {
static VERSION_2 = 2;
static VERSION_3 = 3;
static GUID = "12590FAA-5EDD-4B12-856D-F52A0A1599F2";
static DEVICE_TMP_DIR_FORMAT_V2 = `/data/local/tmp/${LiveSyncConstants.GUID}/%s`;
static ANDROID_FILES_PATH = `files/${LiveSyncConstants.GUID}`;
static DEVICE_TMP_DIR_FORMAT_V3 = `/mnt/sdcard/Android/data/%s/${LiveSyncConstants.ANDROID_FILES_PATH}`;
static CHECK_LIVESYNC_INTENT_NAME = "com.telerik.IsLiveSyncSupported";
static IOS_PROJECT_PATH = "/Documents/AppBuilder/LiveSync";
}
export class DeviceDiscoveryEventNames {
static DEVICE_FOUND = "deviceFound";
static DEVICE_LOST = "deviceLost";
}
export const DEVICE_LOG_EVENT_NAME = "deviceLogData";
export const TARGET_FRAMEWORK_IDENTIFIERS = {
Cordova: "Cordova",
NativeScript: "NativeScript"
};
export class Configurations {
static Debug = "Debug";
static Release = "Release";
}
export const NODE_MODULES_DIR_NAME = "node_modules";
export const TNS_CORE_MODULES = "tns-core-modules";
export class FileExtensions {
static TYPESCRIPT_DEFINITION_FILE = ".d.ts";
static TYPESCRIPT_FILE = ".ts";
static PNG_FILE = ".png";
static NINE_PATCH_PNG_FILE = ".9.png";
}
export const IOS_POST_NOTIFICATION_COMMAND_TYPE = "PostNotification";
export const IOS_OBSERVE_NOTIFICATION_COMMAND_TYPE = "ObserveNotification";
export const IOS_RELAY_NOTIFICATION_COMMAND_TYPE = "RelayNotification";
export class Proxy {
static CACHE_FILE_NAME = "proxy-cache.json";
static USE_PROXY = "USE_PROXY";
static PROXY_PORT = "PROXY_PORT";
static PROXY_HOSTNAME = "PROXY_HOSTNAME";
}
/**
* Http status codes available from `require("http").STATUS_CODES`.
*/
export class HttpStatusCodes {
static SEE_OTHER = 303;
static PAYMENT_REQUIRED = 402;
static PROXY_AUTHENTICATION_REQUIRED = 407;
}
export const HttpProtocolToPort: IDictionary<number> = {
'http:': 80,
'https:': 443
};
export const enum AnalyticsClients {
Cli = "CLI",
NonInteractive = "Non-interactive",
Unknown = "Unknown"
}
export const DEFAULT_CHUNK_SIZE = 100;