mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
Adds a Kotlin Multiplatform :shared module (androidTarget + jvm("desktop"))
depending on the multiplatform com.vitorpamplona.quartz:quartz coordinate
(which resolves quartz-android for Android and quartz-jvm for desktop via
Gradle variant-aware resolution), plus a new :desktop module scaffolded
with Compose Multiplatform Desktop and packaging config for
deb/msi/dmg installers. The :app module is untouched and still builds.
38 lines
906 B
Kotlin
38 lines
906 B
Kotlin
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
plugins {
|
|
alias(libs.plugins.kotlinMultiplatform)
|
|
alias(libs.plugins.androidKotlinMultiplatformLibrary)
|
|
alias(libs.plugins.gradle.ktlint) version libs.versions.ktlint.get()
|
|
}
|
|
|
|
kotlin {
|
|
android {
|
|
namespace = "com.greenart7c3.nostrsigner.shared"
|
|
compileSdk = 37
|
|
minSdk = 26
|
|
|
|
compilerOptions {
|
|
jvmTarget.set(JvmTarget.JVM_21)
|
|
}
|
|
|
|
withHostTest {}
|
|
}
|
|
jvm("desktop") {
|
|
compilerOptions {
|
|
jvmTarget.set(JvmTarget.JVM_21)
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
commonMain.dependencies {
|
|
implementation(libs.quartz.multiplatform)
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
}
|
|
commonTest.dependencies {
|
|
implementation(kotlin("test"))
|
|
implementation(libs.kotlinx.coroutines.test)
|
|
}
|
|
}
|
|
}
|