The Daily Kotlin
1.61K subscribers
53 photos
1 video
1 file
494 links
Kotlin Chats in Telegram:
RU https://kug.community/
EN https://kug.community/en

Kotlin news and tips
Download Telegram
Kotlin turns 13 💪️️️️
🎉36👍4😱4👏1🤮1
Kotlin 2.0.20-RC Released

The Kotlin 2.0.20-RC brings a range of new features, enhancements, and deprecations as Kotlin continues to evolve toward the full 2.0 release. Key updates include:

- Data Class Copy Function Visibility: The .copy() function in data classes will now have the same visibility as the constructor, with migration warnings introduced.
- Context Receivers: Gradual deprecation of context receivers, which will be replaced by context parameters in future releases.
- Kotlin Multiplatform: Static accessors for source sets are now available, improving IDE experience and usability.
- Kotlin/Native: Experimental support for concurrent marking in the garbage collector, aimed at reducing GC pause times.
- Kotlin/Wasm: Migration from default to named exports, with warnings now upgraded to errors.
- Compose Compiler: Various improvements, including the default enablement of strong skipping mode for better performance and stability.

GitHub Changelog
Kotlinlang.org: What's new in Kotlin 2.0.20-RC
🔥5🤮1
Context Receivers → Context Parameters migration plan:

Kotlin 2.0.20 – new warning in build introduced: CONTEXT_RECEIVERS_DEPRECATED, with -Werror we have to manually suppress it for each file
Kotlin 2.1.0 – Disable warning globally https://youtrack.jetbrains.com/issue/KT-8087 freeCompilerArgs.add("-Xsuppress-warning=CONTEXT_RECEIVERS_DEPRECATED”)
Kotlin 2.1.20 – Removing Context Receivers from compiler
Kotlin 2.2.0 – Context Parameters introduced behind flag https://youtrack.jetbrains.com/issue/KT-67119

Plan for people heavily using Context Receivers, and don’t want to refactor out them completely:

1. Stay on Kotlin 2.0.1x until 2.1.0 released
2. Migrate to 2.1.0 up to 2.1.1x
2. Migrate to 2.2.0
100👍14🤮1
Kotlin 2.0.20 Released!

• Data class copy function now matches constructor visibility.
• Static accessors for multiplatform source sets are introduced.
• Concurrent marking in Kotlin/Native’s GC is now possible.
• The @ExperimentalWasmDsl annotation location changed.
• Gradle 8.6–8.8 supported.
• Option to share JVM artifacts between projects as class files
• Compose compiler update.
• UUID support in the common Kotlin standard library.

Details
GitHub Changelog
52👍11🤮1
2😢12🤯8😁1🤔1🤮1
I know you folks love surveys, this one about Kotlin:

Kotlin Developer Survey #3
👌2🤮1
Koin 4.0 released

Koin 4.0 brings major updates with Kotlin 2.0.20 as a new baseline, focusing on Kotlin Multiplatform, Android, and Compose. Key improvements include true UUID generation across platforms, internal optimizations with better performance, a revamped ViewModel API now supporting multiplatform, and Compose lifecycle handling. The release also introduces the experimental “Koin-Fu” project to rethink the DSL and AndroidX Startup support for faster app loading. Deprecated APIs have been removed or replaced for a cleaner experience.

Just be aware of funky Koin defaults
🤮1