Colton Idle
07/30/2025, 5:36 PM@Singleton
class Foo @Inject constructor(private val bar: Bar)
...
and it's also defined in a @module @installIn(SingletonComponent)
as
@Provides
@Singleton
fun provideFoo(bar: Bar){
return Foo(bar)
}
that's "bad", right? Or is it just duplicative and not necessarily bad?
Isn't the whole point for @Provides is to provide creation of classes that you dont own?Nicholas Doglio
07/30/2025, 5:40 PMis it just duplicative and not necessarily bad?
Yes just duplicative
the whole point for @Provides is to provide creation of classes that you dont own?
nod
Colton Idle
07/30/2025, 5:41 PM