microsoft/vscode-react-native
Publicmirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable
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 | |
| 4 | import {RNPackageVersions} from "../common/projectVersionHelper"; |
| 5 | |
| 6 | /** |
| 7 | * Defines the supported launch arguments. |
| 8 | * Add more arguments here as needed. |
| 9 | */ |
| 10 | export 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 | |
| 28 | export interface IAndroidRunOptions extends ILaunchArgs { |
| 29 | variant?: string; |
| 30 | logCatArguments?: any; |
| 31 | debugLaunchActivity?: string; |
| 32 | } |
| 33 | |
| 34 | export interface IIOSRunOptions extends ILaunchArgs { |
| 35 | scheme?: string; |
| 36 | iosRelativeProjectPath?: string; // TODO Remove deprecated |
| 37 | productName?: string; |
| 38 | configuration?: string; |
| 39 | } |
| 40 | |
| 41 | export interface IExponentRunOptions extends IAndroidRunOptions, IIOSRunOptions { |
| 42 | expoHostType?: "tunnel" | "lan" | "local"; |
| 43 | } |
| 44 | |
| 45 | export interface IWindowsRunOptions extends ILaunchArgs { |
| 46 | } |
| 47 | |
| 48 | export interface IRunOptions extends IAndroidRunOptions, IIOSRunOptions, IExponentRunOptions, IWindowsRunOptions { |
| 49 | |
| 50 | } |
| 51 | |