mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat(desktop): implement DI auto-wiring and validation (#4782)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
8bb1e86511
commit
f45993ede2
11 changed files with 160 additions and 28 deletions
|
|
@ -76,7 +76,7 @@ When contributing to `core` modules, adhere to the following KMP standards:
|
|||
* **Resources:** Use Compose Multiplatform Resources (`core:resources`) for all strings and drawables. Never use Android `strings.xml` in `commonMain`.
|
||||
* **Coroutines & Flows:** Use `StateFlow` and `SharedFlow` for all asynchronous state management across the domain layer.
|
||||
* **Persistence:** Use `androidx.datastore` for preferences and Room KMP for complex relational data.
|
||||
* **Dependency Injection:** We use **Koin Annotations + KSP**. Per 2026 KMP industry standards, it is recommended to push Koin `@Module`, `@ComponentScan`, and `@KoinViewModel` annotations into `commonMain`. This encapsulates dependency graphs per feature, providing a Hilt-like experience (compile-time validation) while remaining fully multiplatform-compatible.
|
||||
* **Dependency Injection:** We use **Koin Annotations + K2 Compiler Plugin**. Per 2026 KMP industry standards, it is recommended to push Koin `@Module`, `@ComponentScan`, and `@KoinViewModel` annotations into `commonMain`. This encapsulates dependency graphs per feature, providing a Hilt-like experience (compile-time validation) while remaining fully multiplatform-compatible.
|
||||
|
||||
---
|
||||
*Document refreshed on 2026-03-10 as a historical companion to `docs/kmp-progress-review-2026.md`.*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue