UNPKG

3.75 kBTypeScriptView Raw
1import { ensureSimulatorAppRunningAsync } from './apple/utils/ensureSimulatorAppRunningAsync';
2import { SimControl } from './internal';
3export declare function isPlatformSupported(): boolean;
4/**
5 * Ensure Xcode is installed an recent enough to be used with Expo.
6 *
7 * @return true when Xcode is installed, false when the process should end.
8 */
9export declare function ensureXcodeInstalledAsync(): Promise<boolean>;
10export declare function ensureXcodeCommandLineToolsInstalledAsync(): Promise<boolean>;
11export declare function isSimulatorInstalledAsync(): Promise<boolean>;
12/**
13 * Ensure a simulator is booted and the Simulator app is opened.
14 * This is where any timeout related error handling should live.
15 */
16export declare function ensureSimulatorOpenAsync({ udid, osType }?: {
17 udid?: string;
18 osType?: string;
19}, tryAgain?: boolean): Promise<SimControl.SimulatorDevice>;
20export declare function isSimulatorBootedAsync({ udid, }?: {
21 udid?: string;
22}): Promise<SimControl.SimulatorDevice | null>;
23export declare function activateSimulatorWindowAsync(): Promise<string>;
24export declare function closeSimulatorAppAsync(): Promise<string>;
25export declare function isExpoClientInstalledOnSimulatorAsync({ udid, }: {
26 udid: string;
27}): Promise<boolean>;
28export declare function waitForExpoClientInstalledOnSimulatorAsync({ udid, }: {
29 udid: string;
30}): Promise<boolean>;
31export declare function waitForExpoClientUninstalledOnSimulatorAsync({ udid, }: {
32 udid: string;
33}): Promise<boolean>;
34export declare function expoVersionOnSimulatorAsync({ udid, }: {
35 udid: string;
36}): Promise<string | null>;
37export declare function doesExpoClientNeedUpdatedAsync(simulator: Pick<SimControl.SimulatorDevice, 'udid'>, sdkVersion?: string): Promise<boolean>;
38export declare function _downloadSimulatorAppAsync(url?: string, downloadProgressCallback?: (roundedProgress: number) => void): Promise<string>;
39export declare function installExpoOnSimulatorAsync({ url, simulator, version, }: {
40 simulator: Pick<SimControl.SimulatorDevice, 'name' | 'udid'>;
41 url?: string;
42 version?: string;
43}): Promise<any>;
44export declare function uninstallExpoAppFromSimulatorAsync({ udid }?: {
45 udid?: string;
46}): Promise<void>;
47export declare function upgradeExpoAsync(options?: {
48 udid?: string;
49 url?: string;
50 version?: string;
51}): Promise<boolean>;
52export declare function resolveApplicationIdAsync(projectRoot: string): Promise<any>;
53export declare function openProjectAsync({ projectRoot, shouldPrompt, devClient, udid, scheme, skipNativeLogs, applicationId, }: {
54 projectRoot: string;
55 shouldPrompt?: boolean;
56 devClient?: boolean;
57 scheme?: string;
58 udid?: string;
59 skipNativeLogs?: boolean;
60 applicationId?: string;
61}): Promise<{
62 success: true;
63 url: string;
64 udid: string;
65 bundleIdentifier: string;
66} | {
67 success: false;
68 error: string;
69}>;
70export declare function streamLogsAsync({ bundleIdentifier, udid, }: {
71 bundleIdentifier: string;
72 udid: string;
73}): Promise<void>;
74export declare function openWebProjectAsync({ projectRoot, shouldPrompt, }: {
75 shouldPrompt: boolean;
76 projectRoot: string;
77}): Promise<{
78 success: true;
79 url: string;
80} | {
81 success: false;
82 error: string;
83}>;
84/**
85 * Sort the devices so the last simulator that was opened (user's default) is the first suggested.
86 *
87 * @param devices
88 */
89export declare function sortDefaultDeviceToBeginningAsync(devices: SimControl.SimulatorDevice[], osType?: string): Promise<SimControl.SimulatorDevice[]>;
90export declare function promptForSimulatorAsync(devices: SimControl.SimulatorDevice[], osType?: string): Promise<SimControl.SimulatorDevice | null>;
91export { ensureSimulatorAppRunningAsync };