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

Function update

cli/src/tasks/update.ts:86–98  ·  view source on GitHub ↗
(config: Config, platformName: string, deployment: boolean)

Source from the content-addressed store, hash-verified

84}
85
86export async function update(config: Config, platformName: string, deployment: boolean): Promise<void> {
87 await runTask(c.success(c.strong(`update ${platformName}`)), async () => {
88 await runHooks(config, platformName, config.app.rootDir, 'capacitor:update:before');
89
90 if (platformName === config.ios.name) {
91 await updateIOS(config, deployment);
92 } else if (platformName === config.android.name) {
93 await updateAndroid(config);
94 }
95
96 await runHooks(config, platformName, config.app.rootDir, 'capacitor:update:after');
97 });
98}

Callers 3

migrateToSPMFunction · 0.90
syncFunction · 0.90
updateCommandFunction · 0.85

Calls 4

runTaskFunction · 0.90
runHooksFunction · 0.90
updateIOSFunction · 0.90
updateAndroidFunction · 0.90

Tested by

no test coverage detected