mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 02:34:39 +00:00
37 lines
792 B
Kotlin
37 lines
792 B
Kotlin
plugins {
|
|
kotlin("multiplatform")
|
|
kotlin("plugin.serialization")
|
|
id("app.cash.sqldelight")
|
|
id("com.android.library")
|
|
}
|
|
|
|
kotlin {
|
|
androidTarget()
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
api(libs.bundles.db)
|
|
}
|
|
}
|
|
val androidMain by getting {
|
|
dependencies {
|
|
api(libs.bundles.db.android)
|
|
implementation(projects.sourceApi)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace = "yokai.data"
|
|
}
|
|
|
|
sqldelight {
|
|
databases {
|
|
create("Database") {
|
|
packageName.set("yokai.data")
|
|
dialect(libs.sqldelight.dialects.sql)
|
|
schemaOutputDirectory.set(project.file("./src/commonMain/sqldelight"))
|
|
}
|
|
}
|
|
}
|