mohsenoid
06/23/2017, 9:07 AM@field:[Inject ApplicationContext]
lateinit var context: Context
but lateinit
does not work with primitive data types like Boolean
, how can I do something like this?
@field:[Inject Named(QualifiersNames.IS_DEMO)]
lateinit var isDemo: Boolean = false
when I remove lateinit
from it I get this error Dagger does not support injection into private fields
mohsenoid
06/23/2017, 6:23 PM