Ported: Update the clean task configuration

Running `gradlew clean` will now properly delete the generated build artifacts
- m4gr3d
71c76a4ff2
This commit is contained in:
Relintai 2022-11-13 00:34:19 +01:00
parent 91624a7561
commit 1875780dbe

View File

@ -267,6 +267,11 @@ task generatePandemoniumTemplates {
finalizedBy 'zipCustomBuild'
}
task clean(type: Delete) {
dependsOn 'cleanPandemoniumEditor'
dependsOn 'cleanPandemoniumTemplates'
}
/**
* Generates the same output as generatePandemoniumTemplates but with dev symbols
*/
@ -296,8 +301,6 @@ task cleanPandemoniumEditor(type: Delete) {
// Delete the Pandemonium editor apks in the Pandemonium bin directory
delete("$binDir/android_editor.apk")
delete("$binDir/android_editor_dev.apk")
finalizedBy getTasksByName("clean", true)
}
/**
@ -324,6 +327,4 @@ task cleanPandemoniumTemplates(type: Delete) {
delete("$binDir/pandemonium-lib.debug.aar")
delete("$binDir/pandemonium-lib.dev.aar")
delete("$binDir/pandemonium-lib.release.aar")
finalizedBy getTasksByName("clean", true)
}