android-base
android-base copied to clipboard
Add Koin instead of dagger-hilt as DI
Add Koin instead of Hilt as DI as an alternative for this base project
There are some pros and cons about it, at least that I can notice, such as:
PROS
- We don´t have to use annotations, since Koin doesn´t generate any code
- Lightweight apk
- Less learning curve and boilerplate code
- Smaller impact on our built time.
CONS
- Dagger is a compile-time DI framework, we will know about our mistake almost instantly because our project will fail to build.
Here there are some interesting articles which explain the main differences between both: Dagger-Hilt & Koin under the hood Koin Vs Dagger-Hilt
PD: I also introduce a test library Mockk, which has very good stuff for testing coroutines, and supports Koin