(config: Config, platformName: string, deployment: boolean, inline = false)
| 43 | } |
| 44 | |
| 45 | export async function sync(config: Config, platformName: string, deployment: boolean, inline = false): Promise<void> { |
| 46 | await runHooks(config, platformName, config.app.rootDir, 'capacitor:sync:before'); |
| 47 | |
| 48 | try { |
| 49 | await copy(config, platformName, inline); |
| 50 | } catch (e: any) { |
| 51 | logger.error(e.stack ?? e); |
| 52 | } |
| 53 | await update(config, platformName, deployment); |
| 54 | |
| 55 | await runHooks(config, platformName, config.app.rootDir, 'capacitor:sync:after'); |
| 56 | } |
no test coverage detected