Skip to content

Commit

Permalink
fix(cli): skip incompatible enterprise plugins (#2018)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Oct 1, 2019
1 parent 2fa29e3 commit 5446fc3
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions cli/src/cordova.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5446fc3

Please sign in to comment.