Skip to content

Remove deprecated kotlin-android-extensions-runtime dependency #41

@m-muaaz-farooq

Description

@m-muaaz-farooq

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-runtime from dependencies.
  • If @Parcelize is needed, rely on the Gradle plugin org.jetbrains.kotlin.plugin.parcelize instead.

Thanks a lot for your great work on this library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions