From cdb42dcf2cd6a9d6581066bebab919f2beccb4cd Mon Sep 17 00:00:00 2001 From: Renan Castro Date: Mon, 3 May 2021 18:13:29 -0300 Subject: [PATCH] Fix #11005 by first installing plugins, and then adding the cordova platform android/ios, it will avoid errors due to plugins options declared in the config.xml. --- tools/cordova/project.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cordova/project.js b/tools/cordova/project.js index 8ff4890818..8b99bf3e2f 100644 --- a/tools/cordova/project.js +++ b/tools/cordova/project.js @@ -266,9 +266,9 @@ outdated platforms`); builder.writeConfigXmlAndCopyResources(); builder.copyWWW(bundlePath); - this.ensurePlatformsAreSynchronized(); this.ensurePluginsAreSynchronized(pluginVersions, - builder.pluginsConfiguration); + builder.pluginsConfiguration); + this.ensurePlatformsAreSynchronized(); // Temporary workaround for Cordova iOS bug until // https://issues.apache.org/jira/browse/CB-10885 is fixed