Cody Engel
08/29/2019, 2:57 PM@Inject constructor(...)
in Koin? I’d like to avoid defining every dependency in modules/components but unsure if that’s possible.Casey Brooks
08/29/2019, 2:59 PMkoin-core-ext
artifact. There are additional DSL functions which inject the primary constructor via reflection (don't need the @Inject
annotation) https://insert-koin.io/docs/2.0/documentation/reference/index.html#_extensions_experimental_featuresMarko Mitic
08/29/2019, 3:00 PMCody Engel
08/29/2019, 3:02 PMCody Engel
08/29/2019, 3:04 PMMarko Mitic
08/29/2019, 3:05 PMMarko Mitic
08/29/2019, 3:06 PMMarko Mitic
08/29/2019, 3:07 PMCasey Brooks
08/29/2019, 3:07 PMCody Engel
08/29/2019, 3:09 PMjavax
Inject annotation, I think it minimized the amount of ceremony.
I agree though, Koin makes it far easier to register things and get up and running.Casey Brooks
08/29/2019, 3:14 PMarnaud.giuliani
08/29/2019, 3:35 PMkoin-android-ext
or koin-androidx-ext
if you want automatic constructor injection for ViewModel