Skip to content

Latest commit

 

History

History

DaggerSample

Dependency injection with Dagger 2

Android sample app to learn about dependency injection in Android using Dagger 2. It follows part 1 and part 2 of the RayWenderlich Dagger 2 tutorials.

all news screen news item screen

The app mainly showcases:

  • Constructor and field injection
  • Defining modules, and binding dependencies with @Binds and @Provides
  • Defining components and using component builders and factories
  • Inter-component communication with component dependencies and subcomponents.
  • Managing scopes (@Singleton and custom scopes)
  • Multibinding with @IntoSet