Mobile Development

Kotlin 2.5.0-RC: Swift export reaches Beta, Kotlin Multiplatform gets a new publication format and compilation scheme

JetBrains released Kotlin 2.5.0-RC on 11 November 2026: Swift export reaches Beta, there is a new Kotlin Multiplatform publication format, and several language features become Stable.

By Oemah Solution Editorial 4 min read

This article was prepared with AI assistance from the official sources listed below, and checked automatically before publication.

MacBook Air laptop on a wooden table with a phone, a notebook and a cup of coffee
Photo: Late 2010 MacBook Air by Alejandro Escamilla · CC0 · Wikimedia Commons

Kotlin 2.5.0-RC was officially released on 11 November 2026. In the release notes in the Kotlin documentation, JetBrains states that Swift export now has Beta status with a new Gradle DSL. The release also brings an experimental compilation scheme and a new publication format for Kotlin Multiplatform libraries, as well as several language features that move up to Stable status.

What changes in Kotlin 2.5.0-RC

Here are the main highlights according to the Kotlin documentation:

  • Swift export Beta. The configuration entry point changes from swiftExport {} to export { swift {} }. Swift export configuration can now also be published, so option overrides by library authors are applied automatically by Gradle.
  • Kotlin Multiplatform. There is a new experimental compilation scheme and a new publication format. JetBrains states that this publication format significantly reduces the size of published multiplatform libraries.
  • Kotlin/JVM and Kotlin/JS. Kotlin/JVM supports Java 28 bytecode, while Kotlin/JS supports the es2020 target.
  • Compiler. The behaviour of inline functions becomes more consistent when compiling klib.

Language features: what is Stable and what is still experimental

Several features introduced as Experimental in Kotlin 2.3.0 through 2.4.0 are now Stable:

  • improved compile-time constants;
  • the @IntroducedAt annotation for creating version-based overloads on optional parameters;
  • unused return value checker, which is now enabled by default;
  • name-based destructuring in only-syntax mode, which is now the default. The old val (x, y) syntax remains position-based, while the new (val x, val y) syntax is name-based.

Meanwhile, two new features are still Experimental and require opt-in through compiler options:

  • Companion extensions and companion blocks, which allow the declaration of members accessed through the type name without needing a companion object. The option is -Xcompanion-blocks-and-extensions.
  • Full value classes, which are types with several properties that together form a value and whose instance identity is unimportant. The option is -Xfull-value-classes.

The standard library also gains the experimental functions onTrue(), onFalse() and ifOrNull() to simplify if patterns, as well as experimental support for Unicode code points through the CodePoint class. The compiler also adds stricter equality checks for structural classes through the -Xstrict-equality-for-structural-classes option.

Why it matters for teams in Indonesia

For organisations that share business logic between Android and iOS with Kotlin Multiplatform, Swift export reaching Beta signals an increasingly mature integration path on the iOS side. The new publication format that reduces library size is also relevant for teams that publish shared modules to internal repositories.

It should be noted that RC status means the stable release has not yet been published. The new compilation scheme and publication format are still labelled experimental, so they are not yet suitable as a basis for production applications.

Practical steps

  1. Test on a separate branch. Update your IDE to the latest version, then change the Kotlin version in the build script to 2.5.0-RC. According to JetBrains, the latest Kotlin version is already bundled with the latest IntelliJ IDEA and Android Studio.
  2. Plan the Swift export configuration migration. Take an inventory of swiftExport {} usage and map it to the export { swift {} } form.
  3. Review the impact of features that are now Stable. The unused return value checker is enabled by default and only-syntax name-based destructuring becomes the default, so run a full build and tests to see the effect on your codebase.
  4. Keep experimental features out of production. Companion extensions, full value classes, the new if functions and the CodePoint API should only be tried in experimental environments until the stable release.
  5. Provide feedback. JetBrains asks for input through YouTrack on experimental features, which teams that want to influence their development direction can take advantage of.

With this phased approach, teams can gauge the benefits of Swift export Beta and the new publication format early without sacrificing the stability of applications that are already running.

#kotlin#kotlin-multiplatform#swift-export#mobile-development#gradle

Sources & references

This article is a summary and interpretation by the Oemah Solution team of the sources below. Refer to the original sources for full details and context.

  1. What's new in Kotlin 2.5.0-RC | Kotlin Kotlin (JetBrains) · kotlinlang.org