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

Raymond Zeng

08/19/2022, 12:45 AM
Hey folks, our team is looking into DI solutions for multiplatform, with a focus on compile-time solutions (and Koin as a fallback). We've come across Kotlin-Inject and Kinzhal - are there any other libraries that are currently out there that we should take a look into?
CC @Ryan Simon
i

itnoles

08/19/2022, 1:38 AM
Kotlin-Inject doesn't looks like muliplatform because kotlin-inject-compiler using only jvm.
j

jw

08/19/2022, 1:44 AM
the kotlin compiler only runs on the jvm
r

Ryan Simon

08/19/2022, 2:52 AM
I think what we're looking for is something that can manipulate the IR between platforms
j

jw

08/19/2022, 2:52 AM
that's what kotlin-inject does
r

Ryan Simon

08/19/2022, 2:53 AM
curious to hear the opinions of other multiplatform devs on what solution has worked well for them
k

KamilH

08/19/2022, 4:16 AM
I strongly recommend kotlin-inject, it works great in my project and it has nice API. There is a dedicated channel (#kotlin-inject) where library’s author is very active. About alternatives - there is also PopKorn, however it hasn’t had any activities recently, so I don’t know if it’s still active
p

Paul Woitaschek

08/19/2022, 1:03 PM
We use kotlin inject and did have almost no issues with it. Quite the opposite as @evant is super helpful and open for feedback
9 Views