(config: Config, platforms: string[])
| 46 | } |
| 47 | |
| 48 | export async function addUpdateChecks(config: Config, platforms: string[]): Promise<CheckFunction[]> { |
| 49 | let checks: CheckFunction[] = []; |
| 50 | for (const platformName of platforms) { |
| 51 | if (platformName === config.ios.name) { |
| 52 | checks = await getCommonChecks(config); |
| 53 | } else if (platformName === config.android.name) { |
| 54 | continue; |
| 55 | } else if (platformName === config.web.name) { |
| 56 | continue; |
| 57 | } else { |
| 58 | throw `Platform ${platformName} is not valid.`; |
| 59 | } |
| 60 | } |
| 61 | return checks; |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * @deprecated use addUpdateChecks |
no test coverage detected