Use Cordova plugin info for checking plugin installation.

Avoid false missing error on git tarballs that were having their ids parsed
like https://github.com/pathable/cordova-plugin-appsettings.git#6ffc8fa844468495d09c2e46f68aad06017cd744

It's easier if the ID is just the plugin name like cordova-plugin-appsettings,
which we can get from config.xml as PluginInfo does.
This commit is contained in:
renanccastro
2019-12-14 18:58:09 -03:00
committed by Ben Newman
parent 2fb6b09c13
commit b3c1700fdf

View File

@@ -737,7 +737,7 @@ perform cordova plugins reinstall`);
// cordova-plugin-whitelist@1.3.2 => { 'cordova-plugin-whitelist': '1.3.2' }
// com.cordova.plugin@file://.cordova-plugins/plugin => { 'com.cordova.plugin': 'file://.cordova-plugins/plugin' }
// @scope/plugin@1.0.0 => { 'com.cordova.plugin': 'scope/plugin' }
const installed = this.listInstalledPluginVersions();
const installed = this.listInstalledPluginVersions(true);
const installedPluginsNames = Object.keys(installed);
const installedPluginsVersions = Object.values(installed);
const missingPlugins = {};