(config: Config, platformName: string)
| 111 | } |
| 112 | |
| 113 | async function getAddChecks(config: Config, platformName: string): Promise<CheckFunction[]> { |
| 114 | if (platformName === config.ios.name) { |
| 115 | return [() => checkIOSPackage(config), ...(await getCommonChecks(config))]; |
| 116 | } else if (platformName === config.android.name) { |
| 117 | return [() => checkAndroidPackage(config)]; |
| 118 | } else if (platformName === config.web.name) { |
| 119 | return []; |
| 120 | } else { |
| 121 | throw `Platform ${platformName} is not valid.`; |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | async function doAdd(config: Config, platformName: string): Promise<void> { |
| 126 | await runTask(c.success(c.strong('add')), async () => { |
no test coverage detected