microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.14.2

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/extension/launchArgs.ts

50lines · 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
4import {RNPackageVersions} from "../common/projectVersionHelper";
5
6/**
7 * Defines the supported launch arguments.
8 * Add more arguments here as needed.
9 */
10export interface ILaunchArgs {
11 platform: string;
12 workspaceRoot: string;
13 projectRoot: string;
14 reactNativeVersions: RNPackageVersions;
15 target?: "simulator" | "device";
16 debugAdapterPort?: number;
17 packagerPort?: any;
18 runArguments?: string[];
19 env?: any;
20 envFile?: string;
21 isDirect?: boolean;
22}
23
24/**
25 * Defines the options needed to start debugging a project.
26 */
27
28export interface IAndroidRunOptions extends ILaunchArgs {
29 variant?: string;
30 logCatArguments?: any;
31 debugLaunchActivity?: string;
32}
33
34export interface IIOSRunOptions extends ILaunchArgs {
35 scheme?: string;
36 iosRelativeProjectPath?: string; // TODO Remove deprecated
37 productName?: string;
38 configuration?: string;
39}
40
41export interface IExponentRunOptions extends IAndroidRunOptions, IIOSRunOptions {
42 expoHostType?: "tunnel" | "lan" | "local";
43}
44
45export interface IWindowsRunOptions extends ILaunchArgs {
46}
47
48export interface IRunOptions extends IAndroidRunOptions, IIOSRunOptions, IExponentRunOptions, IWindowsRunOptions {
49
50}
51