Thread
#dagger
    s

    Sam

    3 years ago
    Is there a preference between @Named qualifier or custom qualifiers when dealing with different dependencies of same type?
    gildor

    gildor

    3 years ago
    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

    3 years ago
    And by multi modules, do you mean dagger modules or android project module?
    gildor

    gildor

    3 years ago
    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

    Sam

    3 years ago
    See your point, multi module is definitely the trend with instant apps and dynamic feature delivery