Skip to content

4 ways of Dependency injection with plain Dagger 2, Dependent Component, SubComponents and Hilt

Notifications You must be signed in to change notification settings

ericntd/dagger-cat

Repository files navigation

Learn Dagger progressively by examples

Step 1 - Simple Dagger setup

Should be sufficient for most multi-activity apps. The same approach used for Activities here can be used for Fragments too.

Step 2 - Dependency Components

https://github.com/ericntd/dagger-cat/tree/step2-dependent-component

Step 3 - SubComponent

https://github.com/ericntd/dagger-cat/tree/step-3-subcomponent

Step 4 - Hilt

TODO

Step 5 - Advanced Scoping

TODO

About

4 ways of Dependency injection with plain Dagger 2, Dependent Component, SubComponents and Hilt

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages