Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experimental support kotlinx.serialization with androidx.core.bundle #35

Merged
merged 1 commit into from
Jun 23, 2024

Conversation

ogaclejapan
Copy link
Contributor

@ogaclejapan ogaclejapan commented Jun 16, 2024

Since Kotlin 2.0, implementing Parcelable (with Parcelize) for Kotlin Multiplatform has become more challenging. Currently, it is necessary to define compilerOptions and add a custom Parcelize wrapper to the parameters to use it.

In Soil, we have implemented functionalities related to Parcelable in the form and space library. Therefore, we decided to experimentally provide a library that converts to androidx.core.bundle.Bundle using the mechanism of kotlinx.serialization.

Instead of implementing Parcelable, we plan to incorporate an alternative API using kotlin.serialization in the form and space library.

@ogaclejapan ogaclejapan added the enhancement New feature or request label Jun 16, 2024
@ogaclejapan ogaclejapan changed the title Experimental support androidx.core.bundle for kotlinx.serialization Experimental support kotlinx.serialization with androidx.core.bundle Jun 23, 2024
@ogaclejapan ogaclejapan marked this pull request as ready for review June 23, 2024 02:50
@ogaclejapan ogaclejapan merged commit 8e42d08 into main Jun 23, 2024
1 check passed
@ogaclejapan ogaclejapan deleted the serialization-bundle branch June 23, 2024 02:52
ogaclejapan added a commit that referenced this pull request Jun 23, 2024
The form and space modules now have an optional API that allows you to use kotlin.serialization instead of implementing
Parcelable.

refs: #35
@github-actions github-actions bot mentioned this pull request Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant