2026-08-30 02:49:34 +08:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
|
kotlin("multiplatform")
|
|
|
|
|
kotlin("plugin.serialization")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
|
explicitApi()
|
|
|
|
|
|
|
|
|
|
linuxX64()
|
|
|
|
|
linuxArm64()
|
|
|
|
|
macosArm64()
|
|
|
|
|
mingwX64()
|
|
|
|
|
jvm { compilerOptions.jvmTarget = JvmTarget.JVM_11 }
|
|
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
|
val ktorVersion = "3.5.2"
|
|
|
|
|
commonMain.dependencies {
|
2026-08-31 15:43:44 +08:00
|
|
|
api(project(":bl-model"))
|
2026-08-30 02:49:34 +08:00
|
|
|
implementation("io.ktor:ktor-client-core:$ktorVersion")
|
|
|
|
|
implementation("io.ktor:ktor-client-websockets:$ktorVersion")
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-31 15:43:44 +08:00
|
|
|
jvmMain.dependencies {
|
|
|
|
|
implementation("io.ktor:ktor-client-java:${ktorVersion}")
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-30 19:30:00 +08:00
|
|
|
appleMain.dependencies {
|
|
|
|
|
implementation("io.ktor:ktor-client-darwin:${ktorVersion}")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
linuxMain.dependencies {
|
|
|
|
|
implementation("io.ktor:ktor-client-curl:${ktorVersion}")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mingwMain.dependencies {
|
|
|
|
|
implementation("io.ktor:ktor-client-winhttp:${ktorVersion}")
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-30 02:49:34 +08:00
|
|
|
commonTest.dependencies {
|
2026-08-30 19:30:00 +08:00
|
|
|
implementation(kotlin("test"))
|
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.11.0")
|
2026-08-30 02:49:34 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|