Kotlin Multiplatform Mobile (KMM) goes Alpha



With native app development, you can build apps that have exceptional performance and intuitive UI/UX. However, the problem arises when you need to target multiple platforms. You end up writing the same thing twice for iOS and Android, which makes native app development expensive, time-consuming, and high maintenance.

Cross-platform mobile app development frameworks such as React Native and Flutter do solve the problem of maintaining multiple codebases for a single app. But, when it comes to writing apps that have complex business logic or need integration with native APIs such as the camera or Bluetooth, they are not the best choices.


Introducing KMM: An SDK to share the business logic code between both iOS and Android versions of your app


KMM is an SDK provided by JetBrains that enables you to share business logic code between iOS and Android versions of your applications. In August this year, KMM went Alpha. With the KMM Plugin for Android Studio, you can write, run, test, and debug shared code in the same IDE.


KMM is built on top of the Kotlin Multiplatform technology. "KMM uses the multiplatform capabilities of Kotlin and includes various tools and features designed to make the end-to-end experience of building mobile cross-platform applications as enjoyable and efficient as possible," JetBrains shared in the announcement.


Behind the scenes, the shared code written in Kotlin is compiled to different output formats for different targets. It is Java bytecode for Android and native binaries for iOS. 


KMM enables you to:


  • Create a new mobile application project with a shared codebase with the Kotlin Multiplatform Mobile Project wizard.
  • Add a new KMM module to your existing project with Kotlin Multiplatform Mobile Module wizard.
  • Run and debug the iOS part of your application on iOS targets directly from Android Studio.


Check out the official announcement by JetBrains to know more. Also, see the KMM developer portal for more resources.








Comments

Post a Comment