Hi anyone assist me in understanding the differenc...
# koin
t
Hi anyone assist me in understanding the difference between
org.koin.android.ext.android.inject
&
org.koin.core.component.inject
please? and which one i should be using in my android koin 4 application. does it matter which one i use?
a
org.koin.android.ext.android.inject
is extending "org.koin.core.component.inject" to be wired on Android API to retrieve the right context
"org.koin.android.ext.android.inject" is use in Android world globally, to provide extensions
t
...so does it matter which one i employ when injecting into my android activities and fragments?
if i use
org.koin.android.ext.android.inject
i do not need to add
KoinComponent
a
extensions are naturally detected by Android Studio. You don't need KoinComponent for Activity & Fragment.
👍 1