


If you are making an injection of a class that is purely in a shared module and does not have anything to do with the platforms, you should make it in the common_main. For example, any helper class.Ģ. But, before we start getting into the coding implementation, there are two things to remember:ġ. Koin provides us with an all-in kotlin library to use it in our shared module to create injections that can be used by both Android and iOS platforms, and also with desktop, if you go with KMP (Kotlin MultiPlatform). Now, let’s get to implementing this into KMM. If not, you can check this article to get an idea of how things work with koin in android. If you are here, then I will assume that you already have an idea of dependency injection and the koin. This is a follow-up to our previous article about Getting Started with KMM, so if you haven’t read that, I would recommend checking it out first to get an idea of how things work in KMM.
