MCPcopy Index your code
hub / github.com/ionic-team/capacitor / getCommonChecks

Function getCommonChecks

cli/src/ios/common.ts:30–44  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

28}
29
30export 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
46export async function checkBundler(config: Config): Promise<string | null> {
47 if (config.cli.os === OS.Mac) {

Callers 4

doctorIOSFunction · 0.90
addUpdateChecksFunction · 0.90
migrateToSPMFunction · 0.90
getAddChecksFunction · 0.90

Calls 4

checkSwiftToolsVersionFunction · 0.90
checkBundlerFunction · 0.85
checkCocoaPodsFunction · 0.85

Tested by

no test coverage detected