8000 GitHub - AlexGabor/DaggerExample · GitHub
[go: up one dir, main page]

Skip to content

AlexGabor/DaggerExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dagger example for scoping component on view model

Using extensions from Fred Porciuncula's talk (my notes on the talk)

In this example ViewModelComponent is a subcomponent annotated with @ViewModelScope. This means that classes annotated with it will have a single instance in the dependency graph.

For example, if your architecture has one activity per flow then this gives you the possibility to scope dependencies on a flow.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

0