Skip to content
Commitwise
Menu

Kotlin Multiplatform

Also called: KMP

Kotlin technology for sharing code between Android, iOS and other platforms while keeping native apps and, optionally, native UI.

Definition

Shared code lives in commonMain and compiles to JVM bytecode for Android and to a native framework for iOS. Teams usually share models, business rules, networking and storage. Swift calls the shared code through an Objective-C bridge, so exported APIs need declared exceptions and adapters for Flows and sealed classes.

In practice

The shopping-list merge rule and the sync engine are written once in a shared module used by both apps.

Learn it in context

Lessons that use this term.

Related terms

Esc

Type to search the whole site.