fixup clipboard-filter assets

This commit is contained in:
Rocka 2024-12-18 22:33:05 +08:00
parent 0fc835a4c7
commit fb9b3597e6
No known key found for this signature in database
GPG Key ID: 28031158FFDD6853

View File

@ -29,13 +29,10 @@ android {
tasks.withType<MergeSourceSetFolders>().all {
// mergeDebugAssets or mergeReleaseAssets
if (name.endsWith("Assets")) {
tasks.register<Copy>("${name}Pre") {
with(copySpec {
from("ClearURLsRules")
include("data.min.json")
})
into(this@all.outputs.files.files.first())
}.let { this@all.dependsOn(it) }
val outDir = outputDir.asFile.get()
doLast {
file("ClearURLsRules/data.min.json").copyTo(outDir.resolve("data.min.json"))
}
}
}