revert: "refactor: Replace Requery's SQLite with AndroidX's new KMP SQLite"
Some checks are pending
Build app / Build app (push) Waiting to run
Mirror Repository / mirror (push) Waiting to run

This reverts commit f604e4e256.
This commit is contained in:
Ahmad Ansori Palembani 2025-06-01 18:05:35 +07:00
parent 7ac42d5545
commit abbe606473
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
5 changed files with 60 additions and 38 deletions

View file

@ -28,6 +28,7 @@ multidex = { module = "androidx.multidex:multidex", version = "2.0.1" }
palette = { module = "androidx.palette:palette", version = "1.0.0" }
preference = { module = "androidx.preference:preference-ktx", version = "1.2.1" }
recyclerview = { module = "androidx.recyclerview:recyclerview", version = "1.4.0" }
sqlite = { module = "androidx.sqlite:sqlite", version = "2.5.1" }
webkit = { module = "androidx.webkit:webkit", version = "1.13.0" }
work = { module = "androidx.work:work-runtime-ktx", version = "2.10.1" }
window = { module = "androidx.window:window", version = "1.4.0" }
@ -37,7 +38,7 @@ androidx = [
"activity", "activity-compose", "annotation", "appcompat", "browser", "biometric", "cardview", "core",
"core-splashscreen", "layout-constraint", "glance-appwidget", "lifecycle-common", "lifecycle-livedata",
"lifecycle-process", "lifecycle-runtime", "lifecycle-viewmodel", "lifecycle-viewmodel-compose", "multidex",
"palette", "preference", "recyclerview", "layout-swiperefresh", "webkit", "work", "window"
"palette", "preference", "recyclerview", "sqlite", "layout-swiperefresh", "webkit", "work", "window"
]
[plugins]

View file

@ -6,9 +6,9 @@ fast_adapter = "5.7.0"
moko = "0.24.5"
okhttp = "5.0.0-alpha.16"
shizuku = "13.1.5"
androidxSqlite = "2.5.1"
# FIXME: Stay at 2.0.2 until 2.1.1 released because dialect is borked
# REF: https://github.com/sqldelight/sqldelight/issues/5758
# FIXME: Uncomment once SQLDelight support KMP AndroidX SQLiteDriver
#sqlite = "2.5.0-alpha04"
sqlite = "2.5.1"
sqldelight = "2.0.2"
junit = "5.11.3"
kermit = "2.0.5"
@ -82,12 +82,13 @@ rxjava = { module = "io.reactivex:rxjava", version = "1.3.8" }
rxandroid = { module = "io.reactivex:rxandroid", version = "1.2.1" }
slice = { module = "com.github.mthli:Slice", version = "v1.2" }
# SQLite interface
sqlite = { module = "androidx.sqlite:sqlite", version.ref = "androidxSqlite" }
sqlite-bundled = { module = "androidx.sqlite:sqlite-bundled", version.ref = "androidxSqlite" }
# FIXME: Uncomment once SQLDelight support KMP AndroidX SQLiteDriver
#sqlite = { module = "androidx.sqlite:sqlite-bundled", version.ref = "sqlite" }
sqlite-ktx = { module = "androidx.sqlite:sqlite-ktx", version.ref = "sqlite" }
sqlite-android = { module = "com.github.requery:sqlite-android", version = "3.49.0" }
sqldelight-coroutines = { module = "app.cash.sqldelight:coroutines-extensions", version.ref = "sqldelight" }
sqldelight-androidx-driver = { module = "com.eygraber:sqldelight-androidx-driver", version = "0.0.12" }
sqldelight-android-driver = { module = "app.cash.sqldelight:android-driver", version.ref = "sqldelight" }
sqldelight-android-paging = { module = "app.cash.sqldelight:androidx-paging3-extensions", version.ref = "sqldelight" }
sqldelight-dialects-sql = { module = "app.cash.sqldelight:sqlite-3-38-dialect", version.ref = "sqldelight" }
@ -113,11 +114,13 @@ moko = { id = "dev.icerock.mobile.multiplatform-resources", version.ref = "moko"
sqldelight = { id = "app.cash.sqldelight", version.ref = "sqldelight" }
[bundles]
db = [ "sqldelight-coroutines", "sqldelight-androidx-driver" ]
db-android = [ "sqldelight-android-paging" ]
db = [ "sqldelight-coroutines" ]
db-android = [ "sqldelight-android-driver", "sqldelight-android-paging" ]
coil = [ "coil3", "coil3-svg", "coil3-gif", "coil3-okhttp" ]
logging = [ "kermit" ]
sqlite = [ "sqlite", "sqlite-bundled" ]
# FIXME: Uncomment once SQLDelight support KMP AndroidX SQLiteDriver
#sqlite = [ "sqlite", "sqlite-ktx" ]
sqlite = [ "sqlite-ktx" ]
test = [ "junit-api", "kotest-assertions", "mockk" ]
test-android = [ "junit-android" ]
test-runtime = [ "junit-engine" ]