themed-toggle-button-group
themed-toggle-button-group copied to clipboard
Remove deprecated kotlin-android-extensions-runtime dependency
Hi,
While integrating this library into a modern Android project, I ran into duplicate class errors:
Duplicate class kotlinx.android.parcel.Parcelize found in:
- org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.3.61
- org.jetbrains.kotlin:kotlin-parcelize-runtime:2.2.20
This happens because the library is still depending on kotlin-android-extensions-runtime, which has been deprecated since Kotlin 1.4.
The @Parcelize functionality was moved to the kotlin-parcelize plugin and kotlin-parcelize-runtime.
Suggested fix:
- Remove
kotlin-android-extensions-runtimefrom dependencies. - If
@Parcelizeis needed, rely on the Gradle pluginorg.jetbrains.kotlin.plugin.parcelizeinstead.
Thanks a lot for your great work on this library!