Skip to content

Bump Kotlin from 2.4.0 to 2.4.21 - #246

Merged
isaac-udy merged 1 commit into
mainfrom
threesee/kotlin-2-4-21
Nov 4, 2026
Merged

isaac-udy merged 1 commit into
mainfrom
threesee/kotlin-2-4-21

Conversation

@isaac-udy

Copy link
Copy Markdown
Owner

Moves Enro to Kotlin 2.4.21, the current stable. The ukpt template is moving to 2.4.21, and Compose Multiplatform 1.13 requires Kotlin 2.4.20 or later for the js and wasm targets. ukpt includes Enro as a composite build, and the included build compiles with Enro's own Kotlin pin, so Enro has to move first. The matching udytils change is isaac-udy/udytils#46.

Files changed

  • libs.versions.toml: kotlin 2.4.0 → 2.4.21. This drives the Kotlin, Compose compiler, parcelize and serialization plugins, plus kotlin-stdlib and kotlin-reflect. ksp stays at 2.3.9; it builds without changes.
  • buildSrc/.../Project.configureEmulatorWtf.kt: imported org.jetbrains.kotlin.konan.properties.hasProperty, an internal KGP helper that 2.4.21 no longer ships, so buildSrc failed with "Unresolved reference 'hasProperty'". It now calls Properties.containsKey.
  • kotlin-js-store/yarn.lock: regenerated with kotlinUpgradeYarnLock for the bundled webpack 5.108.1.
  • CHANGELOG.md: Unreleased → Dependencies entry.

Checked against the 2.4.20 wasm/JS changes: Enro has no @JsFun, wasmExports, import.meta or Terser configuration.

Verification (local, macOS)

  • ./gradlew continuousIntegration -x testWithEmulatorWtf --continue: passed. This covers lint, Android host tests, desktop, JS (browser and Node) and wasmJs browser tests.
  • ./gradlew continuousIntegrationMacOs: passed (iOS simulator tests).
  • 1,257 test results, 0 failures.

Not run locally: testWithEmulatorWtf, the instrumented Android tests on emulator.wtf, which needs the CI token. CI runs them.

KGP 2.4.21 no longer ships org.jetbrains.kotlin.konan.properties.hasProperty,
which configureEmulatorWtf imported to query local.properties; it now uses
Properties.containsKey. kotlin-js-store/yarn.lock is regenerated for the
bundled webpack 5.108.1.
@isaac-udy
isaac-udy merged commit 5b08231 into main Nov 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant