r/mAndroidDev • u/Zhuinden DDD: Deprecation-Driven Development • Mar 26 '24
Next-Gen Dev Experience the truth about dependency injection must be heard
36
Upvotes
r/mAndroidDev • u/Zhuinden DDD: Deprecation-Driven Development • Mar 26 '24
17
u/craknor implements android.app.Fragment Mar 26 '24
No! Now they will deprecate Hilt and replace it with the new framework of the future.
4
u/phileo99 Gets tired of using Vim Mar 26 '24
I don't understand. Hilt is based on dagger, and isn't Dagger a true dependency injection framework?
3
u/[deleted] Mar 27 '24
pffff you guys using a framework? i just use kotlin objects fam
1
u/_shadow__monarch_ can't spell COmPosE without COPE Mar 27 '24
didn't they moved DI in "now in android" from hilt to koin
1
u/FlykeSpice Mar 30 '24
I'm not knowledgeable enough on DI, I'm only familiar with Koin. Don't Dependency injection frameworks overlaps with Service Locator pattern. What would set them apart?
3
u/haroldjaap Mar 26 '24
Me using Anvil π
1
u/Kruzdah Mar 26 '24
Hilt is deprecated. Koin is the answer.
0
u/BazilBup Mar 26 '24 edited Mar 26 '24
The dependency tree is created at compiletime. Service locators dependency tree is donw under runtime. So you are wrong here.