Hi All, I have an abstract class and I need injec...
# dagger
k
Hi All, I have an abstract class and I need inject LruCache instance on each anonymous instance. anyone can help me? I am using Hilt with Kotlin
on this Way I got a error, but when I inject the cache on ViewModel for example it’s work without exceptions
j
I should avoid not using constructor
then you can just
@Binds
that
abstract class
with the implementation in the Dagger module
k
ok I will check that
@Binds