Lilly
03/27/2019, 8:45 PMtseisel
03/27/2019, 8:51 PMdagger-android
?Lilly
03/27/2019, 9:01 PMtseisel
03/27/2019, 9:27 PMtseisel
03/27/2019, 9:30 PMLilly
03/27/2019, 9:49 PMghedeon
03/27/2019, 10:42 PMdagger-android
will help with injection into fragment, not with scoping. And seems like fragment scope is the requirement.arekolek
03/28/2019, 7:53 AMdagger-android
, because you canLilly
03/28/2019, 11:37 AMdagger-android
. I found 2 blog posts that do not recommend the usage and also Jake Wharton stated about that "It's only useful in highly modularized scenarios. There's no point in using it when your activities and fragments live in the same module as your application."
The arguments of the blog post authors not to use dagger-android
are:
1. You can scope with viewModel so you don't need additional subcomponents for scoping as far as you let your dependencies unscoped and let them die with the viewModel...
2. The complexity of the setup/configuration especially for beginners
Btw... I'm using MVVM with AAC
So whats wrong with dagger-android
? Is there any additional overhead when using it or subcomponents
in general?
What do you think guys?