ArchitectureComponentsDemo icon indicating copy to clipboard operation
ArchitectureComponentsDemo copied to clipboard

Removal of Dagger-android

Open douglasiacovelli opened this issue 6 years ago • 2 comments

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?

douglasiacovelli avatar Jul 17 '19 13:07 douglasiacovelli

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.

fabioCollini avatar Jul 19 '19 13:07 fabioCollini

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.

douglasiacovelli avatar Jul 19 '19 13:07 douglasiacovelli