From 478d48c3e322cffc6f0ff7ce590b635de4b41279 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Wed, 17 Aug 2022 18:07:26 +0200 Subject: [PATCH] fix(cli): make migrator also update plugin variables (#5871) --- cli/src/tasks/migrate.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/cli/src/tasks/migrate.ts b/cli/src/tasks/migrate.ts index ac1085b099..65dedb9c4d 100644 --- a/cli/src/tasks/migrate.ts +++ b/cli/src/tasks/migrate.ts @@ -290,6 +290,23 @@ export async function migrateCommand(config: Config): Promise { } } } + const pluginVariables: { [key: string]: string } = { + firebaseMessagingVersion: '23.0.5', + playServicesLocationVersion: '20.0.0', + androidxBrowserVersion: '1.4.0', + androidxMaterialVersion: '1.6.1', + androidxExifInterfaceVersion: '1.3.3', + }; + for (const variable of Object.keys(pluginVariables)) { + await updateFile( + config, + variablesPath, + `${variable} = '`, + `'`, + pluginVariables[variable], + true, + ); + } })(); });