Kotlin Multiplatform Sep 17, 2024 Pre-release

v2.1.0-Beta1

What's New

Kotlin v2.1.0-Beta1 strengthens the K2 compiler with 100+ fixes addressing type system edge cases, exhaustiveness checking, and diagnostics accuracy. The Analysis API gains property and operator resolution support while light classes now handle value classes properly. Performance improvements in IDE operations and new debugging capabilities for Kotlin/Wasm enhance the overall developer experience across mobile and multiplatform development.

Highlights

Breaking Changes

  • Using -Xuse-k2 compiler flag is now an error; use -language-version 2.1 instead
  • Bitcode embedding support deprecated and removed from Kotlin Gradle plugin for Apple targets

Deprecations

  • Various Analysis API declarations marked for stabilization and cleanup
  • Reified modifier on type alias parameters deprecated
  • Synchronized, Throws, JvmField annotations on annotation parameters deprecated

Recent Releases

All releases →