From cbee8580d0b315531af8bfdb3dd06a700cb6be8b Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Thu, 19 Oct 2017 13:31:16 -0700 Subject: [PATCH] CB-13470: Fix Clean so that it cleans the Android Studio structure --- bin/templates/cordova/Api.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/templates/cordova/Api.js b/bin/templates/cordova/Api.js index 0315dcae..be7a615a 100644 --- a/bin/templates/cordova/Api.js +++ b/bin/templates/cordova/Api.js @@ -381,6 +381,14 @@ Api.prototype.run = function (runOptions) { */ Api.prototype.clean = function (cleanOptions) { var self = this; + if (this.android_studio) { + // This will lint, checking for null won't + if (typeof cleanOptions === 'undefined') { + cleanOptions = {}; + } + cleanOptions.studio = true; + } + return require('./lib/check_reqs').run().then(function () { return require('./lib/build').runClean.call(self, cleanOptions); }).then(function () {