Async api
Breaking changes:
All public methods are async and return promises.
- old API:
installApplication(deviceId: string, applicationPath: string): void;
uninstallApplication(deviceId: string, appIdentifier: string): void;
startApplication(deviceId: string, appIdentifier: string, options: IOptions): string;
stopApplication(deviceId: string, appIdentifier: string, bundleExecutable: string): string;
run(applicationPath: string, applicationIdentifier: string, options: IOptions): string;
getDeviceLogProcess(deviceId: string): any;
startSimulator(options: IOptions, device?: IDevice): void;
getDevices(): IDevice[];
sendNotification(notification: string, deviceId: string): void;
- new API:
installApplication(deviceId: string, applicationPath: string): Promise<void>;
uninstallApplication(deviceId: string, appIdentifier: string): Promise<void>;
startApplication(deviceId: string, appIdentifier: string, options: IOptions): Promise<string>;
stopApplication(deviceId: string, appIdentifier: string, bundleExecutable: string): Promise<string>;
run(applicationPath: string, applicationIdentifier: string, options: IOptions): Promise<string>;
getDeviceLogProcess(deviceId: string): Promise<any>;
startSimulator(options: IOptions, device?: IDevice): Promise<void>;
getDevices(): Promise<IDevice[]>;
sendNotification(notification: string, deviceId: string): Promise<void>;