Fix stub clean task

This commit is contained in:
vvb2060 2022-01-09 02:22:34 +08:00 committed by John Wu
parent 558710bbdd
commit 42804d5314

View File

@ -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<Delete>("clean") {
delete.addAll(listOf("src/debug/AndroidManifest.xml", "src/release/AndroidManifest.xml"))
}
}