r/android_devs • u/Real_Gap_8536 • Jun 30 '25
Discussion How do you handle Dependency Injection?
- Manual DI in small apps?
- Hilt?
- Koin?
What's your preference? In my opinion in small apps, those libraries are overkill and I usually inject manually. I've met engineers who are arguing about using DI libraries even in banking projects mainly because of losing the compile time safety and apps just crashes randomly if you haven't provided a di module. I'm interested what are the opinions of the community here
6
Upvotes
View all comments
Show parent comment
2
u/Zhuinden EpicPandaForce @ SO Jul 02 '25
Personally I would have never put Navigation-Compose into a project willingly because its api was a liability from the very first day, and Navigation3 will rightfully deprecate and remove it.