Dependency Injection using Hilt

 Few Essentials to know


1. @HiltAndroidApp

2. Constructor Injection & Field Injection - @Inject

3. @AndroidEntryPoint

4. @Module, @InstallIn

5. @Provides

6. @Binds

7. @ActivityScoped/@Singleton/@ViewModelScoped etc

8. ActivityComponent, FragmentComponent, SingletonComponent etc.


Please complete the codelab practice 

https://developer.android.com/codelabs/android-hilt#0


Full Reference

https://developer.android.com/training/dependency-injection/hilt-android


Comments

Popular Posts