
We get Android studio as IDE, and it is mature and comes with a whole lot of features. (Ideally business logic shall go in API but if API model is not possible due to some constraints, then KMM could be the option) Business logic that is independent of the platform can be pushed to the KMM library. Don’t need to convert the existing app, creating a common KMM library and integrating with the existing app is quite possible. As this is native no performance issues. In the case of React native, both Android & iOS developers have to learn the JavaScript framework. Kotlin is the language so no learning curve for Android developers.
What are the practical advantages of this platform?
In the future, if changes are required then only library code will change which is common for both Android & iOS. Once done and tested then export the iOS / Android specific libraries from this library project and add them as a dependency in our existing application. The additional advantage is if platform-specific code is to be added to the library then this is easy, KMM allows that. Write the complete code in this library project. Create a KMM project as a “Library” (Android studio allows this to create KMM library post-KMM plugin installation). Let’s take an example that you are planning to add a new feature into the existing app and want to use KMM then? Kotlin multiplatform module (KMM) library Android studio can be used as an IDE and add Kotlin multiplatform plugin to it that’s it, ready to go.īut this could be useful for new applications what about the existing app?
Write the complete code in the Kotlin programming language. Recently I came across the “Kotlin multiplatform module” (KMM) concept.