The following is the roadmap of Kotlin Multiplatform for 2024.
With the recently achieved stability of Kotlin Multiplatform, development teams worldwide can now seamlessly and confidently adopt it in production. However, this is just the beginning for KMP and its ecosystem. To equip you with the best cross-platform development experience, JetBrains aims to deliver a host of further improvements to the core Kotlin Multiplatform technology, Compose Multiplatform, KMP tooling, and KMP libraries in 2024. Read on to learn what we’re planning and our priorities in these areas.
We’re dedicated to making Compose Multiplatform a framework that allows creating beautiful and performant applications that look the same way on all supported platforms. Right now, our main focus is to get Compose for iOS to Beta, but we’re also working on other things. Here’s what we plan to do:
- Make all Jetpack Compose core APIs and components multiplatform.
- Improve rendering performance on iOS.
- Make scrolling and text editing in Compose for iOS apps behave the same as in iOS native apps.
- Implement a common API for sharing all types of resources.
- Integrate with iOS and Desktop accessibility APIs.
- Provide a solution for multiplatform navigation.
Many of the aforementioned improvements benefit Compose for Desktop, as well. In addition, we’re working on improving its stability and evolving it according to the feedback from those who use it in production.
We’ll also continue to explore what’s possible with Compose for Web, specifically with Wasm. Our nearest goal is to promote it to Alpha, which includes:
- Allowing you to port your existing apps and reuse all of your common code.
- Supporting different screen sizes, orientations, and densities.
- Supporting input from a mouse, touchscreen, physical keyboard, or onscreen keyboard.
- Improving performance and binary size.
We’re committed to providing a great IDE experience for Kotlin Multiplatform. That means not only investing in the core platform and, for example, migrating Kotlin IDE plugin to K2 compiler frontend, but also providing a single tool (Fleet) for all Kotlin Multiplatform targets and codebases where you integrate it, eliminating the need to constantly switch between different IDEs.
We plan to quickly iterate over your feedback about using Fleet for Kotlin Multiplatform development to make sure that we have everything you need for your development experience to be great. Among other things, we’re going to deliver in the following areas:
- Enhanced support for Compose Multiplatform, including live preview for common code and visual debugging tools.
- The IDE helping you with project configuration.
- Unified and enhanced debugging experience for all parts of your Multiplatform project.
One of the popular Kotlin Multiplatform scenarios is sharing code with the iOS target. We want to focus on the development experience of iOS developers who work with Kotlin Multiplatform frameworks in their codebases.
The main initiative in this area is a direct Kotlin-to-Swift export. It will eliminate the Objective-C bottleneck, allowing for broader Swift language support and more natural exporting of APIs. Additionally, we are creating tools specifically for Kotlin library authors. These tools are designed to improve the compatibility and user-friendliness of Kotlin APIs when exported to Swift. We’re also paying close attention to tooling. The IDE and build systems are essential parts of the developer experience, and our goal is to ensure that the Swift Export integrates smoothly.
Our other initiatives include speeding up Kotlin/Native compilation, enhancing CocoaPods integration, and introducing support for exporting your framework with SwiftPM.
We also plan to continue exploring ways to improve the build setup of Kotlin Multiplatform applications. With Kotlin 1.9.20, we released huge improvements in the Gradle Multiplatform DSL, making it easier to read and write. We will continue to gradually improve it. In addition, we’re experimenting with Amper, a new project configuration tool focused on usability, onboarding, and IDE support.
As the Kotlin Multiplatform ecosystem is growing fast, the backward compatibility of the libraries becomes crucial. To ensure it, the JetBrains team and library creators must work together. Here’s our plan:
- Improve the klib format so library creators can leverage their knowledge of building JVM libraries.
- Implement the same code-inlining behavior in Kotlin Multiplatform libraries as for the JVM.
- Provide a tool that ensures that your multiplatform library public API hasn’t changed in an incompatible way.
We’re also going to improve the publishing process for KMP libraries. Specifically, we plan to:
- Make it possible to build and publish a KMP library without having a Mac machine.
- Provide templates and extensive guidelines for creating and publishing a KMP library.
Even though Kotlin Multiplatform is now stable, we’re planning significant updates. But don’t worry: Libraries built with the current format will still work with newer Kotlin versions.
#reads #egor tolstoy #jetbrains #kmp #roadmap