Joe
10/26/2020, 5:26 PMclass MainActivity() : AppCompatActivity(), DIAware {
override val di by di()
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
}
}
My application:
class PromptsApplication: Application(), DIAware {
override val di by DI.lazy { }
}
The exception:romainbsl
10/26/2020, 6:43 PMJoe
10/27/2020, 8:24 AMimport org.kodein.di.DI
import org.kodein.di.DIAware
romainbsl
10/27/2020, 1:41 PMimport org.kodein.di.android.di
? by di()
is part of a specific gradle module.Joe
10/29/2020, 1:28 PMromainbsl
10/29/2020, 1:29 PMclosestDI()
function, it’s the same, it just prevents from this issue.