You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Kotlin Multiplatform with Koin to develop a desktop app and wonder why I have to use the get function from KoinJavaComponent package that takes a Java class as an argument:
import org.koin.java.KoinJavaComponent.get
...
val prefs = get<AppPrefs>(AppPrefs::class.java)
I was hoping I could use the standard org.koin.core.component.get without a parameter but that doesn't seem to get resolved in my module targeting Java Desktop. Could someone explain to me why that is, please?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using Kotlin Multiplatform with Koin to develop a desktop app and wonder why I have to use the
get
function fromKoinJavaComponent
package that takes a Java class as an argument:I was hoping I could use the standard
org.koin.core.component.get
without a parameter but that doesn't seem to get resolved in my module targeting Java Desktop. Could someone explain to me why that is, please?Beta Was this translation helpful? Give feedback.
All reactions