Dependency Injection in Android with Dagger 2
Tutorial application for the course about Dependency Injection in Android.
Source Github link
What one will learn
- Theory and Fundamentals of Dependency Injection
- Dependency Injection Architectural Pattern
- Implemetation of Pure Dependency Injection without using 3rd party frameworks
- Integration of Dagger 2 dependency injection in the simplest and cleanest way
- Dependency injection approaches for ViewModels using Dagger 2
Dependencies used
- Android Support library
- Retrofit for communicating with Stackoverflow API
- Glide to load user profile images
- ViewModel for maintaining the data of the App and to show the dependency injection approaches for the same
- Dagger2 for Dependency Injection
Branches in this Repository
- PureDI
- Covers the implementation of Dependency Injection Architectural Pattern without the use of 3rd party frameworks.
- Dagger2
- Covers the implementation of Dependency Injection using Dagger 2.
- ViewModel
- Covers the Dependency injection approaches for ViewModels using Dagger 2.
- FactoryCtorArgFix
- Covers the correction required for ViewModel instances injected AS-IS into the ViewModels' Factory implementation.
- Shows the importance of injecting Provider wrapped services into any Factory implementations.
- master
- This is the main/default branch that covers all the above.
Udemy Certificate