From b7da5b988ce7da5ea3991eaec46b9e52ff3635f1 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Tue, 2 May 2023 18:31:38 +0200 Subject: [PATCH] fix(cli): Migrate more plugin variables (#6552) --- cli/src/tasks/migrate.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/cli/src/tasks/migrate.ts b/cli/src/tasks/migrate.ts index 8cd31498b8..6f06b64933 100644 --- a/cli/src/tasks/migrate.ts +++ b/cli/src/tasks/migrate.ts @@ -286,6 +286,11 @@ export async function migrateCommand( androidxMaterialVersion: '1.8.0', androidxExifInterfaceVersion: '1.3.6', androidxCoreKTXVersion: '1.10.0', + googleMapsPlayServicesVersion: '18.1.0', + googleMapsUtilsVersion: '3.4.0', + googleMapsKtxVersion: '3.4.0', + googleMapsUtilsKtxVersion: '3.4.0', + kotlinxCoroutinesVersion: '1.6.4', }; for (const variable of Object.keys(pluginVariables)) { await updateFile( @@ -398,16 +403,22 @@ async function installLatestLibs( } async function writeBreakingChanges() { - const breaking = ['@capacitor/device']; + const breaking = [ + '@capacitor/camera', + '@capacitor/device', + '@capacitor/local-notifications', + '@capacitor/push-notifications', + ]; const broken = []; for (const lib of breaking) { if (allDependencies[lib]) { broken.push(lib); } } + // TODO - remove "next" from the url once capacitor 5 is final if (broken.length > 0) { logger.info( - `IMPORTANT: Review https://capacitorjs.com/docs/updating/5-0#plugins for breaking changes in these plugins that you use: ${broken.join( + `IMPORTANT: Review https://capacitorjs.com/docs/next/updating/5-0#plugins for breaking changes in these plugins that you use: ${broken.join( ', ', )}.`, );