(config: Config, platform: string)
| 71 | } |
| 72 | |
| 73 | export async function checkCapacitorPlatform(config: Config, platform: string): Promise<string | null> { |
| 74 | const pkg = await getCapacitorPackage(config, platform); |
| 75 | |
| 76 | if (!pkg) { |
| 77 | return ( |
| 78 | `Could not find the ${c.input(platform)} platform.\n` + |
| 79 | `You must install it in your project first, e.g. w/ ${c.input(`npm install @capacitor/${platform}`)}` |
| 80 | ); |
| 81 | } |
| 82 | |
| 83 | return null; |
| 84 | } |
| 85 | |
| 86 | export async function checkAppConfig(config: Config): Promise<string | null> { |
| 87 | if (!config.app.appId) { |
no test coverage detected