This sample app showcases Google's new DI library, Dagger Hilt. Dagger Hilt was designed to solve some of the pain points of using Dagger2 in android applications. The benefits of using Dagger Hilt instead of Dagger 2 are;
- Reduced boilerplate
- Decoupled build dependencies
- Simplified configuration
- Improved testing
- Standardized components
You can read more about Dagger Hilt from https://dagger.dev/hilt/
.
- Dagger Hilt - Dependency Injection library.
- Android Jetpack - Suite of libraries, tools, and guidance to help developers write high-quality apps easier.
- Android KTX - Google's kotlin extension functions.
- Rxjava - JVM implementation of Reactive Extensions.
- Retrofit - Networking library.
- Mockito - JSON processing library.
- Glide4 - Image loading library.
- Minimum SDK - android API 22
- Target SDK - android API 29
To run this code, clone this repository and import it into Android studio.
https://github.com/moyheen/HiltSampleApplication.git