5

Hilt and dependency injection - MAD Skills

 3 years ago
source link: https://www.youtube.com/watch?v=1Zt6aIqZnqU
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
#Featured #Latest #Hilt

Hilt and dependency injection - MAD Skills

12,331 views
Aug 23, 2021

Welcome to the first episode of the Modern Android Development Skills series on Hilt. In this episode, Android Developer Programs Engineer Manuel Vivo will introduce dependency injection (DI) and Hilt, Jetpack’s recommended solution for DI on Android.

Dependency injection in Android → https://goo.gle/3zcML4p Dependency injection with Hilt → https://goo.gle/2W82Pq1 Hilt and Jetpack integrations → https://goo.gle/3ya3qo7 Hilt & Dagger Annotations → https://goo.gle/3B3qBSN Dagger Hilt → https://goo.gle/3mo3s9v Migrating to Hilt → https://goo.gle/381RV7z

Catch more videos on Hilt for MAD Skills → https://goo.gle/hilt-mad

Watch more MAD Skills episodes → http://goo.gle/madskills Subscribe to Android Developers → https://goo.gle/AndroidDevs

#Featured #Latest #Hilt

product: Android - General; fullname: Manuel Vivo; re_ty: Publish;

Show lessShow more

40 Comments

Sort by
default-user=s48-c-k-c0x00ffffff-no-rj
Add a public comment...
Doesn't `@InstallIn` break best practises (Dependency Inversion?) letting `<FooBar>Module` know about components that should not be visible for modules at all?

5 days ago (edited)

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

1 week ago

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?

1 week ago

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

1 week ago


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK