In addition, has anyone also tried to use Hilt fro...
# multiplatform
s
In addition, has anyone also tried to use Hilt from Android in a kmm project? Wondering how it can be integrated, maybe in full for DI across the project or at least the Android part/modules of the project. Thank you.
m
Hilt is a Android only library, it can probably be used for the android source-set, but not for any other platforms. You should use a KMM DI like Kotlin-Inject for multiplatform projects
s
this looks promising. thanks for recommending.
m
My std DI is Koin...
a
You can use the service locator pattern without needing a separate library. It's simple and easy to setup. Good's recommended architecture example uses it.