mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 16:27:06 +05:30
44 lines
1.1 KiB
Kotlin
44 lines
1.1 KiB
Kotlin
plugins {
|
|
kotlin("multiplatform")
|
|
id("com.android.library")
|
|
id("com.squareup.sqldelight") version "1.5.0"
|
|
}
|
|
|
|
kotlin {
|
|
android()
|
|
jvm("desktop") { compilations.all { kotlinOptions.jvmTarget = "11" } }
|
|
sourceSets {
|
|
val commonMain by getting
|
|
val commonTest by getting
|
|
val androidMain by getting {
|
|
dependencies { implementation(libs.thirdparty.sqldelight.androidDriver) }
|
|
}
|
|
val androidTest by getting
|
|
val desktopMain by getting {
|
|
dependencies { implementation(libs.thirdparty.sqldelight.jvmDriver) }
|
|
}
|
|
val desktopTest by getting {
|
|
dependencies {
|
|
implementation(libs.kotlin.coroutines.core)
|
|
implementation(kotlin("test-junit"))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion(30)
|
|
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
|
defaultConfig {
|
|
minSdkVersion(23)
|
|
targetSdkVersion(30)
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
}
|
|
}
|
|
|
|
configure<com.squareup.sqldelight.gradle.SqlDelightExtension> {
|
|
database("LobstersDatabase") {
|
|
packageName = "dev.msfjarvis.lobsters.database"
|
|
sourceFolders = listOf("sqldelight")
|
|
}
|
|
}
|