mihon/i18n/build.gradle.kts

46 lines
901 B
Plaintext
Raw Normal View History

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 {
2023-01-22 16:37:13 +01:00
namespace = "tachiyomi.i18n"
2022-10-05 15:26:42 +02:00
sourceSets {
named("main") {
res.srcDir("src/commonMain/resources")
}
}
2022-10-05 15:26:42 +02:00
lint {
disable.addAll(listOf("MissingTranslation", "ExtraTranslation"))
}
}
multiplatformResources {
multiplatformResourcesPackage = "tachiyomi.i18n"
}
tasks {
val localesConfigTask = registerLocalesConfigTask(project)
preBuild {
dependsOn(localesConfigTask)
}
}