<Dagger - Register class without @Inject with mini...
# stackoverflow
u
Dagger - Register class without @Inject with minimal ceremony Lets say I want to register a class with Dagger that doesn't have the @Inject annotation on the constructor and that also takes dependencies in its constructor. i.e. // Java class MyClass { public MyClass(MyDependency dependency) { ... } } // Kotlin class MyClass(private val dependency: MyDependency) { ... } Is there a way to register this class without having to manually wire the dependencies into the constructor? // This is how I currently do it. I must list all constructor...