TOPIC HUB · #KOTLIN
Kotlin
Kotlin 2.x language features, value classes, type modeling, and standard library mechanics for Android.
- Kotlin 2.4.20: Lazy assertion messages in kotlin.test (KEEP-0465)
Kotlin 2.4.20 introduces lambda overloads for kotlin.test error messages under KEEP-0465. Here is how they behave on AGP 9, how smart-cast contracts hold up, and why assertNotNull was excluded.
- Decoupling WebView State from Activity Lifecycles with WebContent
How the new androidx.web library separates the underlying Chromium session from the view hierarchy to preserve DOM, JavaScript heap, and scroll state across configuration changes.
- Nested SavedStateHandles: Isolating Child State Without Key Prefixes
Isolate reusable state holders inside a single ViewModel with nested SavedStateHandles, SavedStateContainer integration, and the new StateFlow-LiveData rules.
- Jetpack AppState: When Premium Ends While Music Is Playing
Compare StateFlow and AppState through a music app: shared subscriptions, derived playback policies, and the roles of ViewModel and the playback service.
- Observing Compose Runtime with CompositionObserver
Track state reads and recomposition scope lifecycles with CompositionObserver, and understand the observation fixes in Compose Runtime 1.13.0-beta01.
- Kotlin 2.5: What full value classes and value objects mean for Android
Full value classes and value objects in Kotlin 2.5, explained through an Android video selection, data class trade-offs, and performance limits.
- Kotlin Coroutines Debugging Recipes: StackTraceRecoverable
Keep custom exception fields intact when coroutine stack trace recovery copies an exception.