Join Slack
Powered by
Can you inject into properties of an `object`? ```...
# dagger
a
arekolek
08/22/2017, 10:31 AM
Can you inject into properties of an
object
?
Copy code
object Foo { @Inject lateinit var context: Context }
The
context
field in this case is static (in Java) and “Dagger does not support injection into static fields”.
2
Views
Open in Slack
Previous
Next