Kotlin Multiplatform Aug 22, 2024

v2.0.20

What's New

Kotlin v2.0.20 delivers significant Analysis API stabilization with the Kt-to-Ka prefix migration, substantial K2 compiler performance improvements, and enhanced multiplatform support including Kotlin/Wasm and Kotlin/Native. The release includes 100+ bug fixes across the compiler, type system, and IDE integration, plus new language features like guard conditions for when expressions and improved string interpolation handling.

Highlights

Breaking Changes

  • Analysis API: Kt prefix renamed to Ka prefix across all public APIs
  • Analysis API: KtSymbol-based APIs now expose only interfaces and abstract classes
  • Analysis API: classIdIfNonLocal renamed to classId, callableIdIfNonLocal renamed to callableId
  • Analysis API: infix modifiers removed from type equality and subtyping functions
  • Kotlin/Wasm: default export usage now produces an error instead of warning

Deprecations

  • Context receivers deprecated in favor of context parameters with migration warning
  • Smartcasts on class-delegated properties deprecated
  • Bitcode embedding support removed for Kotlin/Native

Recent Releases

All releases →