mihon/i18n/build.gradle.kts

54 lines
1005 B
Plaintext
Raw Normal View History

import mihon.buildlogic.tasks.getLocalesConfigTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("mihon.library")
id("dev.icerock.mobile.multiplatform-resources")
kotlin("multiplatform")
}
kotlin {
androidTarget()
applyDefaultHierarchyTemplate()
sourceSets {
commonMain {
dependencies {
api(libs.moko.core)
}
}
}
}
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 {
resourcesPackage.set("tachiyomi.i18n")
}
tasks {
val localesConfigTask = project.getLocalesConfigTask()
preBuild {
dependsOn(localesConfigTask)
}
withType<KotlinCompile> {
compilerOptions.freeCompilerArgs.addAll(
"-Xexpect-actual-classes",
)
}
}