(config: Config)
| 28 | } |
| 29 | |
| 30 | export async function getCommonChecks(config: Config): Promise<CheckFunction[]> { |
| 31 | const checks: CheckFunction[] = []; |
| 32 | if ((await config.ios.packageManager) === 'bundler') { |
| 33 | checks.push(() => checkBundler(config)); |
| 34 | } else if ((await config.ios.packageManager) === 'Cocoapods') { |
| 35 | checks.push(() => checkCocoaPods(config)); |
| 36 | } else if ((await config.ios.packageManager) === 'SPM') { |
| 37 | const swiftToolsVersion = config.app.extConfig.experimental?.ios?.spm?.swiftToolsVersion; |
| 38 | if (swiftToolsVersion) { |
| 39 | checks.push(() => checkSwiftToolsVersion(config, swiftToolsVersion)); |
| 40 | } |
| 41 | checks.push(() => checkPackageTraitsRequirements(config)); |
| 42 | } |
| 43 | return checks; |
| 44 | } |
| 45 | |
| 46 | export async function checkBundler(config: Config): Promise<string | null> { |
| 47 | if (config.cli.os === OS.Mac) { |
no test coverage detected