• gumil

    gumil

    3 years ago
    Why does generated classes in dagger does not count as a source set when it is only a kotlin module? On Android modules makes the generated directory as a sourceset by default
    gumil
    1 replies
    Copy to Clipboard
  • Jacob Richards

    Jacob Richards

    3 years ago
    can anyone recommend a resource for getting started with dagger in kotlin (NOT with android, I’m building a web server)?
    Jacob Richards
    gildor
    4 replies
    Copy to Clipboard
  • j

    jw

    3 years ago
    Hey all. We're starting to land some Kotlin-specific changes into Dagger! Two have already landed which will be in the next release:- Understand qualifier annotations on properties without requiring a use-site target (i.e.,
    @Whatever
    instead of
    @field:Whatever
    )- Understand
    @Module
    on
    object
    does not require a module instance. We have a few more in the pipeline, but if you have any ideas of small ergonomic improvements like this please file an issue on GitHub.
    j
    z
    +2
    15 replies
    Copy to Clipboard
  • g

    ghedeon

    3 years ago
    What is the recommended way of having a DebugComponent that extends MainComponent with some extra modules in debug? Thank you.
    g
    h
    3 replies
    Copy to Clipboard
  • ritesh

    ritesh

    2 years ago
    @JvmStatic @Provides @Singletonn fun providesHandler( ): SomeHandler = HandlerObject.init() This is the provider, i have inside the some module and that module is sits in the application component and it's singleton. I know that dagger generates all the module providers classes at compile time, as gets the instance dependency through the
    get()
    overriden method in the class. As all classes required for the DI graph are created at compile time. I was wondering when the actual creation of the object happens, when
    get()
    is actually called. Does it gets called and object is created when it's requested through
    @inject
    or happens at compile time and just returns when
    @inject
    gets called.
    ritesh
    wasyl
    2 replies
    Copy to Clipboard
  • arekolek

    arekolek

    2 years ago
    why no thermosiphon example? :troll:
    arekolek
    1 replies
    Copy to Clipboard
  • furkan.akdemir

    furkan.akdemir

    2 years ago
    Is it ok to use dagger in a library ? I haven't seen much example of it, however, there is a little section about it in Android docs.
    furkan.akdemir
    1 replies
    Copy to Clipboard
  • j

    jw

    2 years ago
    You just have to shade it
    j
    1 replies
    Copy to Clipboard
  • Paul Woitaschek

    Paul Woitaschek

    2 years ago
    How would I use dagger-reflect with a pure kotlin module? For the android modules I have set a
    Dev
    build type where I use dagger reflect and the
    Debug
    and
    Release
    build types use the regular dagger.
    Paul Woitaschek
    wasyl
    5 replies
    Copy to Clipboard
  • Manuel Vivo

    Manuel Vivo

    2 years ago
    For a 101 cheatsheet of what code Dagger generates for you, check out this tweet: https://twitter.com/manuelvicnt/status/1207337679144259590
    Manuel Vivo
    Paul Woitaschek
    2 replies
    Copy to Clipboard