Avatar ·

How to use @Parcelize after removing kotlin-android-extensions?

Hello colleagues! I've been writing Kotlin for Android for several years and got used to using `@Parcelize` from the `kotlin-android-extensions` plugin. This plugin greatly simplified life — just add the annotation, and the class automatically implemented the `Parcelable` interface. Recently I updated my project to the latest Kotlin version (1.9.0) and Gradle, and noticed that `kotlin-android-extensions` is marked as deprecated and will be completely removed. The official documentation recommends switching to `kotlin-parcelize`, but I don't fully understand how to do it correctly. The problem is that my old code looks like this: ```kotlin // Old way (worked with kotlin-android-extensions) @Parcelize data class User( val id: Int, val name: String, val email: String? ) : Parcelable ``` After