Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / library / room / build.gradle.kts
build.gradle.kts25 lines · 1.1 KiBRaw
| 1 | plugins { |
| 2 | id("common-conventions-library") |
| 3 | alias(libs.plugins.ksp) |
| 4 | } |
| 5 | |
| 6 | dependencies { |
| 7 | // SqlCipherDbCodec implements the DbBackupCodec interface from :library, so |
| 8 | // this edge stays: both modules are permission-free (documented in #884). |
| 9 | implementation(project(":library")) |
| 10 | |
| 11 | // room + SQLCipher. The 2 MB libsqlcipher.so lives here, so only apps that |
| 12 | // depend on :library:room bundle it. sqlcipher is exposed via `api` because the |
| 13 | // inline `buildDatabase` body references SQLCipherDriver at each app |
| 14 | // call site, so it must be on the consuming app's compile classpath. |
| 15 | implementRoom(libs) |
| 16 | // The test database's generated impl, for repository/buildDatabase tests. |
| 17 | add("kspTest", libs.androidx.room3.compiler) |
| 18 | // Same for the device tests, which open real SQLCipher databases. |
| 19 | add("kspAndroidTest", libs.androidx.room3.compiler) |
| 20 | androidTestImplementation(libs.androidx.test.runner) |
| 21 | androidTestImplementation(libs.androidx.test.core) |
| 22 | androidTestImplementation(libs.androidx.test.ext.junit) |
| 23 | api(libs.sqlcipher.android) |
| 24 | implementation(libs.androidx.sqlite) |
| 25 | } |