Commit 5f2777d
committed
feat: upgrade to Room 3 and expand cross-platform encryption support
- Update Android Gradle Plugin to 9.3.0 and Room to 3.0.0, migrating code to `androidx.room3` APIs.
- Implement encryption-capable drivers for iOS (`IosCipherDriver`), JVM (`JdbcSQLiteDriver`), and WasmJS (`NamedWebWorkerSQLiteDriver`) using SQLCipher and SQLite3MultipleCiphers.
- Add `room3.worker.js` with OPFS support to enable persistent, encrypted storage for the Web target.
- Standardize the database filename as `notes.db` across all implementations and migrate the schema to version 2.
- Refactor `SafeRepo` and `DatabaseHolder` to support asynchronous lifecycle management, including encryption, rekeying, and decryption.
- Update build logic and documentation to support dynamic selection between Room and SQLDelight via `CORE_DATA_DB_MODULE`.
- Improve error handling in `SplashViewModel` to better manage database initialization failures.
- Add comprehensive integration tests for Room CRUD operations, paging, and encryption on JVM and WasmJS.1 parent 22fdbbe commit 5f2777d
54 files changed
Lines changed: 2138 additions & 864 deletions
File tree
- app
- android/src/androidTest/java/com/softartdev/notedelight
- iosApp/KotlinMultiplatformLinkedPackage/subpackages
- KotlinMultiplatformLinkedPackageDylib
- _core_data_db_room
- Sources/_core_data_db_room
- include
- web
- src/wasmJsMain/resources
- build-logic/convention/src/main/kotlin/com/softartdev/notedelight
- core
- data
- db-room
- karma.config.d
- src
- androidHostTest/kotlin/com/softartdev/notedelight
- androidMain/kotlin/com/softartdev/notedelight
- db
- repository
- commonMain/kotlin/com/softartdev/notedelight/db
- iosMain/kotlin/com/softartdev/notedelight
- db
- repository
- iosTest/kotlin/com/softartdev/notedelight/db
- jvmMain/kotlin/com/softartdev/notedelight
- db
- repository
- jvmTest/kotlin/com/softartdev/notedelight
- wasmJsMain
- kotlin/com/softartdev/notedelight
- db
- repository
- resources
- wasmJsTest/kotlin/com/softartdev/notedelight
- db-sqldelight/src/wasmJsMain
- kotlin/com/softartdev/notedelight/repository
- resources
- presentation/src
- androidHostTest/kotlin/com/softartdev/notedelight/presentation/splash
- commonMain/kotlin/com/softartdev/notedelight/presentation/splash
- test/ui/src
- commonMain/kotlin/com/softartdev/notedelight/ui/cases
- wasmJsMain/resources
- wasmJsTest/resources
- docs
- gradle
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
| 463 | + | |
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | | - | |
| 470 | + | |
| 471 | + | |
471 | 472 | | |
472 | | - | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
473 | 476 | | |
474 | 477 | | |
475 | 478 | | |
| |||
Lines changed: 28 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
34 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
581 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments