Awesome KMM
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.
Resources
Contents
Tooling
๐
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).
๐
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
๐
Kotlin Native Xcode Support
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.
Libraries
๐
Log
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.
๐
Network
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.
๐ฆ
Storage
Multiplatform-Settings - Key-Value preferences
This is a Kotlin library for Multiplatform apps, so that common code can persist key-value data
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.
๐ฑ
Device
MOKO Permissions - System permissions manager
Kotlin Multiplatform library for providing runtime permissions on iOS & Android
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.
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.
๐
Dependency Injection
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.
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.
๐
Architecture
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.
Redux Kotlin - Redux framework
Redux implementation for Kotlin (supports multiplatform JVM, native, JS, WASM)
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.
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.
๐
Analytics
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.
๐ฉบ
Test
Kotest - test framework
Powerful, elegant and flexible test framework for Kotlin with additional assertions, property testing and data driven testing
๐
Crypto
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
๐
File
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
๐
Language extentions
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>.
๐
Serializer
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.
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.
โฐ
Date-Time
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.
โฟ
Asynchronous
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
๐ต
Audio
Korau - Kotlin cORoutines AUdio
Pure Kotlin WAV, MP3 and OGG vorbis decoders
๐จ
Graphics
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
๐งฉ
Service SDK
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.
๐งฎ
Arithmetic
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.
๐ง
Utils
UUID - UUID generator
Kotlin Multiplatform UUID generator
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.
Suggest your an idea
What libraries are you missing?
Authors
https://github.com/terrakok/kmm-awesome/graphs/contributors
Contribution guide
Feel free to contribute. Follow common style and welcome! :)
License
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.