microsoft/vscode-react-native

Public

mirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.6.6

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/extension/appcenter/appCenterConstants.ts

76lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for details.
3
4export class ACConstants {
5 public static ExtensionPrefixName: string = "reactNative";
6 public static AppCenterExtensionName: string = "appcenter";
7 public static DefaulAPIEndPoint: string = "https://api.appcenter.ms";
8 public static DefaultLoginEndPoint: string = "https://appcenter.ms/cli-login";
9 public static DefaultLegacyCodePushService: string = "https://codepush-management.azurewebsites.net/";
10 public static CodePushNpmPackageName: string = "react-native-code-push";
11 public static AppCenterReactNativePlatformName: string = "React-Native";
12 public static AppCenterCodePushStatusBarColor: string = "#F3F3B2";
13 public static AppCenterDefaultTargetBinaryVersion: string = "";
14 public static AppCenterDefaultIsMandatoryParam: boolean = false;
15}
16
17export class ACCommandNames {
18 public static CommandPrefix: string = ACConstants.AppCenterExtensionName + ".";
19 public static Login: string = ACCommandNames.CommandPrefix + "login";
20 public static Logout: string = ACCommandNames.CommandPrefix + "logout";
21 public static WhoAmI: string = ACCommandNames.CommandPrefix + "whoami";
22 public static SetCurrentApp: string = ACCommandNames.CommandPrefix + "setcurrentapp";
23 public static GetCurrentApp: string = ACCommandNames.CommandPrefix + "getcurrentapp";
24 public static SetCurrentDeployment: string = ACCommandNames.CommandPrefix + "setcurrentdeployment";
25 public static CodePushReleaseReact: string = ACCommandNames.CommandPrefix + "releasereact";
26 public static ShowMenu: string = ACCommandNames.CommandPrefix + "showmenu";
27 public static SwitchMandatoryPropertyForRelease: string = ACCommandNames.CommandPrefix + "switchMandatoryPropForRelease";
28 public static SetTargetBinaryVersionForRelease: string = ACCommandNames.CommandPrefix + "setTargetBinaryVersion";
29}
30
31export interface Deployment {
32 name: string;
33}
34
35export interface CurrentAppDeployments {
36 currentDeploymentName: string;
37 codePushDeployments: Deployment[];
38}
39
40export enum AppCenterOS {
41 ios = "ios",
42 android = "android",
43}
44
45export enum AppCenterLoginType {
46 Interactive,
47 Token,
48}
49
50export enum AppCenterCommandType {
51 // Auth commands
52 Login = 1,
53 Logout,
54 Whoami,
55
56 // App commands
57 SetCurrentApp,
58 GetCurrentApp,
59
60 // Deployment commands
61 SetCurrentDeployment,
62
63 // CodePush commands
64 CodePushReleaseReact,
65 SwitchMandatoryPropForRelease,
66 SetTargetBinaryVersionForRelease,
67
68 // Common commands
69 ShowMenu,
70}
71
72export enum MessageTypes {
73 Error = 0,
74 Warn = 1,
75 Info = 2,
76}