Skip to content

Commit f4751b1

Browse files
committed
docs: add data module refactoring tasks to roadmap
- Add technical debt item to move `PreferencesRepoImpl` to a new `:core:data:prefs` multiplatform module. - Add technical debt item to move `BiometricCredentialsStore` to a new `:feature:biometric:data` module.
1 parent 20ef9e4 commit f4751b1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎docs/ROADMAP.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ This document outlines the strategic plan, architectural considerations, and pri
126126

127127
## 🛠️ Maintenance & Technical Debt
128128

129+
* **Move `PreferencesRepoImpl` to `:core:data:prefs`**
130+
* Create a multiplatform Core Data module independent of `CORE_DATA_DB_MODULE`. Move [`PreferencesRepoImpl`](../core/presentation/src/commonMain/kotlin/com/softartdev/notedelight/repository/PreferencesRepoImpl.kt) and its `multiplatform-settings` dependency to `commonMain`, and move its repository tests to `commonTest`. Keep the `PreferencesRepo` contract in `core:domain`, update the Koin binding, and preserve the sort preference keys, stored values, and defaults.
131+
* **Move `BiometricCredentialsStore` to `:feature:biometric:data`**
132+
* Create a Data submodule for the biometric feature. Move [`BiometricCredentialsStore`](../feature/biometric/domain/src/androidMain/kotlin/com/softartdev/notedelight/interactor/BiometricCredentialsStore.kt) and its Preferences DataStore dependency from `:feature:biometric:domain` to `androidMain` in the new module. Preserve the existing file name, keys, and format for the ciphertext and IV.
133+
* Update the Android Koin wiring to supply the store to the biometric interactor, with one DataStore instance for the existing file. The interactor continues to own biometric authentication, encryption, and Android Keystore operations.
129134
* **Remove LeakCanary from Android Debug Builds:**
130135
* Remove `leakcanary-android`, `plumber-android`, and `leakcanary-android-instrumentation` from [`app/android/build.gradle.kts`](file:///Users/artur/AndroidStudioProjects/NoteDelight/app/android/build.gradle.kts) and [`gradle/libs.versions.toml`](file:///Users/artur/AndroidStudioProjects/NoteDelight/gradle/libs.versions.toml).
131136
* *Rationale:* `leakcanary-android` merges `android.permission.POST_NOTIFICATIONS` and `leakcanary.internal.RequestPermissionActivity` into debug builds (triggering `"Allow Note Delight to send you notifications?"` prompts), while Jetpack Compose UI and Android Studio's built-in Memory Profiler make runtime LeakCanary overhead redundant.

0 commit comments

Comments
 (0)