Комментарии:
Can you use other than `Application` types of context? Like `Activity` or `Fragment`?
I'm asking because I need to satisfy a library that needs Activity context.
What's beomodel?
ОтветитьManual DI is a really great way to get things done. Google is on a crazy journey to introduce new things every couple of months. All these libraries and most of them only provide a little improvement over the existing method and usually come at a cost of huge learning curves. Soon, hilt will be deprecated as well in the name of some other cartoon library
ОтветитьEverything is so good, except your low voice .
Ответить👍👍👍 Спасибо
ОтветитьThanks for material :)
ОтветитьHow to provide Singleton object only to a specific flows ? I.e I want to use same object in my login screen ,registration screen and forget password screen
ОтветитьRemember the bad old days when when you have to do a lot of works to provide dependencies to view model. Hilt is the savior!!
Ответитьis there a link to hilt best practices? Currently im injecting a few mutableSharedFlow for sharing across services and viewmodel, no idea whether its an anti pattern
ОтветитьThanks!
ОтветитьThanks for this 👍 Can't wait for the next episode!
ОтветитьBased on the @InstallIn annotation, does it mean then that higher components (e.g. SingletonComponent) in the components hierarchy can accommodate bindings or dependencies annotated with scopes (e.g. @ActivityScope) of components down the hierarchy?
ОтветитьIt would be great if we get guide on how to interact with vanilla dagger custom components.
ОтветитьGreat, Greeting from Mexico
ОтветитьI would like to know how to use assisted inject with hilt and Jetpack compose.
ОтветитьDI libraries are overrated and too complex to implement. And since everytime and with every project there is a new DI library, they are just not worth the effort for learning.
Hell what's wrong with Spring Boot's Bean. It is too simple, you just annotate something as bean and inject it elsewhere with just one annotation. Why do all the Android libraries have to be spaghetti codes and have their own syntax? Why not make life simpler instead of making it harder for us developers?
How to use multi module projects?
ОтветитьI mostly used kodein now migrating to hilt
ОтветитьGreat explanation!
I am more comfortable with manual dependency injection. In future, when Hilt is deprecated, and Jetpack Jilt is introduced, I will have nothing to change in my code.
I feel Hilt is polluting my code by being omnipresent with annotations everywhere.
It's great 😇
ОтветитьHilt is not useful for multi module application, because as per documentation we have to use traditional dagger🗡️.
ОтветитьI choose Koin :)
Ответить