Home / Insights / Mobile App Development

Mobile App Development

Kotlin Multiplatform for Sharing Business Logic between iOS and Android: When It Fits and How to Adopt It

Kotlin Multiplatform lets teams keep fully native iOS and Android interfaces while sharing the rules, data handling and networking underneath. This guide explains when that trade is worth it, what to share first, how it changes your team, and how to adopt it without a rewrite.

TopicsMobile App DevelopmentArchitecture and Modernization

Key takeaways

  • Kotlin Multiplatform (KMP) shares compiled Kotlin code across platforms while each app keeps its own native UI; it was declared stable by JetBrains in November 2023 and Google announced official Android support for sharing business logic in May 2024.
  • It fits best when two native apps duplicate substantial, rule-heavy logic such as pricing, validation, offline sync or domain calculations, and when parity bugs between platforms are costing you.
  • Share the layers below the UI first: domain models, validation, networking, persistence and state. Keep SwiftUI and Jetpack Compose interfaces native unless you have a separate reason to share UI.
  • The main costs are organisational: iOS engineers must be able to read, debug and review Kotlin, and build and release pipelines get more complex.
  • Adopt it incrementally, starting with one well-bounded module behind a clear interface, and measure duplicated defects and delivery time before expanding.

Teams that run separate native iOS and Android apps usually do so for good reasons: platform-specific features, performance, or a user experience that feels exactly right on each device. The price is duplication. The same pricing rules, form validation, sync logic and API handling are written twice, tested twice and, sooner or later, behave slightly differently on each platform.

Kotlin Multiplatform offers a middle path: keep the native user interfaces, but write the logic underneath once in Kotlin and use it from both apps. This article is for CTOs, mobile leads and product owners who already have, or plan to build, native apps on both platforms and want to know whether sharing business logic with KMP is worth it. It covers what KMP is and how mature it is as of late 2025, how it compares with the alternatives, what to share, how it affects your team, a staged adoption plan, and the risks to watch.

What Kotlin Multiplatform is, and how mature it is

Kotlin Multiplatform is a JetBrains technology that compiles shared Kotlin code for several targets. On Android, shared code runs as normal Kotlin on the JVM-based runtime. On iOS, it is compiled by Kotlin/Native into a native framework that Swift code calls like any other library. Each app keeps its own entry point, its own UI and its own access to platform APIs.

Three milestones matter for anyone evaluating it:

  • Stability of the core technology. In November 2023 JetBrains announced that Kotlin Multiplatform was stable and ready for production, with the release tied to Kotlin 1.9.20. The announcement noted that some pieces, such as expect/actual classes and direct Kotlin-to-Swift interoperability, were still evolving.
  • Google’s support for sharing business logic. On 14 May 2024, Google announced Android support for KMP, explicitly prioritising the sharing of business logic. Google said its Docs apps on Android, iOS and the web use KMP for shared business logic, and it began adding KMP support to Jetpack libraries.
  • Shared UI as an option. In 2025 JetBrains released Compose Multiplatform 1.8.0, declaring Compose for iOS stable. That makes sharing UI possible too, but it is a separate decision from sharing logic.

Google’s Kotlin Multiplatform page for Android developers lists KMP support across several Jetpack libraries, including DataStore, Lifecycle, ViewModel, Paging and Room, and describes platform tiers: Android, JVM and iOS are tier 1, fully tested in continuous integration, while targets such as watchOS and tvOS are lower tiers. That tiering is a useful signal: the Android and iOS phone path is well supported, while other targets need more caution.

How KMP compares with the alternatives

KMP is one of several ways to reduce duplication across iOS and Android. The question is not which technology is best in general, but which trade-off suits your product and team.

ApproachWhat is sharedUIBest fitMain trade-offs
Two fully native appsNothing in code; backend, API contracts and design system onlySwiftUI or UIKit; Jetpack Compose or ViewsApps where platform features dominate and logic is thinDuplicated logic and tests; parity drift
Native apps plus KMP for logicDomain rules, validation, networking, persistence, stateFully native on each platformRule-heavy apps that must feel nativeKotlin skills needed on iOS team; more complex builds
KMP plus Compose MultiplatformLogic and most UIShared Compose UI, with native screens where neededTeams strong in Kotlin wanting maximum sharingLess native feel by default; larger iOS binary
Flutter or React NativeLogic and UI in Dart or JavaScript/TypeScriptFramework-rendered or bridged native componentsNew apps prioritising one codebase and speedPlatform features via plugins; different skills from native teams
Logic moved to the backendRules live on the server; apps stay thinNativeOnline-only apps with simple clientsDoes not help offline; more server calls and latency

Two points are often overlooked. First, moving logic to the backend is a legitimate alternative to KMP for online-only apps, and is simpler to run. Second, Compose Multiplatform is not free of cost on iOS: JetBrains’ own release notes state it adds about 9 MB to an iOS app compared with an equivalent SwiftUI app. For broader context on native versus cross-platform frameworks, see our guide on choosing native or cross-platform for your next mobile app.

When sharing business logic is worth it

KMP pays off when the logic you share is substantial, changes often and must behave identically on both platforms. It adds overhead when the shared part is thin.

Strong signals for KMP

  • Rule-heavy domains: pricing and discount calculation, eligibility rules, insurance or finance calculations, scheduling, or clinical and care workflows where both apps must reach the same answer.
  • Offline-first behaviour: local storage, conflict resolution and sync queues are complex, bug-prone and painful to write twice. Our article on offline-first apps for field teams describes what that layer involves.
  • Recurring parity bugs: defects that appear on one platform but not the other because the logic was implemented differently.
  • An existing Kotlin-heavy Android team that can own the shared module.

Signals that KMP may not help

  • The apps are mostly UI over a server API, with little client-side logic.
  • The iOS team is small and has no appetite to work in Kotlin.
  • Most effort goes into platform features (camera, Bluetooth, health data, widgets) rather than shared rules.
  • The apps are being replaced within a year or two.

For example, a regional insurer with native apps that calculate quotes offline, validate long claim forms and sync attachments might reasonably share all of that through KMP while keeping native screens. A restaurant booking app whose clients mostly display server responses would gain little and could keep its logic on the backend.

A quick scoring exercise

  1. List the main modules in both apps and estimate, roughly, how much of each is duplicated logic versus platform UI.
  2. Pull the last six months of defects and tag those caused by inconsistent behaviour between platforms.
  3. Note which modules change most often in your roadmap.
  4. Candidates for sharing are modules that score high on all three: duplicated, defect-prone and frequently changed.

What to share and what to keep native

The most successful KMP adoptions draw a clear line: shared code owns the rules and data, native code owns the experience and platform integration.

LayerShare in KMP?Notes
Domain models and business rulesYesThe highest-value candidate; easy to unit test in common code
Input validationYesKeeps error rules identical; messages can be localised natively or shared
Networking and API clientsUsuallyCommon libraries handle HTTP and serialisation; keep authentication flows coordinated with each platform’s secure storage
Local persistence and syncUsuallyValuable for offline apps; choose libraries with solid iOS support
Presentation state (view models)SometimesPossible with shared ViewModel support; adds coupling between UI teams
UI screensNot by defaultKeep SwiftUI and Compose unless you deliberately adopt Compose Multiplatform
Platform services (camera, Bluetooth, payments, notifications)No, or via interfacesDefine an interface in shared code; implement natively on each platform

Design the boundary for Swift developers

The shared module’s public API is what iOS engineers live with every day, so design it deliberately:

  • Expose a small set of use-case functions or repositories rather than many internal classes.
  • Prefer simple data types at the boundary; complex Kotlin generics and sealed hierarchies can be awkward from Swift.
  • Agree how asynchronous results and errors cross the boundary, and wrap them in Swift-friendly helpers if needed.
  • Document the API and keep a sample iOS integration in the repository.

What changes for your team and delivery process

The technical risk of KMP is now modest for the core phone targets. The organisational change is larger, and it is where adoptions most often struggle.

Skills and ownership

  • iOS engineers need working Kotlin. They do not have to be experts, but they must be able to read, debug and review shared code. Without that, the iOS team feels like a consumer of someone else’s library and frustration builds.
  • A clear owner for the shared module. Usually a small group drawn from both platforms, with code review from each.
  • Shared definition of done. A change to shared code is not done until both apps build and pass their tests against it.

Build and release

  • Decide how the iOS app consumes the shared framework: built from source in the same repository, or published as a versioned package. A single repository is simpler for small teams; versioned packages suit separate release cadences.
  • Expect longer CI pipelines, because Kotlin/Native compilation for iOS must run on macOS build machines.
  • Keep store releases independent. Sharing logic does not mean releasing both apps on the same day.

Testing

Shared code is a gift to QA: business rules can be unit tested once in common code and the same tests run for each target. You still need platform tests for the UI and integration, and end-to-end tests on real devices. Budget for both. If your two native apps already have separate budgets, our article on cost drivers for separate native iOS and Android apps shows where shared logic can and cannot reduce cost.

A staged adoption plan

KMP’s practical advantage is that it can be introduced gradually into existing native apps. Google’s own announcement emphasised that you do not need to rewrite an app to start sharing code. A staged plan keeps risk contained.

  1. Assess (two to three weeks, illustrative). Map modules, score candidates as described above, confirm the iOS team’s willingness and agree success measures, such as fewer parity defects or shorter time to ship a rule change on both platforms.
  2. Set up the foundation. Create the shared module, configure builds on both platforms, set up CI including macOS runners, and agree coding conventions for the Swift-facing API.
  3. Pilot one module. Choose a bounded, logic-heavy area, for example validation for a key form or a pricing calculation. Implement it in shared code with thorough unit tests and integrate it into both apps behind the existing interfaces.
  4. Run it in production. Release both apps with the shared module, monitor crashes and performance, and gather feedback from both platform teams.
  5. Review against your measures. If defects, effort or team friction have not improved, stop and keep the pilot module or revert it. If they have, plan the next modules.
  6. Expand deliberately. Move networking, persistence and sync next, one module at a time. Revisit shared UI only if there is a separate business case.

If your native apps are older, it may make sense to combine this with UI modernisation; our guide on moving to SwiftUI and Jetpack Compose without a rewrite explains how to sequence that work so you do not change everything at once.

Risks, costs and a decision checklist

Risks to plan for

  • iOS developer experience. Debugging across the Kotlin/Swift boundary and reading Kotlin stack traces in iOS crash reports takes practice. Set up symbolication and crash reporting for the shared framework early.
  • Library maturity. Not every Kotlin library supports iOS targets. Check each dependency’s iOS support before committing, and prefer libraries with active maintenance.
  • Interop rough edges. JetBrains noted at the stable release that direct Kotlin-to-Swift interoperability was still being developed, so some Kotlin features translate awkwardly to Swift. Keep the boundary simple.
  • Build times. iOS compilation adds time to local builds and CI. Measure it during the pilot.
  • Coupling. A shared module can become a bottleneck if both teams wait on it. Clear ownership and versioning help.
  • Lower-tier targets. If you also plan a smartwatch or TV app, check support levels carefully; Google’s tiering places watchOS and tvOS below Android and iOS.

Where the costs sit

Expect an upfront investment in setup, CI and training, then savings that depend on how much logic you actually share and how often it changes. The savings come mainly from writing and testing rules once and from fewer parity defects, not from halving the mobile team; UI and platform work remain per platform.

Decision checklist

  1. Both apps are native and expected to live for several more years.
  2. A meaningful share of client code is duplicated business logic, not UI.
  3. Parity defects or slow dual implementation are measurable problems.
  4. The iOS team is willing to learn and review Kotlin.
  5. Dependencies you need have reliable iOS support.
  6. CI can run macOS builds for the shared module.
  7. You have a bounded pilot module and agreed success measures.

PoliteTech’s native mobile development team builds iOS apps in Swift and SwiftUI and Android apps in Kotlin and Jetpack Compose, with a shared backend and coordinated testing, and can mix shared modules with native code where the case supports it. A technical requirements review is the usual first step.

Frequently asked questions

Is Kotlin Multiplatform production-ready?

For sharing logic between Android and iOS, yes. JetBrains declared KMP stable in November 2023 and Google announced official Android support for sharing business logic in May 2024. Check the support level of any less common targets and third-party libraries you rely on.

Do our iOS developers have to learn Kotlin?

They need to read, debug and review it, even if Android engineers write most of the shared code. Teams where iOS developers treat the shared module as a black box tend to struggle, so plan training time into the pilot.

Can we add KMP to existing native apps?

Yes. KMP is designed for incremental adoption. Start with one well-bounded module, integrate it behind existing interfaces in both apps and expand only if the pilot meets agreed measures.

Should we share the UI too with Compose Multiplatform?

Not by default. Sharing logic and sharing UI are separate decisions. Compose for iOS became stable in 2025, but native SwiftUI interfaces remain the safer choice when platform feel matters. Consider shared UI only with a clear business case.

Will KMP halve our mobile development cost?

Unlikely. UI, platform integration and store releases remain per platform. Savings come from writing and testing shared rules once and from fewer parity defects, and depend on how much logic you actually share.

How is KMP different from Flutter or React Native?

KMP shares compiled Kotlin logic while each app keeps its native UI. Flutter and React Native share both logic and UI through their own frameworks and languages. KMP suits teams that want native interfaces; the others suit teams that want one codebase for everything.

Sources and methodology

Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.

  1. JetBrains Kotlin Blog: Kotlin Multiplatform Is Stable and Production-Ready (November 2023) — accessed 9 November 2026. KMP stability announcement, Kotlin 1.9.20, and items still in progress such as Swift interop.
  2. Android Developers Blog: Android support for Kotlin Multiplatform (14 May 2024) — accessed 9 November 2026. Google’s focus on sharing business logic, Google Docs use of KMP and Jetpack library support.
  3. Android Developers: Kotlin Multiplatform — accessed 9 November 2026. Jetpack libraries with KMP support and platform tiers for Android, iOS, watchOS and tvOS.
  4. JetBrains Kotlin Blog: Compose Multiplatform 1.8.0 released (May 2025) — accessed 9 November 2026. Compose for iOS stability and the stated iOS app size overhead.

Could shared Kotlin logic cut duplication in your native apps?

We can review your iOS and Android codebases, identify modules worth sharing and outline a low-risk pilot.