This talk was about Dependency Injection with Hilt at DevFest Egypt. First I explained the concept of Dependency Injection without libraries. Next, I showed how to incorporate Hilt into a new app and how to migrate an existing app.
in the Application Component from the app module @EntryPoint @InstallIn(ApplicationComponent::class) interface ImageFeatureModule { fun imageLoader(): ImageLoader }
Using Hilt in your Android app Codelab • Migrating your Dagger app to Hilt Codelab • Scoping in Android and Hilt. Scoping an object A to another object B… | by Manuel Vivo | Android Developers • Hilt in multi-module apps • https://github.com/moyheen/HiltSampleApplication • Image by Gerd Altmann from Pixabay