mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 23:27:04 +05:30
41 lines
1.1 KiB
Kotlin
41 lines
1.1 KiB
Kotlin
plugins {
|
|
kotlin("multiplatform")
|
|
id("com.android.library")
|
|
id("com.squareup.sqldelight") version "1.5.3"
|
|
}
|
|
|
|
kotlin {
|
|
android()
|
|
jvm("desktop") {
|
|
compilations.all {
|
|
kotlinOptions.jvmTarget = "11"
|
|
kotlinOptions.freeCompilerArgs =
|
|
kotlinOptions.freeCompilerArgs + listOf("-Xopt-in=kotlin.RequiresOptIn")
|
|
}
|
|
}
|
|
sourceSets["androidMain"].apply { dependencies { implementation(libs.sqldelight.androidDriver) } }
|
|
sourceSets["desktopMain"].apply { dependencies { implementation(libs.sqldelight.jvmDriver) } }
|
|
sourceSets["desktopTest"].apply {
|
|
dependencies {
|
|
implementation(libs.kotlin.coroutines.core)
|
|
implementation(kotlin("test-junit"))
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
compileSdk = 31
|
|
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
|
defaultConfig {
|
|
minSdk = 23
|
|
targetSdk = 31
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
}
|
|
}
|
|
|
|
configure<com.squareup.sqldelight.gradle.SqlDelightExtension> {
|
|
database("LobstersDatabase") {
|
|
packageName = "dev.msfjarvis.claw.database"
|
|
sourceFolders = listOf("sqldelight")
|
|
}
|
|
}
|