Is there a preference between @Named qualifier or ...
# dagger
s
Is there a preference between @Named qualifier or custom qualifiers when dealing with different dependencies of same type?
g
Named is good thing for multi-module setup when you don’t want to introduce link between modules just to share qualifier annotations
s
And by multi modules, do you mean dagger modules or android project module?
g
I mean gradle modules/projects
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
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
See your point, multi module is definitely the trend with instant apps and dynamic feature delivery