UNPKG

1.53 kBTypeScriptView Raw
1import { CommandLineOptions, IConfig, ILogger, IShell, IShellRunOptions } from '../definitions';
2export declare const SUPPORTED_PLATFORMS: readonly string[];
3export interface NativeRunSchema {
4 packagePath: string;
5 platform: string;
6 forwardedPorts?: (string | number)[];
7}
8export declare function createNativeRunArgs({ packagePath, platform, forwardedPorts }: NativeRunSchema, options: CommandLineOptions): string[];
9export declare function createNativeRunListArgs(inputs: string[], options: CommandLineOptions): string[];
10export interface RunNativeRunDeps {
11 readonly config: IConfig;
12 readonly log: ILogger;
13 readonly shell: IShell;
14}
15export declare function runNativeRun({ config, log, shell }: RunNativeRunDeps, args: readonly string[], options?: IShellRunOptions): Promise<void>;
16export interface CheckNativeRunDeps {
17 readonly config: IConfig;
18}
19export declare function checkNativeRun({ config }: CheckNativeRunDeps): Promise<void>;
20export declare function findNativeRun(): Promise<string | undefined>;
21export interface NativeDeviceTarget {
22 platform: string;
23 id: string;
24 model: string;
25 sdkVersion: string;
26}
27export interface NativeVirtualDeviceTarget {
28 platform: string;
29 id: string;
30 name: string;
31 sdkVersion: string;
32}
33export interface NativeTargetPlatform {
34 devices: NativeDeviceTarget[];
35 virtualDevices: NativeVirtualDeviceTarget[];
36}
37export declare function getNativeTargets({ log, shell }: RunNativeRunDeps, platform: string): Promise<NativeTargetPlatform>;