2022-09-10 21:58:45 +08:00
|
|
|
plugins {
|
|
|
|
id("com.android.library")
|
|
|
|
kotlin("android")
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "eu.kanade.tachiyomi.i18n"
|
2022-10-05 21:26:42 +08:00
|
|
|
|
|
|
|
lint {
|
|
|
|
disable.addAll(listOf("MissingTranslation", "ExtraTranslation"))
|
|
|
|
}
|
2022-09-10 21:58:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
val localesConfigTask = registerLocalesConfigTask(project)
|
|
|
|
|
|
|
|
// Duplicating Hebrew string assets due to some locale code issues on different devices
|
|
|
|
val copyHebrewStrings by registering(Copy::class) {
|
|
|
|
from("./src/main/res/values-he")
|
|
|
|
into("./src/main/res/values-iw")
|
|
|
|
include("**/*")
|
|
|
|
}
|
|
|
|
|
|
|
|
preBuild {
|
|
|
|
dependsOn(copyHebrewStrings, localesConfigTask)
|
|
|
|
}
|
|
|
|
}
|