2020-12-15 01:39:26 +08:00
|
|
|
plugins {
|
2021-03-06 20:33:04 +08:00
|
|
|
kotlin("multiplatform")
|
2020-12-15 01:39:26 +08:00
|
|
|
kotlin("plugin.serialization")
|
|
|
|
}
|
|
|
|
|
2021-03-06 20:33:04 +08:00
|
|
|
val serializationVersion: String by project.extra
|
|
|
|
|
|
|
|
val jvmVersion: String by project.extra
|
|
|
|
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = jvmVersion
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-15 01:39:26 +08:00
|
|
|
kotlin {
|
|
|
|
js {
|
|
|
|
browser {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-06 20:33:04 +08:00
|
|
|
jvm()
|
2020-12-15 01:39:26 +08:00
|
|
|
|
2021-03-06 20:33:04 +08:00
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
|
|
|
api(project(":lib"))
|
2020-12-15 01:39:26 +08:00
|
|
|
|
2021-03-06 20:33:04 +08:00
|
|
|
api("org.jetbrains.kotlinx:kotlinx-serialization-json:$serializationVersion")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-12-15 01:39:26 +08:00
|
|
|
}
|