58 lines
1.3 KiB
Kotlin
58 lines
1.3 KiB
Kotlin
import com.mathroda.buildsrc.Configuration
|
|
import com.mathroda.buildsrc.Deps
|
|
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
plugins {
|
|
kotlin("multiplatform")
|
|
id("com.android.library")
|
|
kotlin("plugin.serialization")
|
|
}
|
|
|
|
kotlin {
|
|
@OptIn(ExperimentalKotlinGradlePluginApi::class)
|
|
compilerOptions {
|
|
androidTarget {
|
|
// compilerOptions DSL: https://kotl.in/u1r8ln
|
|
compilerOptions.jvmTarget.set(JvmTarget.JVM_11)
|
|
}
|
|
}
|
|
|
|
listOf(
|
|
iosX64(),
|
|
iosArm64(),
|
|
iosSimulatorArm64()
|
|
).forEach {
|
|
it.binaries.framework {
|
|
baseName = "domain"
|
|
isStatic = true
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
commonMain.dependencies {
|
|
//put your multiplatform dependencies here
|
|
implementation(project(":core"))
|
|
with(Deps.Org.Jetbrains.Kotlinx) {
|
|
implementation(dateTime)
|
|
implementation(kotlinxSerializationJson)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
android {
|
|
namespace = "com.mathroda.domain"
|
|
compileSdk = Configuration.compileSdk
|
|
defaultConfig {
|
|
minSdk = Configuration.minSdk
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
}
|
|
|
|
|