Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
b43f599
build: Add sqldelight dependency
Iamlooker Jul 16, 2026
a00e9f2
feat: Add SQLDelight Schema
Iamlooker Jul 17, 2026
80c2185
refactor: Use Long as table keys so we do not have to use adapters later
Iamlooker Jul 17, 2026
bd41fa8
refactor: Make SHA256 BLOB in database
Iamlooker Jul 17, 2026
aba072e
refactor: Normalize permissions table
Iamlooker Jul 17, 2026
f3bfe2b
refactor: Drop src* rows
Iamlooker Jul 17, 2026
e79bca8
refactor: Normalize version table for feature and native_code
Iamlooker Jul 17, 2026
469ac81
feat: Add simple insert queries for most tables
Iamlooker Jul 17, 2026
39dbf19
fix: Fix db schema outdated
Iamlooker Jul 18, 2026
bdfe4e5
refactor: Remove Room DB, repo and UI bindings
Iamlooker Jul 18, 2026
02caea9
refactor: Add enabled and etag to repo table
Iamlooker Jul 18, 2026
9646ac0
build: Add SQLDelight test deps
Iamlooker Jul 18, 2026
1402856
feat: Add db driver
Iamlooker Jul 18, 2026
a56f557
feat: Add repo repository
Iamlooker Jul 18, 2026
83ec5b2
feat: Add index repository
Iamlooker Jul 19, 2026
be2e820
build: Enable parallel sync on Gradle 9.4+ and upgrade AGP
Iamlooker Jul 20, 2026
97a07c8
refactor: Rearrang some code and create 1.db schema
Iamlooker Jul 20, 2026
90eea26
feat: Add installed and app preferences table
Iamlooker Jul 29, 2026
67aebe0
feat: Copy rblog and download stats table from legacy
Iamlooker Jul 29, 2026
30b1f5d
Merge branch 'main' into refactor/sqldelight
Iamlooker Jul 31, 2026
2ad9aec
Merge branch 'main' into refactor/sqldelight
Iamlooker Aug 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.kotlin.parcelize)
alias(libs.plugins.compose)
alias(libs.plugins.sqldelight)
}

android {
Expand Down Expand Up @@ -93,9 +94,17 @@ android {
}
}

ksp {
arg("room.schemaLocation", "$projectDir/schemas")
arg("room.generateKotlin", "true")
sqldelight {
databases {
create("DroidifyDb") {
packageName.set("com.looker.droidify.data.local.sql")
// Lowest dialect SQLDelight offers; still newer than minSdk 23's
// SQLite 3.8.10, so avoid post-3.8 syntax (UPSERT, row values, ...).
dialect(libs.sqldelight.dialect.sqlite318)
schemaOutputDirectory.set(file("src/main/sqldelight/databases"))
verifyMigrations.set(true)
}
}
}

kotlin {
Expand Down Expand Up @@ -139,8 +148,7 @@ dependencies {
implementation(libs.serialization)

implementation(libs.okhttp)
implementation(libs.bundles.room)
ksp(libs.room.compiler)
implementation(libs.bundles.sqldelight)

implementation(libs.work.ktx)

Expand All @@ -157,19 +165,18 @@ dependencies {

testImplementation(platform(libs.junit.bom))
testImplementation(libs.bundles.test.unit)
testImplementation(libs.room.test)
testImplementation(libs.robolectric)
testImplementation(libs.arch.core.testing)
testImplementation(libs.test.core)
testImplementation(libs.test.core.ktx)
testImplementation(libs.mockk)
testImplementation(libs.sqldelight.sqlite.driver)
testImplementation(libs.turbine)
testImplementation(libs.hilt.test)
testRuntimeOnly(libs.junit.platform)
testRuntimeOnly(libs.junit.vintage.engine)
kspTest(libs.hilt.compiler)
androidTestImplementation(libs.hilt.test)
androidTestImplementation(libs.room.test)
androidTestImplementation(libs.bundles.test.android)
kspAndroidTest(libs.hilt.compiler)

Expand Down
Loading