mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 16:27:06 +05:30
database: initial commit
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
fcfcbfbf92
commit
ce3dd8b7e7
13 changed files with 314 additions and 0 deletions
42
database/build.gradle.kts
Normal file
42
database/build.gradle.kts
Normal file
|
@ -0,0 +1,42 @@
|
|||
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")
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue