-
koin
Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
espresso-kotlin-playground
Android app that uses the kotlin all open plugin for mocking in espresso tests
Now I will finish up saying Hilt is just an opinionated way to dependency injection on Android, but there are simpler frameworks out there such as Koin or Kodein that can help take away a lot of the troubles that can come when you try to make your own framework. Just know that most other frameworks tend to be runtime injection instead of compile time injection like Hilt, which can be helpful to know at compile time if you are missing a dependency in your graph as opposed to runtime when its out in the wild.
Now I will finish up saying Hilt is just an opinionated way to dependency injection on Android, but there are simpler frameworks out there such as Koin or Kodein that can help take away a lot of the troubles that can come when you try to make your own framework. Just know that most other frameworks tend to be runtime injection instead of compile time injection like Hilt, which can be helpful to know at compile time if you are missing a dependency in your graph as opposed to runtime when its out in the wild.
If you're looking for a simple project that shows all of the code changes converting a MVVM app to Hilt, this commit in repository of mine should show that. I should note that this commit also added mockk and the kotlin open compiler to write a mock espresso test which might show you another benefit to writing a hilt android test.
Related posts
-
Kotlin Multiplatform and Swift - Overcoming Interoperability Challenges for Multiplatform Development
-
[Typescript] Quelqu'un peut-il suggérer une bibliothèque d'injection de dépendance simple pour TypeScript / JavaScript?
-
Best Practices When Splitting Compose Functions Into Separate Files
-
KVision 6.0.0 is released
-
Compose - NavHost recomposition multiple times