Menu
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!

Or

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

Events

Featured

Slideshows

Meet the Reseller News 30 Under 30 Tech Awards 2020 winners

Meet the Reseller News 30 Under 30 Tech Awards 2020 winners

This year’s Reseller News 30 Under 30 Tech Awards were held as an integral part of the first entirely virtual Emerging Leaders​ forum, an annual event dedicated to identifying, educating and showcasing the New Zealand technology market’s rising stars. The 30 Under 30 Tech Awards 2020 recognised the outstanding achievements and business excellence of 30 talented individuals​, across both young leaders and those just starting out. In this slideshow, Reseller News honours this year's winners and captures their thoughts about how their ideas of leadership have changed over time.​

Meet the Reseller News 30 Under 30 Tech Awards 2020 winners
Reseller News Exchange Auckland: Beyond the myths — how partners can master cloud security

Reseller News Exchange Auckland: Beyond the myths — how partners can master cloud security

This exclusive Reseller News Exchange event in Auckland explored the challenges facing the partner community on the cloud security frontier, as well as market trends, customer priorities and how the channel can capitalise on the opportunities available. In association with Arrow, Bitdefender, Exclusive Networks, Fortinet and Palo Alto Networks. Photos by Gino Demeer.

Reseller News Exchange Auckland: Beyond the myths — how partners can master cloud security
Reseller News welcomes industry figures at 2020 Hall of Fame lunch

Reseller News welcomes industry figures at 2020 Hall of Fame lunch

Reseller News welcomed 2019 inductees - Leanne Buer, Ross Jenkins and Terry Dunn - to the fourth running of the Reseller News Hall of Fame lunch, held at the French Cafe in Auckland. The inductees discussed the changing face of the IT channel ecosystem in New Zealand and what it means to be a Reseller News Hall of Fame inductee. Photos by Gino Demeer.

Reseller News welcomes industry figures at 2020 Hall of Fame lunch
Show Comments