Alex MitrovicBLE & IoT app developer, Android and iOS

Hire · Kotlin Multiplatform

Kotlin Multiplatform developer for apps that share real logic

I've led a startup's rebuild from Flutter to Kotlin Multiplatform and Compose Multiplatform, contributed shared KMP logic to a banking app, and built my own device's app in KMP. Shared where it pays, native where it matters.

A laptop with an Android phone and an iPhone side by side and a sensor between themAndroidiOSSame device

Short answer

What should you share with Kotlin Multiplatform?

Share the logic that must behave the same on both platforms: networking, data models, persistence, business rules, device protocols and connection state. Keep platform APIs that behave differently, such as BluetoothGatt and CoreBluetooth, behind small native implementations, and choose native or Compose Multiplatform UI per project.

Led
Flutter → KMP rebuild at a startup
Shipped
Shared KMP logic in fintech
UI
Compose, SwiftUI or Compose Multiplatform
Also
React Native in production

The split

What to share and what to keep native

Shared in commonMain

  • Data models, validation and business rules.
  • Networking and API clients, persistence and caching.
  • Device protocols: framing, parsing, checksums, OTA chunking.
  • Connection state machines and the GATT operation queue.
  • Tests that run once for both platforms.

Kept native

  • The BLE API itself: BluetoothGatt on Android, CoreBluetooth on iOS.
  • Background execution: foreground services, iOS background modes.
  • Permissions and system dialogs.
  • UI, when native feel matters more than shared screens.

Code

What shared BLE code looks like

Shape of a shared BLE layer
// commonMain: the app talks to one interface
interface BleLink {
    val state: StateFlow<LinkState>
    suspend fun connect(id: DeviceId)
    suspend fun write(char: CharId, bytes: ByteArray)
    fun notifications(char: CharId): Flow<ByteArray>
}

// androidMain: BluetoothGatt behind it, one operation at a time
class AndroidBleLink(context: Context) : BleLink { /* … */ }

// iosMain: CoreBluetooth behind it, with state restoration
class IosBleLink : BleLink { /* … */ }

How a BLE app splits

The protocol, the queue and the device state live in common code and are tested once. Each platform implements a small interface over its own Bluetooth API. The UI only sees StateFlows, so Android and iOS show the same states for the same device.

Libraries such as Kable can cover the platform layer; on some projects writing it directly is simpler. Full write-up: Kotlin Multiplatform for BLE apps.

Migration

Moving an app to Kotlin Multiplatform

From two native apps or from Flutter, the order matters more than the tooling.

  1. 01

    Look at what you have

    Which logic exists, where it lives and how well it's tested, on each platform.

  2. 02

    Move the core first

    Models, networking and protocol code into a shared module, with tests, while the apps keep shipping.

  3. 03

    Switch platform by platform

    Android calls the shared module, then iOS. No big-bang release.

  4. 04

    Decide on UI

    Keep native UI, or move screens to Compose Multiplatform where it saves real time.

FAQ

Questions teams ask

All questions
Is Kotlin Multiplatform ready for production?

Yes. It's stable and used in production apps, and I've shipped KMP code in a startup app and in fintech. The parts to plan carefully are the iOS build setup, Swift interop and which libraries you depend on.

Should we use Compose Multiplatform or native UI?

It depends on the app. Compose Multiplatform saves time when screens are mostly the same; native SwiftUI is worth it when iOS users expect platform-specific behavior. Many apps share logic with KMP and keep native UI, and that's a fine end state.

Can you migrate our Flutter app to Kotlin Multiplatform?

Yes. I led exactly that at a startup: a rebuild from Flutter to Kotlin Multiplatform and Compose Multiplatform, with the architecture, map features, permission flows and backend integrations.

Is KMP a good fit for BLE apps?

Very. The protocol, OTA chunking and connection state are the parts that must behave the same on both platforms, and they're exactly what KMP shares well. The Bluetooth APIs stay native underneath.

Device works, app doesn't?

Tell me about your device and what's breaking. No pitch deck needed. I'll tell you what I'd look at first, even if it isn't hiring me.

Book a free call

Free · NDA on request · reply within 1–2 working days