MCPcopy
hub / github.com/ionic-team/capacitor / addUpdateChecks

Function addUpdateChecks

cli/src/tasks/update.ts:48–62  ·  view source on GitHub ↗
(config: Config, platforms: string[])

Source from the content-addressed store, hash-verified

46}
47
48export 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

Callers 2

syncCommandFunction · 0.90
updateCommandFunction · 0.85

Calls 1

getCommonChecksFunction · 0.90

Tested by

no test coverage detected