mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
CB-13470: Fix Clean so that it cleans the Android Studio structure
This commit is contained in:
parent
6ccd6b009b
commit
cbee8580d0
8
bin/templates/cordova/Api.js
vendored
8
bin/templates/cordova/Api.js
vendored
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user