Manuel Vivo
1 min readJun 17, 2020

--

Hi! I think Koin is a great library as well. Use what you think fits better to your project.

There are pros and cons to both libraries:

- With Hilt, you get a better runtime performance and compile-time correctness, scalability and Android Studio support but you give away compile time.

- With Koin, you get a better compile time but you lose what Hilt gives you. As it needs to grab instances from the service locator map, runtime performance is affected (depending on the size of your project). Also, you get rid of annotations related to DI in your project.

Google recommends Hilt for Android apps but that's just a recommendation! Use what you think it's good for you.

Hope that helps! Thank you :)

--

--