Today (14th of May, 2024) Google announced support for Kotlin Multiplatform on Android, which enables sharing code across mobile, web, server, and desktop platforms.
Key points:
✅ Kotlin Multiplatform (KMP) has been a long-standing investment for the team behind Google Workspace.
✅ The initial step in this journey is the rollout of the Google Docs app for Android, iOS, and Web, which leverages KMP for shared business logic.
✅ Android engineers have collaborated with JetBrains on the Kotlin compiler to improve runtime performance in Kotlin/Native (for iOS & native desktop operating systems), showing 18% runtime performance improvements in compiler benchmarks. In addition the Android team contributed to build time performance improvements for the Kotlin Native Compiler of up to 2x speed ups.
✅ The Android Gradle Plugin now has official support for Kotlin Multiplatform, enabling a concise build definition for setting up Android as a platform target for shared code.
✅ Google Chrome now has official support for WasmGC which is used by Kotlin Multiplatform's WebAssembly platform target to enable code sharing with the browser in an efficient and performant way.
Explore one of these sample projects showcasing how to use some of the Jetpack libraries with Kotlin Multiplatform:
- DiceRoller - DataStore on Android and iOS https://lnkd.in/eEs7wBmb
- Fruitties - Room, Datastore on Android and iOS https://lnkd.in/e859Rgeu
Read full article: https://lnkd.in/eBv5zskW