mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2026-01-26 21:44:05 +01:00
57 lines
1.3 KiB
Kotlin
57 lines
1.3 KiB
Kotlin
@Suppress("DSL_SCOPE_VIOLATION")
|
|
plugins {
|
|
id(libs.plugins.kotlin.multiplatform.get().pluginId)
|
|
id(libs.plugins.android.library.get().pluginId)
|
|
id(libs.plugins.moko.gradle.get().pluginId)
|
|
}
|
|
|
|
kotlin {
|
|
android {
|
|
compilations {
|
|
all {
|
|
kotlinOptions.jvmTarget = Config.androidJvmTarget.toString()
|
|
}
|
|
}
|
|
}
|
|
jvm("desktop") {
|
|
compilations {
|
|
all {
|
|
kotlinOptions.jvmTarget = Config.desktopJvmTarget.toString()
|
|
}
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
api(kotlin("stdlib-common"))
|
|
api(libs.moko.core)
|
|
}
|
|
}
|
|
val commonTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test-common"))
|
|
implementation(kotlin("test-annotations-common"))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks {
|
|
registerLocalizationTask(project)
|
|
}
|
|
|
|
multiplatformResources {
|
|
multiplatformResourcesPackage = "ca.gosyer.jui.i18n"
|
|
}
|
|
|
|
android {
|
|
lint {
|
|
disable += "MissingTranslation"
|
|
}
|
|
|
|
sourceSets.getByName("main") {
|
|
assets.srcDir(File(buildDir, "generated/moko/androidMain/assets"))
|
|
res.srcDir(File(buildDir, "generated/moko/androidMain/res"))
|
|
}
|
|
} |