57 lines
1.2 KiB
Kotlin
57 lines
1.2 KiB
Kotlin
import org.gradle.accessors.dm.LibrariesForLibs
|
|
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
plugins {
|
|
id("org.jetbrains.kotlin.multiplatform")
|
|
id("com.android.kotlin.multiplatform.library")
|
|
}
|
|
|
|
val libs = the<LibrariesForLibs>()
|
|
|
|
kotlin {
|
|
iosArm64()
|
|
iosSimulatorArm64()
|
|
|
|
jvm()
|
|
|
|
js {
|
|
browser()
|
|
}
|
|
|
|
@OptIn(ExperimentalWasmDsl::class)
|
|
wasmJs {
|
|
browser()
|
|
}
|
|
|
|
androidLibrary {
|
|
// namespace is set per module in the consuming build file
|
|
compileSdk =
|
|
libs.versions.androidCompileSdk
|
|
.get()
|
|
.toInt()
|
|
minSdk =
|
|
libs.versions.androidMinSdk
|
|
.get()
|
|
.toInt()
|
|
|
|
compilerOptions {
|
|
jvmTarget = JvmTarget.JVM_11
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
commonMain.dependencies {
|
|
// Coroutines
|
|
implementation(libs.kotlinx.coroutinesCore)
|
|
|
|
// DI
|
|
implementation(project.dependencies.platform(libs.koin.bom))
|
|
implementation(libs.koin.core)
|
|
}
|
|
commonTest.dependencies {
|
|
implementation(libs.kotlin.test)
|
|
}
|
|
}
|
|
}
|