diff --git a/buildSrc/src/main/java/Setup.kt b/buildSrc/src/main/java/Setup.kt index 1d5c62d47..e076ad776 100644 --- a/buildSrc/src/main/java/Setup.kt +++ b/buildSrc/src/main/java/Setup.kt @@ -4,9 +4,11 @@ import org.apache.tools.ant.filters.FixCrLfFilter import org.gradle.api.Action import org.gradle.api.JavaVersion import org.gradle.api.Project +import org.gradle.api.tasks.Delete import org.gradle.api.tasks.StopExecutionException import org.gradle.api.tasks.Sync import org.gradle.kotlin.dsl.filter +import org.gradle.kotlin.dsl.named import java.io.* import java.util.* import java.util.zip.Deflater @@ -239,4 +241,7 @@ fun Project.setupStub() { doLast { apk.copyTo(optRes, true) } } } + tasks.named("clean") { + delete.addAll(listOf("src/debug/AndroidManifest.xml", "src/release/AndroidManifest.xml")) + } }