Commit 277f7dff authored by qq_38816927's avatar qq_38816927

清除任务

parent e3a9bd7c
import java.io.File
import android.databinding.tool.ext.capitalizeUS import android.databinding.tool.ext.capitalizeUS
import org.gradle.api.file.DuplicatesStrategy import org.gradle.api.file.DuplicatesStrategy
...@@ -185,12 +186,14 @@ configurations.all { ...@@ -185,12 +186,14 @@ configurations.all {
/** 仅清理 harmonyApp 下 entry 的中间目录,与 publish 无关时可单独执行:`:composeApp:cleanHarmonyAppEntryBuildsAndNativeLibs` */ /** 仅清理 harmonyApp 下 entry 的中间目录,与 publish 无关时可单独执行:`:composeApp:cleanHarmonyAppEntryBuildsAndNativeLibs` */
tasks.register("cleanHarmonyAppEntryBuildsAndNativeLibs") { tasks.register("cleanHarmonyAppEntryBuildsAndNativeLibs") {
group = "harmony" group = "harmony"
val repoRoot = layout.rootDirectory
doLast { doLast {
val root = repoRoot.get().asFile
listOf( listOf(
rootProject.file("harmonyApp/entry/build"), File(root, "harmonyApp/entry/build"),
rootProject.file("harmonyApp/entry/libs/arm64-v8a"), File(root, "harmonyApp/entry/libs/arm64-v8a"),
rootProject.file("harmonyApp/entry/libs/x86_64"), File(root, "harmonyApp/entry/libs/x86_64"),
rootProject.file("harmonyApp/entry/src/main/cpp/include"), File(root, "harmonyApp/entry/src/main/cpp/include"),
).forEach { f -> ).forEach { f ->
if (f.exists()) { if (f.exists()) {
f.deleteRecursively() f.deleteRecursively()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment