dimsuz
02/25/2022, 1:56 PM@ContributesBinding(...), but this requires that target class extends some interface.
Is it wrong to wish this? It just looks simpler than writing a boring provide with MyClass() in the Module.Nicholas Doglio
02/25/2022, 2:44 PM@Inject annotation to your empty constructor.
class MyClass @Inject constructor() {}dimsuz
02/25/2022, 3:02 PMralf
02/25/2022, 5:06 PM@ContributesTo for Dagger modules and component interfaces, but not classes with an @Inject constructor.ralf
02/25/2022, 5:07 PM@Inject constructor. Nothing else is needed.Nicholas Doglio
02/25/2022, 5:38 PM