Is there a preference between @Named qualifier or custom qualifiers when dealing with different dependencies of same type?
g
gildor
10/26/2018, 2:10 AM
Named is good thing for multi-module setup when you don’t want to introduce link between modules just to share qualifier annotations
s
Sam
10/26/2018, 2:17 AM
And by multi modules, do you mean dagger modules or android project module?
g
gildor
10/26/2018, 2:20 AM
I mean gradle modules/projects
gildor
10/26/2018, 2:21 AM
If you have multi module Gradle project it’s becoming harder (and it’s one of reasons to use multiple modules, have less coupled code) to share types such as this qualifier annotation
gildor
10/26/2018, 2:22 AM
I have nothing against annotations, you of course right, it gives you better IDE support and just convinient, it’s just more typing and harder to use across modules, but still I think it’s good to use annotations when it’s possible and if you not lazy for this %)
s
Sam
10/26/2018, 2:26 AM
See your point, multi module is definitely the trend with instant apps and dynamic feature delivery