Colton Idle
06/06/2020, 1:41 PMbuilder()
method isn't available on MyAppComponent. Anyone have any ideas? The readme doesn't say that I need to change anything. Opened an issue here as well https://github.com/JakeWharton/dagger-reflect/issues/191
EDIT 1: I did find this issue (https://github.com/JakeWharton/dagger-reflect/issues/145) which seems similar, but it doesn't really have a solution? The last semi-helpful response there is to use @Component.Factory
but I'm not sure how that helps. Android Dagger guide doesn't talk about that at all, which just makes it weird that dagger reflect doesn't work with a "typical"/basic dagger setup.
EDIT 2: Also found this https://github.com/JakeWharton/dagger-reflect/issues/4 where Jake says "in general you should refactor to @BindsInstance
and stateless modules."
Maybe that's my solution? But how do I move my simple setup to "BindsInstance and stateless modules". That's going wayy over my head. In the same comment JW seems to mention that Builder() should also already work? Sorry for being a dagger noob herePaul Woitaschek
06/07/2020, 5:37 AMPaul Woitaschek
06/07/2020, 5:38 AMPaul Woitaschek
06/07/2020, 5:39 AMPaul Woitaschek
06/07/2020, 5:39 AMColton Idle
06/08/2020, 2:01 AM