We’re researching unifying portions of our Android...
# koin
a
We’re researching unifying portions of our Android and iOS apps by moving core logic into a KMM library, very early stages of research. Is it possible to use Koin to inject classes from that KMM library into the Android/iOS classes, or would I need to export simple constructors from the KMM module and then define the DI graph inside the Android and iOS applications? (or is this even possible on iOS?)
j
Both is possible
But there are obiovusly some android aspects thats needs to be done in the android module
a
So I could potentially define some sort of repository in the KMM library and then inject it into a view model-type class in the Android application?
j
Yes
a
Fascinating. And this is possible on iOS as well?
j
Yeah, you just need to make sure you actually call startkoin on both platforms
a
Got it. Thanks! I’m sure I’ll be back when I have more questions.