mirror of
https://github.com/FluxaMedia/fluxa.git
synced 2026-08-06 08:48:51 +00:00
Hilt is Android/Dagger-only and can't run on Kotlin/Native, so it can't be used for anything moving into :shared. Koin is the standard KMP alternative — this wires it up for real: a Koin module (sharedModule) providing GreetingViewModel via the koin viewmodel DSL, CmpSmokeTest now resolves it through koinViewModel() instead of constructing it directly, and AppApplication.onCreate() calls initSharedKoin() at startup so this isn't just compile-checked dead code — Koin actually starts alongside Hilt (the two coexist fine, verified by compiling the full app afterward). This is the pattern for every ViewModel/ScreenModel that moves to :shared going forward. HomeViewModel/DetailViewModel themselves stay Hilt-based in app for now — porting them means porting their repositories to KMP first, which is separate, larger work. Verified compiling for android, iosArm64, iosSimulatorArm64, and both app product flavors still build with Koin initialized at startup. |
||
|---|---|---|
| .. | ||
| schemas | ||
| src | ||
| build.gradle.kts | ||
| compose-stability.conf | ||
| proguard-rules.pro | ||