https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
y

yousuf.haque

09/10/2018, 12:21 AM
@egorand I’m assuming you weren’t able to use dagger for the cross platform stuff, right?
g

gildor

09/10/2018, 1:14 AM
Annotation processing available only on JVM and dagger generates java code, so it’s impossible to use on multiplatform
e

egorand

09/10/2018, 1:51 AM
If you're curious about "Ok Multiplatform" specifically, it was about migrating Okio to Kotlin multiplatform, hence dependency injection wasn't in scope. But yeah, codegen-based DI probably doesn't apply to JS and Native. I haven't used Koin (which isn't DI strictly speaking), but I guess it can be extended to support multiple platforms.
t

tapchicoma

09/11/2018, 1:26 PM
https://github.com/InsertKoinIO/koin/issues/120 - issue for Koin JS support. Theoretically should be possible, but for now several Java classes are still used in
koin-core
.
👍 2