Thread
#dagger
    Colton Idle

    Colton Idle

    2 years ago
    I need two global OkHttp instances in my app. I'm a dagger noob, but I inherited a project that already has the single okhttp instance, but encountering problems when I try to add a second one. What's the defacto way to have two objects of the same type in the same scope?
    Nicholas Doglio

    Nicholas Doglio

    2 years ago
    A custom
    @Qualifier
    or
    @Named
    should solve this.
    Colton Idle

    Colton Idle

    2 years ago
    @Nicholas Doglio is any one of them typically preferred over the other?
    Nicholas Doglio

    Nicholas Doglio

    2 years ago
    I don't think so, both are perfectly acceptable options.
    Colton Idle

    Colton Idle

    2 years ago
    Thanks @Nicholas Doglio