mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 08:07:48 +01:00
46e734fc8e
* Migrate to multiplatform string resources * Move plurals translations into separate files * Fix lint check on generated files
45 lines
901 B
Text
45 lines
901 B
Text
plugins {
|
|
kotlin("multiplatform")
|
|
id("com.android.library")
|
|
id("dev.icerock.mobile.multiplatform-resources")
|
|
}
|
|
|
|
kotlin {
|
|
androidTarget()
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
api(libs.moko.core)
|
|
}
|
|
}
|
|
val androidMain by getting {
|
|
dependsOn(commonMain) // https://github.com/icerockdev/moko-resources/issues/562
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace = "tachiyomi.i18n"
|
|
|
|
sourceSets {
|
|
named("main") {
|
|
res.srcDir("src/commonMain/resources")
|
|
}
|
|
}
|
|
|
|
lint {
|
|
disable.addAll(listOf("MissingTranslation", "ExtraTranslation"))
|
|
}
|
|
}
|
|
|
|
multiplatformResources {
|
|
multiplatformResourcesPackage = "tachiyomi.i18n"
|
|
}
|
|
|
|
tasks {
|
|
val localesConfigTask = registerLocalesConfigTask(project)
|
|
|
|
preBuild {
|
|
dependsOn(localesConfigTask)
|
|
}
|
|
}
|