mirror of
https://github.com/fcitx5-android/fcitx5-android.git
synced 2026-08-02 04:44:35 +08:00
fixup clipboard-filter assets
This commit is contained in:
parent
0fc835a4c7
commit
fb9b3597e6
@ -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"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user