(config: Config, platformName: string)
| 50 | } |
| 51 | |
| 52 | export async function open(config: Config, platformName: string): Promise<void> { |
| 53 | if (platformName === config.ios.name) { |
| 54 | await runTask('Opening the Xcode workspace...', () => { |
| 55 | return openIOS(config); |
| 56 | }); |
| 57 | } else if (platformName === config.android.name) { |
| 58 | return openAndroid(config); |
| 59 | } else if (platformName === config.web.name) { |
| 60 | return Promise.resolve(); |
| 61 | } else { |
| 62 | throw `Platform ${platformName} is not valid.`; |
| 63 | } |
| 64 | } |
no test coverage detected