ArchitectureComponentsDemo
ArchitectureComponentsDemo copied to clipboard
Removal of Dagger-android
Hi Fabio! Congratulations on your repo, it's a really complete project.
I've seen that in April you decided to remove the dependency of dagger-android. I wonder what was the reason, was it due to difficulties in testing with espresso?
Hi, thanks! Glad you like it!
I have removed dagger-android to try to use component dependencies in a multi module project. After the porting (I am using the same approach in some "real" projects as well) I think that using component dependencies is easier when you have to manage multiple components. This post https://proandroiddev.com/using-dagger-in-a-multi-module-project-1e6af8f06ffc is a really good starting point about this subject.
I see your point! Thanks for answering me.
We have a multi-module project that is somewhat large and we're thinking about moving to dagger-android indeed to avoid having to implement a lot of interfaces on the CustomApplication that are used to add the subcomponents to the main component.