(config: Config, platformName: string, options: RunCommandOptions)
| 129 | } |
| 130 | |
| 131 | export async function run(config: Config, platformName: string, options: RunCommandOptions): Promise<void> { |
| 132 | if (platformName == config.ios.name) { |
| 133 | await runIOS(config, options); |
| 134 | } else if (platformName === config.android.name) { |
| 135 | await runAndroid(config, options); |
| 136 | } else if (platformName === config.web.name) { |
| 137 | return; |
| 138 | } else { |
| 139 | throw `Platform ${platformName} is not valid.`; |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | function createRunnablePlatformFilter(config: Config): (platform: string) => boolean { |
| 144 | return (platform) => platform === config.ios.name || platform === config.android.name; |
no test coverage detected