(config: Config)
| 450 | } |
| 451 | |
| 452 | export async function getAddedPlatforms(config: Config): Promise<string[]> { |
| 453 | const platforms: string[] = []; |
| 454 | |
| 455 | if (await getProjectPlatformDirectory(config, config.android.name)) { |
| 456 | platforms.push(config.android.name); |
| 457 | } |
| 458 | |
| 459 | if (await getProjectPlatformDirectory(config, config.ios.name)) { |
| 460 | platforms.push(config.ios.name); |
| 461 | } |
| 462 | |
| 463 | platforms.push(config.web.name); |
| 464 | |
| 465 | return platforms; |
| 466 | } |
| 467 | |
| 468 | export async function checkPlatformVersions(config: Config, platform: string): Promise<void> { |
| 469 | const semver = await import('semver'); |
no test coverage detected