Kotlin mobile SDK shares code across Android, iOS

Kotlin mobile SDK shares code across Android, iOS

Kotlin Multiplatform Mobile plug-in allows developers to write, run, and debug shared code in Android Studio

Credit: Google

JetBrains has released an alpha version of Kotlin Multi-platform Mobile (KMM), an SDK that enables developers to use the same business logic in both Android and iOS mobile applications.

KMM draws on the muliti-platform capabilities of Kotlin to streamline the end-to-end experience of building cross-platform mobile applications. The SDK is enabled by a preview of a KMM plug-in for the Android Studio IDE that allows developers to write, run, and debug shared code in the same IDE.

JetBrains said Android and iOS versions of an application can have a lot in common but also significant differences, particularly in the UI. Differences can range from subtle variations in scrolling behaviour to divergent navigation logic.

However, because application business logic including data management, analytics, and authentication can be identical, it’s natural to share some parts of an application across platforms while keeping other parts separate.

KMM offers flexibility while retaining native programming benefits. A single codebase can be used for business logic while platform-specific logic can be written when necessary, whether for a native UI or to work with platform-specific APIs.

Shared code written in Kotlin is compiled to JVM bytecode with Kotlin/JVM and to native binaries via Kotlin/Native. Thus, KMM business modules can be used like any other mobile library. With the plug-in, developers do not need to switch IDEs and have Apple’s Xcode running to ensure that code works properly on both platforms.

Companies already have saved time and effort sharing code between platforms, such as Quizlet and Fastwork, JetBrains said. The company has set up a KMM developer portal and published a guide on integrating KMM into existing projects.

Follow Us

Join the newsletter!


Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.

Tags GoogleAndroidios



Join key decision-makers within Environmental, Social, and Governance (ESG) that have the power to affect real change and drive sustainable practices. SustainTech will bridge the gap between ambition and tangible action, promoting strategies that attendees can use in their day-to-day operations within their business.

EDGE 2023

EDGE is the leading technology conference for business leaders in Australia and New Zealand, built on the foundations of collaboration, education and advancement.


ARN has celebrated gender diversity and recognised female excellence across the Australian tech channel since first launching WIICTA in 2012, acknowledging the achievements of a talented group of female front runners who have become influential figures across the local industry.

ARN Innovation Awards 2023

Innovation Awards is the market-leading awards program for celebrating ecosystem innovation and excellence across the technology sector in Australia.

Show Comments