mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-23 11:38:55 +02:00
Upgrade to SQLDelight 2
This commit is contained in:
@@ -2,7 +2,7 @@ plugins {
|
||||
id("com.android.library")
|
||||
kotlin("android")
|
||||
kotlin("plugin.serialization")
|
||||
id("com.squareup.sqldelight")
|
||||
id("app.cash.sqldelight")
|
||||
}
|
||||
|
||||
android {
|
||||
@@ -13,10 +13,12 @@ android {
|
||||
}
|
||||
|
||||
sqldelight {
|
||||
database("Database") {
|
||||
packageName = "tachiyomi.data"
|
||||
dialect = "sqlite:3.24"
|
||||
schemaOutputDirectory = project.file("./src/main/sqldelight")
|
||||
databases {
|
||||
create("Database") {
|
||||
packageName.set("tachiyomi.data")
|
||||
dialect(libs.sqldelight.dialects.sql)
|
||||
schemaOutputDirectory.set(project.file("./src/main/sqldelight"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -26,9 +28,7 @@ dependencies {
|
||||
implementation(project(":domain"))
|
||||
implementation(project(":core"))
|
||||
|
||||
api(libs.sqldelight.android.driver)
|
||||
api(libs.sqldelight.coroutines)
|
||||
api(libs.sqldelight.android.paging)
|
||||
api(libs.bundles.sqldelight)
|
||||
}
|
||||
|
||||
tasks {
|
||||
|
Reference in New Issue
Block a user