Kotlin Multiplatform Oct 14, 2024 Pre-release

v2.1.0-Beta2

What's New

Kotlin 2.1.0-Beta2 delivers significant performance improvements across the Analysis API with caching and lazy resolution, adds Xcode 16 support for Apple developers, and introduces WebAssembly incremental compilation. The K2 compiler gains stability with numerous debugger and private member access fixes, while new features include Kotlin-to-Java direct actualization and Compose's PausableComposition. Breaking changes include dropping language versions 1.4-1.5 and enforcing stricter requirements for external functions in Kotlin/Native.

Highlights

Breaking Changes

  • Dropped support for Kotlin language versions 1.4 and 1.5
  • KLIB unique names via CLI now forbidden, use metadata instead
  • Kotlin/Native @Escapes annotation now required for all external functions
  • Nothing type prohibited as catch parameter in exception handling

Deprecations

  • appendln deprecated in favor of appendLine
  • Kotlin/Native freezing API marked for deprecation to error
  • Reified type parameter instantiation into intersection types deprecated
  • SubclassOptInRequired no longer marked as ExperimentalSubclassOptIn

Recent Releases

All releases →