Hilt and dependency injection - MAD Skills

Hilt and dependency injection - MAD Skills

Android Developers

2 года назад

46,776 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@technics6215
@technics6215 - 04.07.2023 00:39

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.

Ответить
@nadersada8453
@nadersada8453 - 22.11.2022 15:43

What's beomodel?

Ответить
@arsal179
@arsal179 - 03.07.2022 21:15

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

Ответить
@srikrishnanunna1
@srikrishnanunna1 - 03.04.2022 07:14

Everything is so good, except your low voice .

Ответить
@user-tg1yr1dt4n
@user-tg1yr1dt4n - 20.02.2022 12:03

👍👍👍 Спасибо

Ответить
@witoldsienski1709
@witoldsienski1709 - 31.10.2021 00:08

Thanks for material :)

Ответить
@rizwansayyed7893
@rizwansayyed7893 - 29.10.2021 12:52

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

Ответить
@hnim2292
@hnim2292 - 31.08.2021 05:54

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!!

Ответить
@aliffridzuan88
@aliffridzuan88 - 25.08.2021 14:50

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

Ответить
@vazhakentchiashvili2198
@vazhakentchiashvili2198 - 24.08.2021 19:24

Thanks!

Ответить
@amirgamil
@amirgamil - 24.08.2021 17:26

Thanks for this 👍 Can't wait for the next episode!

Ответить
@adebisiyusuf436
@adebisiyusuf436 - 24.08.2021 15:17

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?

Ответить
@NikolaDespotoski
@NikolaDespotoski - 24.08.2021 14:22

It would be great if we get guide on how to interact with vanilla dagger custom components.

Ответить
@isamosso
@isamosso - 23.08.2021 22:55

Great, Greeting from Mexico

Ответить
@endlessloverain
@endlessloverain - 23.08.2021 22:48

I would like to know how to use assisted inject with hilt and Jetpack compose.

Ответить
@pcprincipal6389
@pcprincipal6389 - 23.08.2021 22:14

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?

Ответить
@thangaduraiselvaraj9318
@thangaduraiselvaraj9318 - 23.08.2021 22:04

How to use multi module projects?

Ответить
@aseemsalim5845
@aseemsalim5845 - 23.08.2021 21:15

I mostly used kodein now migrating to hilt

Ответить
@rupinderjeetsinghhans
@rupinderjeetsinghhans - 23.08.2021 20:51

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.

Ответить
@hoangvinhly4842
@hoangvinhly4842 - 23.08.2021 20:51

It's great 😇

Ответить
@NeerajGupta-of9fy
@NeerajGupta-of9fy - 23.08.2021 20:42

Hilt is not useful for multi module application, because as per documentation we have to use traditional dagger🗡️.

Ответить
@samstoyroom
@samstoyroom - 23.08.2021 20:38

I choose Koin :)

Ответить