https://kotlinlang.org logo
#dagger
Title
# dagger
m

myanmarking

08/07/2020, 10:09 AM
interface Builder
class BuilderImpl @Inject(abstraction: Builder::class.java) constructor(): Builder
j

Javier

08/07/2020, 10:16 AM
@Inject
annotation is from javax
m

myanmarking

08/07/2020, 10:16 AM
ah right. makes sense. Obviously! I knew there had to be a stupid easy reason
well, in that case i would argue that @Binds(class: Builder::class.java) could be used in a concrete class Impl, alongside Inject
j

Javier

08/07/2020, 12:05 PM
Yeah, should be great a way to install in components abstraction + implementation without create a module
I recommend you create a feature request creating a issue in the Google Dagger repo in GitHub
m

myanmarking

08/07/2020, 12:39 PM
will do. thanks
please take a look if you can and let me know if it's well explained
j

Javier

08/07/2020, 12:56 PM
I think it is fine, just a little error,
abstraction: ...
->
abstraction = ...
w

wasyl

08/07/2020, 1:04 PM
@myanmarking I think it’s the same issue as https://github.com/google/dagger/issues/1164
m

myanmarking

08/07/2020, 1:11 PM
ya, it's the same goal, but different usage 😛
j

Javier

08/07/2020, 1:34 PM
i don't like the example of that issue. Usually the module which has the abstraction interface doesn't implements the module which has the implementation class
👌 1