2025-04-13 00:51:32 +10:00
|
|
|
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
|
|
|
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
|
alias(libs.plugins.kotlinMultiplatform)
|
2025-04-14 21:07:05 +10:00
|
|
|
alias(libs.plugins.kotlinSerialization)
|
2025-04-13 00:51:32 +10:00
|
|
|
alias(libs.plugins.androidLibrary)
|
2025-08-08 01:59:32 +10:00
|
|
|
alias(libs.plugins.ksp)
|
|
|
|
|
alias(libs.plugins.room)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
room {
|
|
|
|
|
schemaDirectory("$projectDir/schemas")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
ksp(libs.room.compiler)
|
2025-04-13 00:51:32 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
|
androidTarget {
|
|
|
|
|
@OptIn(ExperimentalKotlinGradlePluginApi::class)
|
|
|
|
|
compilerOptions {
|
|
|
|
|
jvmTarget.set(JvmTarget.JVM_11)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
iosX64()
|
|
|
|
|
iosArm64()
|
|
|
|
|
iosSimulatorArm64()
|
|
|
|
|
|
|
|
|
|
jvm()
|
2025-04-14 21:07:05 +10:00
|
|
|
|
2025-04-13 00:51:32 +10:00
|
|
|
sourceSets {
|
2025-04-14 21:07:05 +10:00
|
|
|
androidMain.dependencies {
|
|
|
|
|
implementation(libs.ktor.client.okhttp)
|
|
|
|
|
}
|
2025-04-13 00:51:32 +10:00
|
|
|
commonMain.dependencies {
|
2025-04-14 21:07:05 +10:00
|
|
|
implementation(libs.okio)
|
2025-08-08 01:59:32 +10:00
|
|
|
implementation(libs.koin.core)
|
2025-04-14 21:07:05 +10:00
|
|
|
implementation(libs.ktor.client.core)
|
|
|
|
|
implementation(libs.ktor.client.contentnegotiation)
|
|
|
|
|
implementation(libs.ktor.serialization.kotlinx.json)
|
|
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
2025-07-28 22:24:33 +10:00
|
|
|
implementation(libs.kotlinx.datetime)
|
2025-04-14 21:07:05 +10:00
|
|
|
implementation(libs.kotlinx.serialization.json)
|
2025-08-08 01:59:32 +10:00
|
|
|
implementation(libs.room.runtime)
|
|
|
|
|
implementation(libs.sqlite.bundled)
|
2025-04-14 21:07:05 +10:00
|
|
|
}
|
|
|
|
|
iosMain.dependencies {
|
|
|
|
|
implementation(libs.ktor.client.darwin)
|
2025-04-13 00:51:32 +10:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
namespace = "moe.lava.banksia.shared"
|
|
|
|
|
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
|
|
|
|
compileOptions {
|
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
|
|
|
}
|
|
|
|
|
defaultConfig {
|
|
|
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
|
|
|
|
}
|
|
|
|
|
}
|