Fixing the Android Studio detection and making it automatically pick the right builder, good for upgrading Cordova

This commit is contained in:
Joe Bowser
2017-04-21 16:27:26 -07:00
parent 304a899114
commit e621edfba7
3 changed files with 9 additions and 5 deletions
+2
View File
@@ -343,6 +343,8 @@ Api.prototype.removePlugin = function (plugin, uninstallOptions) {
*/
Api.prototype.build = function (buildOptions) {
var self = this;
if(this.android_studio)
buildOptions.studio = true;
return require('./lib/check_reqs').run()
.then(function () {
return require('./lib/build').run.call(self, buildOptions);