(config: Config, platformName: string, deployment: boolean)
| 84 | } |
| 85 | |
| 86 | export 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 | } |
no test coverage detected