Kotlin 1 min read 96 words

Kotlin 2.4.20 adds generated Package.swift files for SwiftPM

What changes for Kotlin Multiplatform modules shared with an iOS app, plus Wasm and JS updates.

Updated

Kotlin 2.4.20 gives Kotlin/Native automatically generated Package.swift files for SwiftPM dependencies, new Swift export features, and improved incremental compilation.

Kotlin/Wasm updates top-level require() calls in @JsFun declarations, improves companion object initialization order, and adds Support for Wasmtime in the Kotlin Gradle plugin.

Kotlin/JS gains a DSL for browser testing, support for exporting suspend lambdas as async functions, and improved exportability of data classes.

The compiler adds a kotlinr runner command for running Kotlin scripts.

To upgrade, update your IDE to the latest version and change the Kotlin version in your build scripts to 2.4.20.

Sources

  1. Kotlin 2.4.20 Released Primary Kotlin Blog

Researched and drafted with AI assistance from the primary sources listed above, then checked against those sources before publication. Every factual claim here is traceable to a cited source; where the sources are silent, so are we. How this works.