Kotlin Multiplatform

Kotlin Multiplatform enables sharing Kotlin code across different platforms. Kotlin Multiplatform is developed by JetBrains, and using it to target mobile platforms is stable and production ready.

Multiplatform Jetpack libraries

We are experimenting with Kotlin Multiplatform within Google, focusing on sharing business logic between Android and iOS. As part of this work, we are converting some Jetpack libraries to multiplatform. As Kotlin Multiplatform is still in development, these libraries don't have Jetpack's usual stability guarantees for non-Android targets.

If you are already building apps using Kotlin Multiplatform, you can make use of the following Jetpack libraries in your multiplatform projects:

Markers showing platform availability of APIs

In the reference documentation of these libraries, APIs are marked based on their availability for common code, Android, and Native. You can also filter for declarations by platform at the top of each page.

The kotlin-multiplatform-samples repository showcases some of the functionality of these libraries.

If you have feedback on these libraries, please share it on the issue tracker.

Tooling support

You can open, edit, and run multiplatform projects in Android Studio. However, some IDE features aren't yet available for these projects. For additional functionality, you can install the Kotlin Multiplatform Mobile plugin from JetBrains.

We're also ensuring that the Android Gradle Plugin is compatible with Kotlin Multiplatform by testing core scenarios for new releases.