Kotlin Multiplatform Mobile (KMM) is an SDK designed to simplify creating cross-platform mobile applications. With the help of KMM, you can share common code between iOS and Android apps and write platform-specific code only where itโs necessary. For example, to implement a native UI or when working with platform-specific APIs.
๐ผ KMM website
๐ KMM blog
๐บ KMM YouTube
๐ KMM Documentation
๐คฉ KMM Samples
๐ Web Wizard
๐ KMM Book
๐ Kotlin Multiplatform Mobile plugin for Android Studio
The Kotlin Multiplatform Mobile (KMM) plugin helps you develop applications that work on both Android and iOS.
๐ Kotlin Multiplatform Mobile plugin for AppCode
The Kotlin Multiplatform Mobile (KMM) plugin for AppCode helps you develop applications for Android and iOS using the unified Gradle project model.
๐ CocoaPods integration
Kotlin/Native provides integration with the CocoaPods dependency manager. You can add dependencies on Pod libraries as well as use a multiplatform project with native targets as a CocoaPods dependency (Kotlin Pod).
๐ Swift Package integration
This gradle plugin provides two-way interoperability between Kotlin dependencies and Kotlin-based Swift Package Multiplatform.
๐ Carthage integration
Adds support for integrating Carthage dependencies into a KMM project.
๐ MOKO KSwift gradle plugin
KSwift it's gradle plugin for generation Swift-friendly API for Kotlin/Native framework.
๐ CompleteKotlin gradle plugin
Gradle Plugin to enable auto-completion and symbol resolution for all Kotlin/Native platforms.
๐ BuildKonfig gradle plugin
BuildConfig for Kotlin Multiplatform Project
Plugin to facilitate debugging iOS applications using Kotlin Native in Xcode. Defines Kotlin files as source code, with basic highlighting. Allows you to set breakpoints and includes llvm support to view data in the debug window. Xcode does not officially support custom language definitions, but they also don't explicitly block them.
๐ Dokka documentation generation tool
Dokka is a documentation engine for Kotlin, performing the same function as javadoc for Java. Just like Kotlin itself, Dokka fully supports mixed-language Java/Kotlin projects. It understands standard Javadoc comments in Java files and KDoc comments in Kotlin files, and can generate documentation in multiple formats including standard Javadoc, HTML and Markdown.
Napier - logger
Napier is a logger library for Kotlin Multiplatform. It supports for the Android, Darwin(iOS, macOS, watchOS, tvOS), JVM, JavaScript. Logs written in common module are displayed on logger viewer of each platform.
Kermit - logger
Kermit is a Kotlin Multiplatform logging utility with composable log outputs. The library provides prebuilt loggers for outputting to platform logging tools such as Logcat and NSLog.
Kodein-Log - logger
Kodein-Log is a lightweight Kotlin/Multiplatform logging library with a simple API, that works on JVM, Android, JavaScript, iOS, as well as for all Kotlin/Native targets.
Klogger - logger
Klogger is a logger library for multiplatform Kotlin. This library provides a simple interface to do logging into suitable outputs like javascriptโs console, or stdout/stderr.
Cabret - logger
This is an Kotlin Library that enables Annotation-triggered method call logging for Kotlin Multiplatform.
KmLogging - logger
Kotlin multiplatform logging. High performance, composable and simple to use.
Kydra Log - logger
Kotlin Multiplatform Library that allows to write logs in common module.
Ktor - http client
Ktor includes a multiplatform asynchronous HTTP client, which allows you to make requests and handle responses, extend its functionality with plugins (formerly known as features), such as authentication, JSON serialization, and so on.
Apollo GraphQL - GraphQL client
A strongly-typed, caching GraphQL client for the JVM, Android, and Kotlin multiplatform.
kgql - GraphQL Document wrapper generator
GraphQL Document wrapper generator for Kotlin Multiplatform Project. Currently, available for JVM/Android/iOS
WebRTC KMP - WebRTC client
WebRTC Kotlin Multiplatform SDK
Krossbow - WebSocket client
A coroutine-based Kotlin multi-platform WebSocket client and STOMP 1.2 client over web sockets.
MOKO SocketIo - Socket.IO implementation
This is a Kotlin Multiplatform library that provides real-time, event-based communication for iOS and Android.
rsocket - RSocket Kotlin multi-platform implementation
RSocket is a binary protocol for use on byte stream transports such as TCP, WebSockets and Aeron.
Multiplatform-Settings - Key-Value preferences
This is a Kotlin library for Multiplatform apps, so that common code can persist key-value data
abc-kmm-shared-storage - Key-Value storage
A local storage management library for Kotlin Multiplatform Mobile iOS and Android
KVault - secure key-value storage
It acts as an iOS Keychain wrapper and implements encrypted SharedPreferences for Android.
SQLDelight - SQLite database
SQLDelight generates typesafe kotlin APIs from your SQL statements. It verifies your schema, statements, and migrations at compile-time and provides IDE features like autocomplete and refactoring which make writing and maintaining SQL simple.
Realm - NoSQL database
Realm is a mobile database that runs directly inside phones, tablets or wearables. This repository holds the source code for the Kotlin SDK for Realm, which runs on Kotlin Multiplatform and Android.
cache4k - In-memory Cache
Provides a simple in-memory key-value cache for Kotlin Multiplatform, with support for time-based (expiration) and size-based evictions.
SQLiter - SQLite driver
SQLiter is a SQLite driver for Kotlin Native, currently Apple and Windows variants. It is designed to serve as a driver to power user-friendly libraries rather than something to use directly. Currently SQLiter powers the SQLDelight library on native clients.
Kodein-DB - NoSQL database
Kodein-DB is a Kotlin/Multiplatform embedded NoSQL database that works on JVM, Android, Kotlin/Native and iOS. It is suited for client or mobile applications.
MOKO Permissions - System permissions manager
Kotlin Multiplatform library for providing runtime permissions on iOS & Android
abc-kmm-notifications - Notification Manager
Remote Notification Manager for Kotlin Multiplatform Mobile
abc-kmm-Location - Location manager
Location Service Manager for Kotlin Multiplatform Mobile iOS and android
MOKO Geo - Location manager
Geolocation access for mobile (android & ios) Kotlin Multiplatform development
MOKO Biometry - System biometry manager
This is a Kotlin Multiplatform library that provides authentication by FaceId and TouchId (Fingerprint)
MOKO Media - System media manager
This is a Kotlin Multiplatform library that provides media picking in common code (photo/video) and video player controls.
MOKO Maps - Google/Mapbox maps manager
This is a Kotlin Multiplatform library that provides controls of maps to common code.
Kable - Coroutines-powered API for interacting with Bluetooth Low Energy devices.
Kotlin Asynchronous Bluetooth Low Energy provides a simple Coroutines-powered API for interacting with Bluetooth Low Energy devices.
Blue-Falcon - A Bluetooth kotlin multiplatform library for iOS and Android
A Bluetooth "Cross Platform" Kotlin Multiplatform library for iOS, Android, MacOS, Raspberry Pi and Javascript. Bluetooth in general has the same functionality for all platforms, e.g. connect to device, fetch services, fetch characteristics.
Connectivity status - Multiplatform connectivity status
This Kotlin multiplatform mobile utility library allows monitoring the internet connection status of the device. You can use it from shared code as well as directly from Android or iOS code.
Kontrol - Debug menu
A Kotlin Multiplatform library for creating debug menu.
Koin - DI framework
A pragmatic lightweight dependency injection framework for Kotlin developers. Koin is a DSL, a light container and a pragmatic API
Kodein - DI framework
Kodein-DI is a very simple and yet very useful dependency retrieval container.
DI.kt - DI for kotlin multiplatform
Simple DI with compile-time dependency graph validation for kotlin multiplatform. It uses IR to create method's bodies with dependency injection.
PopKorn - DI framework
PopKorn is a simple, powerful and lightweight Kotlin Multiplatform Dependency Injector. It doesn't need any modules or components, just use it without writing a single extra file! It supports AND, IOS, JVM, JS and NATIVE.
MVI Kotlin - MVI framework
MVIKotlin is a Kotlin Multiplatform framework that provides a way of (not only) writing shared code using MVI pattern. It also includes powerful debug tools like logging and time travel.
Orbit MVI - MVI framework
Orbit is a Redux/MVI-like library for KMM, targetting Android and iOS.
Redux Kotlin - Redux framework
Redux implementation for Kotlin (supports multiplatform JVM, native, JS, WASM)
CoRed - Opinionated Redux-like implementation
CoRed is Redux-like implementation that maintains the benefits of Redux's core idea without the boilerplate. No more action types, action creators, switch statements or complicated setup. It is Kotlin and it has coroutine supported right out-of-the-box.
Flywheel - Redux for Kotlin Multiplatform
A simple and predictable state management library inspired by Redux for Kotlin Multiplatform using the concepts of actors.
FlowRedux - Statemachine library with nice DSL
Building async. running Kotlin Multiplatform state machine made easy with a DSL and coroutines.
Mobius.kt - Mobius Framework
Kotlin Multiplatform Mobius implementation.
MOKO MVVM - MVVM framework
This is a Kotlin Multiplatform library that provides architecture components of Model-View-ViewModel for UI applications. Components are lifecycle-aware on Android.
Oolong - MVU for Kotlin Multiplatform
Oolong is an Elm inspired Model-View-Update (MVU) implementation for Kotlin multiplatform.
Summer - Share ViewModels between iOS, Android and Web apps
Summer is a presentation level library with kotlin-multiplatform support. It can be used to share viewModels between iOS, Android and Web apps. Summer does not use code generation and thus have not significant effort on compilation time and odd build-time errors. Project aims to have out-of-box support of Android Framework, Jetpack Compose, UIKit and SwiftUI without any adapters and platform-specific limitations.
Premo โ Presentation Model (aka View Model) and Navigation
Premo is a Kotlin Multiplatform library that helps to implement the Presentation Layer and share it on iOS, Android, Desktop and Web. Focus on writing logic instead of solving common and boring UI related issues: lifecycle, persistence, navigation, etc.
Decompose - componentization and navigation
Decompose is a Kotlin Multiplatform library for breaking down your code into lifecycle-aware business logic components (aka BLoC), with routing functionality and pluggable UI (Jetpack Compose, Android Views, SwiftUI, JS React, etc.)
multiplatform-paging - Pagination library for KMM
A Kotlin Multiplatform library for pagination.
MOKO Crash Reporting - reporting to Crashlytics
Fatal and Non-Fatal reporting to Crashlytics for Kotlin Multiplatform Mobile
CrashKiOS - Crash reporting for Kotlin/Native iOS applications
Thin library that provides symbolicated crash reports for Kotlin code on iOS.
abc-kmm-analytics-tools - Analytics Tools
Automatically tracking and sending events of screen view and capture
Kotest - test framework
Powerful, elegant and flexible test framework for Kotlin with additional assertions, property testing and data driven testing
MockingBird - test framework
A Koltin multiplatform library that provides an easier way to mock and write unit tests for a multiplatform project
Mockative - Mocking with KSP
Mocking for Kotlin/Native and Kotlin Multiplatform using the Kotlin Symbol Processing API (KSP)
MocKMP - Mocking with KSP
A Kotlin/Multiplatform Kotlin Symbol Processor that generates Mocks & Fakes.
KLIP - Snapshot ((c|k)lip) manager for tests.
Kotlin Multiplatform snapshot ((c|k)lip) manager for tests. Automatically generates and asserts against a persistent Any::toString() representation of the object until you explicitly trigger an update. Powered by kotlin compiler plugin to inject relevant keys and paths.
Libsodium - Libsodium bindings for Kotlin Multiplatform
Libsodium bindings project uses libsodium c sources and libsodium.js to provide a kotlin multiplatform wrapper library for libsodium.
Krypto - Pure Kotlin cryptography library
SecureRandom, Hash (MD5/SHA1/SHA256), AES
cryptohash - A set of cryptographic (and not so cryptographic) hashing functions
xxHash, Blake, HMAC, Keccak, MD5, SHA, etc
murmurhash - library for hashing using MurmurHash
Kotlin Multiplatform (KMP) library for MurmurHash, a non-cryptographic hash function for general hash-based lookup focused on simplicity and performance.
Okio - access, store, and process your data
Okio is a library that complements java.io and java.nio to make it much easier to access, store, and process your data.
KorIO - access, store, and process your data
KorIO is a library for Charsets, Encodings, Checksums, Compression, I/O, Streams, Virtual File System, Networking, Http, WebSockets, Serializationโฆ
Suparnatural FS - file system i/o
Kotlin multiplatform file system i/o for android, iOS, Java and NodeJS
Arrow - Functional companion to Kotlin's Standard Library
Arrow aims to provide a lingua franca of interfaces and abstractions across Kotlin libraries. For this, it includes the most popular data types such as Option, Either, Validated etc and functional operators such as traverse and computation blocks to empower users to write pure FP apps and libraries built atop higher order abstractions.
Result - success/failure result
This is a tiny framework for modelling success/failure of operations in Kotlin. In short, it is a model in type of Result<V: Any?, E : Throwable>.
kotlinx.serialization - JSON serialization
Kotlin serialization consists of a compiler plugin, that generates visitor code for serializable classes, runtime library with core serialization API and support libraries with various serialization formats.
Kotlin Object Notation - Lightweight DSL to build fluid JSON trees
Kotlin Object Notation - Lightweight DSL to build fluid JSON trees
MOKO Parcelize - Parcelize in common code
This is a Kotlin Multiplatform library that supports Parcelize in common code.
Pbandk - Kotlin code generator and runtime for Protocol Buffers.
It has the core set of protobuf features implemented and is being used in production.
Kotlinx DateTime - Date & Time library
A multiplatform Kotlin library for working with date and time.
Klock - Date & Time library
Klock is a Date & Time library for Multiplatform Kotlin. It is designed to be as allocation-free as possible using Kotlin inline classes, to be consistent and portable across targets since all the code is written in Common Kotlin, and to provide an API that is powerful, fun and easy to use.
Island Time - Date & Time library
A Kotlin Multiplatform library for working with dates and times, heavily inspired by the java.time library.
Kotlinx Coroutines - Kotlin coroutines
Library support for Kotlin coroutines
Reaktive - Reactive Extensions
Kotlin multiplatform implementation of Reactive Extensions.
Kotlinx Atomicfu - atomic operations
The idiomatic way to use atomic operations in Kotlin.
Stately - Kotlin Multiplatform State Library
Stately is a state utility library to facilitate state management in Kotlin Multiplatform.
CoroutineWorker - Workers for Kotlin Native
Kotlin Coroutine-based workers for native
Koru - Coroutine wrappers for Kotlin Native
Automatically generates wrappers for suspend functions and Flow for easy access from Swift code in Kotlin Multiplatform projects.
KMP-NativeCoroutines - Swift wrapper for Kotlin Coroutines
Library to use Kotlin Coroutines from Swift code in KMP apps
Korau - Kotlin cORoutines AUdio
Pure Kotlin WAV, MP3 and OGG vorbis decoders
MOKO Graphics - Graphics primitives
This is a Kotlin Multiplatform library that provides graphics primitives to common code.
Korim - Imaging utilities
Kotlin cORoutines IMaging, Bitmap and Vector graphics for Multiplatform Kotlin
Firebase Kotlin SDK - A Kotlin-first SDK for Firebase
The Firebase Kotlin SDK is a Kotlin-first SDK for Firebase. It's API is similar to the Firebase Android SDK Kotlin Extensions but also supports multiplatform projects, enabling you to use Firebase directly from your common source targeting iOS, Android or JS.
VK SDK Kotlin - Unofficial VK SDK
Create a chat-bot for VK.com in a few lines of code, use the API and forget about the limitations
bitcoin-kmp - Kotlin Multiplatform Bitcoin Library
This is a simple Kotlin Multiplatform library which implements most of the bitcoin protocol
MOKO Tensorflow - Mobile Kotlin TensorFlow
This is a Kotlin MultiPlatform library that provides access to TensorFlow-Lite functionality from common source set.
qBittorrent - wrapper for the qBittorrent Web API
Multiplatform Kotlin wrapper for the qBittorrent Web API using Ktor.
Cognito-idp - AWS Cognito Identity Provider
Lightweight AWS Cognito Identity Provider client for Kotlin Multiplatform and Typescript projects.
TMDb API - access to TMDb API
This library gives access to TMDb API version 3 and 4 for mobile, desktop, and web applications. It supports Swift, Kotlin, and JavaScript by setting up as a Kotlin Multiplatform project.
Growth Book SDK - GrowthBook Kotlin SDK
GrowthBook is an open-source platform for feature flagging and a/b testing built for data teams, engineers, and product managers. It's great whether you're looking to just analyze experiment results or looking to make it easier to deploy code.
KBigNum - Big Numbers
Library for Big Numbers
BigNum - Big Numbers
Kotlin Multiplatform BigNum library is a pure kotlin implementation of arbitrary precision arithmetic operations. It follows the same approach as Kotlin does on JVM to keep the interface familiar.
MOKO Resources - System resources manager
This is a Kotlin Multiplatform library that provides access to the resources on iOS & Android with the support of the default system localization.
Kotlinx-Resources - text resources manager
Kotlin Multiplatform (KMP) plugin and library that add support for reading resources in tests.
The plugin and a library work in tandem to provide a unified API across platforms for reading resources from each source set's resources folder.
UUID - UUID generator
Kotlin Multiplatform UUID generator
ByteBuffer - Kotlin Multiplatform bytebuffer/byte[] wrapper
A kotlin multiplatform library that allows you to allocate and modify byte[] natively using an API similar to Java's ByteBuffer API.
Kase64 - Base64 encoder/decoder
Base64 encoder/decoder for Kotlin/Multiplatform. Supports Android, iOS, JavaScript and plain JVM environments.
Colormath - Multiplatform Kotlin color conversion and manipulation
Colormath is a Kotlin Multiplatform library for color manipulation and conversion.
GEOK - Kotlin geometry library
Small geometry library for Java and Kotlin. Contains useful basic utilities that require on most application.
fluid-currency - currency library
Kotlin multiplatform currency library.
fluid-country - country library
Kotlin multiplatform country library.
Kmem - Data primitives
Kmem is bit, array and fast memory utilities library for multiplatform Kotlin
KaseChange - convert strings between various case formats
Multiplatform Kotlin library to convert strings between various case formats including Camel Case, Snake Case, Pascal Case and Kebab Case
FuzzyWuzzy-Kotlin - Fuzzy string matching for Kotlin
Useful for selecting the closest matching string from a collection of strings. Various algorithms are available.
kotlin-semver - Semantic versioning
Semantic Versioning library for Kotlin Multiplatform.
What libraries are you missing?
https://github.com/terrakok/kmm-awesome/graphs/contributors
Feel free to contribute. Follow common style and welcome! :)
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.