mirror of
https://github.com/fcitx5-android/fcitx5-android.git
synced 2026-08-02 20:16:06 +08:00
set aboutLibraries configPath in AndroidAppConventionPlugin
This commit is contained in:
parent
b439c9cd5b
commit
8796964ba1
@ -67,10 +67,6 @@ kotlin {
|
||||
}
|
||||
}
|
||||
|
||||
aboutLibraries {
|
||||
configPath = "app/licenses"
|
||||
}
|
||||
|
||||
fcitxComponent {
|
||||
includeLibs = listOf(
|
||||
"fcitx5",
|
||||
|
||||
@ -141,6 +141,7 @@ class AndroidAppConventionPlugin : AndroidBaseConventionPlugin() {
|
||||
target.pluginManager.apply(target.libs.plugins.aboutlibraries.get().pluginId)
|
||||
|
||||
target.configure<AboutLibrariesExtension> {
|
||||
configPath = target.rootProject.relativePath(target.file("licenses"))
|
||||
excludeFields = arrayOf(
|
||||
"generated", "developers", "organization", "scm", "funding", "content"
|
||||
)
|
||||
|
||||
@ -7,10 +7,6 @@ plugins {
|
||||
id("org.fcitx.fcitx5.android.fcitx-component")
|
||||
}
|
||||
|
||||
fcitxComponent {
|
||||
installPrebuiltAssets = true
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.fcitx.fcitx5.android.plugin.anthy"
|
||||
|
||||
@ -46,8 +42,8 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
aboutLibraries {
|
||||
configPath = "plugin/anthy/licenses"
|
||||
fcitxComponent {
|
||||
installPrebuiltAssets = true
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@ -7,10 +7,6 @@ plugins {
|
||||
id("org.fcitx.fcitx5.android.fcitx-component")
|
||||
}
|
||||
|
||||
fcitxComponent {
|
||||
installPrebuiltAssets = true
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.fcitx.fcitx5.android.plugin.chewing"
|
||||
|
||||
@ -46,8 +42,8 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
aboutLibraries {
|
||||
configPath = "plugin/chewing/licenses"
|
||||
fcitxComponent {
|
||||
installPrebuiltAssets = true
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import com.android.build.gradle.tasks.MergeSourceSetFolders
|
||||
import kotlinx.serialization.json.Json
|
||||
|
||||
plugins {
|
||||
id("org.fcitx.fcitx5.android.app-convention")
|
||||
@ -30,16 +31,14 @@ tasks.withType<MergeSourceSetFolders>().all {
|
||||
// mergeDebugAssets or mergeReleaseAssets
|
||||
if (name.endsWith("Assets")) {
|
||||
doLast {
|
||||
val outDir = outputDir.asFile.get()
|
||||
file("ClearURLsRules/data.min.json").copyTo(outDir.resolve("data.min.json"))
|
||||
val inFile = file("ClearURLsRules/data.min.json")
|
||||
val outFile = outputDir.asFile.get().resolve("data.min.json")
|
||||
// minify json
|
||||
outFile.writeText(Json.parseToJsonElement(inFile.readText()).toString())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
aboutLibraries {
|
||||
configPath = "plugin/clipboard-filter/licenses"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":lib:plugin-base"))
|
||||
implementation(libs.kotlinx.serialization.json)
|
||||
|
||||
@ -7,10 +7,6 @@ plugins {
|
||||
id("org.fcitx.fcitx5.android.fcitx-component")
|
||||
}
|
||||
|
||||
fcitxComponent {
|
||||
installPrebuiltAssets = true
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.fcitx.fcitx5.android.plugin.hangul"
|
||||
|
||||
@ -46,8 +42,8 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
aboutLibraries {
|
||||
configPath = "plugin/hangul/licenses"
|
||||
fcitxComponent {
|
||||
installPrebuiltAssets = true
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@ -7,10 +7,6 @@ plugins {
|
||||
id("org.fcitx.fcitx5.android.fcitx-component")
|
||||
}
|
||||
|
||||
fcitxComponent {
|
||||
installPrebuiltAssets = true
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.fcitx.fcitx5.android.plugin.jyutping"
|
||||
|
||||
@ -60,10 +56,7 @@ fcitxComponent {
|
||||
)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
aboutLibraries {
|
||||
configPath = "plugin/jyutping/licenses"
|
||||
installPrebuiltAssets = true
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@ -7,10 +7,6 @@ plugins {
|
||||
id("org.fcitx.fcitx5.android.fcitx-component")
|
||||
}
|
||||
|
||||
fcitxComponent {
|
||||
installPrebuiltAssets = true
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.fcitx.fcitx5.android.plugin.rime"
|
||||
|
||||
@ -46,12 +42,12 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
generateDataDescriptor {
|
||||
symlinks.put("usr/share/rime-data/opencc", "usr/share/opencc")
|
||||
fcitxComponent {
|
||||
installPrebuiltAssets = true
|
||||
}
|
||||
|
||||
aboutLibraries {
|
||||
configPath = "plugin/rime/licenses"
|
||||
generateDataDescriptor {
|
||||
symlinks.put("usr/share/rime-data/opencc", "usr/share/opencc")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@ -42,10 +42,6 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
aboutLibraries {
|
||||
configPath = "plugin/sayura/licenses"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":lib:fcitx5"))
|
||||
implementation(project(":lib:plugin-base"))
|
||||
|
||||
@ -42,10 +42,6 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
aboutLibraries {
|
||||
configPath = "plugin/thai/licenses"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":lib:fcitx5"))
|
||||
implementation(project(":lib:plugin-base"))
|
||||
|
||||
@ -42,10 +42,6 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
aboutLibraries {
|
||||
configPath = "plugin/unikey/licenses"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":lib:fcitx5"))
|
||||
implementation(project(":lib:plugin-base"))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user