Extract launchSimulator to IOSBridge
Summary: This is related to `simctl` functionality, so can be extracted there. This will aid in future changes whereby we can hide `getDeviceSetPath` in the IOSBridge module Reviewed By: passy Differential Revision: D33842987 fbshipit-source-id: de292ce5afba3e7d79d8ba27c2b8852909d7e6f3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8316a00ef7
commit
959a2a77d7
@@ -11,10 +11,7 @@ import EventEmitter from 'events';
|
||||
import ServerController from './comms/ServerController';
|
||||
import {CertificateExchangeMedium} from './utils/CertificateProvider';
|
||||
import {AndroidDeviceManager} from './devices/android/androidDeviceManager';
|
||||
import {
|
||||
IOSDeviceManager,
|
||||
launchSimulator,
|
||||
} from './devices/ios/iOSDeviceManager';
|
||||
import {IOSDeviceManager} from './devices/ios/iOSDeviceManager';
|
||||
import metroDevice from './devices/metro/metroDeviceManager';
|
||||
import desktopDevice from './devices/desktop/desktopDeviceManager';
|
||||
import {
|
||||
@@ -356,7 +353,8 @@ export class FlipperServerImpl implements FlipperServer {
|
||||
launchEmulator(this.config.settings.androidHome, name, coldBoot),
|
||||
'ios-get-simulators': async (bootedOnly) =>
|
||||
this.ios.getSimulators(bootedOnly),
|
||||
'ios-launch-simulator': async (udid) => launchSimulator(udid),
|
||||
'ios-launch-simulator': async (udid) =>
|
||||
this.ios.simctlBridge.launchSimulator(udid),
|
||||
'persist-settings': async (settings) => saveSettings(settings),
|
||||
'persist-launcher-settings': async (settings) =>
|
||||
saveLauncherSettings(settings),
|
||||
|
||||
Reference in New Issue
Block a user