From c660e0561c2979f9de037d3405177f1a0aed640c Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Mon, 23 Sep 2019 18:07:34 +0200 Subject: [PATCH] fix(cli): skip incompatible enterprise plugins --- cli/src/cordova.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cli/src/cordova.ts b/cli/src/cordova.ts index 04fb62c98e..60b9c3bf72 100644 --- a/cli/src/cordova.ts +++ b/cli/src/cordova.ts @@ -327,12 +327,15 @@ export async function checkAndInstallDependencies(config: Config, plugins: Plugi } export function getIncompatibleCordovaPlugins(platform: string) { - let pluginList = ["cordova-plugin-statusbar", "cordova-plugin-splashscreen", "cordova-plugin-ionic-webview", - "cordova-plugin-crosswalk-webview", "cordova-plugin-wkwebview-engine", "cordova-plugin-console", - "cordova-plugin-compat", "cordova-plugin-music-controls", "cordova-plugin-add-swift-support", - "cordova-plugin-ionic-keyboard", "cordova-plugin-braintree"]; + let pluginList = ["cordova-plugin-splashscreen", "cordova-plugin-ionic-webview", "cordova-plugin-crosswalk-webview", + "cordova-plugin-wkwebview-engine", "cordova-plugin-console", "cordova-plugin-music-controls", + "cordova-plugin-add-swift-support", "cordova-plugin-ionic-keyboard", "cordova-plugin-braintree", + "@ionic-enterprise/filesystem", "@ionic-enterprise/keyboard", "@ionic-enterprise/splashscreen"]; if (platform === "ios") { - pluginList.push("cordova-plugin-googlemaps"); + pluginList.push("cordova-plugin-googlemaps", "cordova-plugin-statusbar", "@ionic-enterprise/statusbar"); + } + if (platform === "android") { + pluginList.push("cordova-plugin-compat"); } return pluginList; }