2024-06-10 11:27:20 +02:00
|
|
|
plugins {
|
|
|
|
|
id("mihon.library")
|
|
|
|
|
kotlin("multiplatform")
|
2024-09-03 10:09:12 +02:00
|
|
|
alias(libs.plugins.moko)
|
2024-06-10 11:27:20 +02:00
|
|
|
id("com.github.ben-manes.versions")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
|
androidTarget()
|
|
|
|
|
|
|
|
|
|
applyDefaultHierarchyTemplate()
|
|
|
|
|
|
|
|
|
|
sourceSets {
|
2024-07-07 02:40:54 +02:00
|
|
|
commonMain {
|
2024-06-10 11:27:20 +02:00
|
|
|
dependencies {
|
|
|
|
|
api(libs.moko.core)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
namespace = "tachiyomi.i18n.kmk"
|
|
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
|
named("main") {
|
|
|
|
|
res.srcDir("src/commonMain/resources")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
lint {
|
|
|
|
|
disable.addAll(listOf("MissingTranslation", "ExtraTranslation"))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
multiplatformResources {
|
2024-07-07 02:40:54 +02:00
|
|
|
resourcesClassName.set("KMR")
|
|
|
|
|
resourcesPackage.set("tachiyomi.i18n.kmk")
|
2024-06-10 11:27:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
2024-06-06 23:48:35 +02:00
|
|
|
compilerOptions.freeCompilerArgs.addAll(
|
2024-06-10 11:27:20 +02:00
|
|
|
"-Xexpect-actual-classes",
|
|
|
|
|
)
|
|
|
|
|
}
|