CB-13470: Fix Clean so that it cleans the Android Studio structure

This commit is contained in:
Joe Bowser 2017-10-19 13:31:16 -07:00
parent 6ccd6b009b
commit cbee8580d0

View File

@ -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 () {