Mobile app development – Kotlin multiplatform module “KMM” - One more way to achieve code reusability.
Satish Panpatte
Director @ UBS. Full-stack Engineering | Java | Azure | React | Android | iOS
There are many ways to develop a mobile application. There is a new way that I came across lately, so thought of writing my view on that.
Let’s take a quick look at existing ways to develop a mobile app
1.??Native
This is still popular wherein we write the code in Swift for iOS and in Kotlin for Android. This is popular because of its performance and kind of risk-free. But cost-wise need to maintain two code bases separately for 2 platforms (Android & iOS)
2.??Cross-platform
Many platforms have emerged to write the code in one language and generate the platform-specific application. React Native & Flutter are popular. These are now stable platforms, and many applications are being built using this. The learning curve is a downside with these platforms.
3.??Hybrid
Don’t see much traction for these platforms. (E.g., Ionic) This could be because these platforms use web technologies and run the application in WebView shell. Mostly these platforms are declining because of performance-related issues.
领英推荐
So, what’s new now?
Recently I came across the “Kotlin multiplatform module” (KMM) concept.
How does it work?
Write the complete code in the Kotlin programming language. Android studio can be used as an IDE and add Kotlin multiplatform plugin to it that’s it, ready to go.
But this could be useful for new applications what about the existing app?
Kotlin multiplatform module (KMM) library
Let’s take an example that you are planning to add a new feature into the existing app and want to use KMM then?
What are the practical advantages of this platform?
As a POC it’s worth giving a try on the “Kotlin multiplatform module” approach.