What problem does it solve?
Keeps code and build configurations aligned with Kotlin 2.x and recent ecosystem changes so developers and code-generating agents avoid producing code that uses deprecated or removed APIs.
Core Features & Use Cases
- Language changes: Documents guard conditions in when, multi-dollar interpolation, non-local break/continue, explicit backing fields, and the unused return value checker.
- Build & tooling guidance: Shows Compose compiler plugin integration, power-assert usage, and KMP Android target migration notes to update Gradle configurations.
- Ecosystem updates: Covers Ktor 3.0 migrations (kotlinx-io, SSE, CSRF), Coroutines 1.9–1.10 Flow operators, Serialization 1.10 stabilized APIs, and Compose Multiplatform 1.8–1.10 changes.
- Use Case: Run this patch before generating Kotlin code or refactoring to ensure code compiles with Kotlin 2.x toolchains and follows current library conventions.
Quick Start
Load kotlin-knowledge-patch before generating or modifying Kotlin code to apply updated compiler flags, migration notes, and reference snippets.