Explore an in-depth overview of Dagger 2 for Android development in this 17-minute video tutorial. Learn how to create an AppComponent by extending DaggerApplication and using AndroidInjector. Discover the process of creating modules and adding dependencies using @Provides and @Binds annotations. Master the injection of activities through ActivityBuildersModule and @ContributesAndroidInjector, and understand subcomponents and their dependencies. Dive into advanced topics such as injecting activities into other activities, injecting ViewModels using multibinding, and managing app-level dependencies with SessionManager. Gain insights into custom scopes like @Singleton, @AuthScope, and @MainScope, and understand their impact on memory management. Follow along with practical examples and diagrams to solidify your understanding of Dagger 2 implementation in Android projects.
Overview
Syllabus
Introduction
App Component
Extend Dagger Application
Create App Component
Rebuild
Sub Components
Scopes
View Models
App Module
Add Provides
Session Manager
Taught by
CodingWithMitch