-
Notifications
You must be signed in to change notification settings - Fork 37
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
Kotlin 1.3.72 #35
Comments
Hi @aminghadersohi. PR #29 that adds Kotlin/Native support is also updating pbandk to Kotlin 1.3.72. That will probably get merged in the next couple weeks and included in pbandk 0.9.0. I believe the cause of your problem is that your project is using Kotlin 1.3.72 but pbandk depends on kotlinx.serialization 0.14.0. The kotlinx.serialization library has a tight dependency to the version of Kotlin used. So kotlinx.serialization 0.14.0 only works with Kotlin 1.3.6x, whereas you need kotlinx.serialization 0.20.0 if you're using Kotlin 1.3.7x. |
As an aside: if you're using pbandk's JSON support I should warn you that the implementation is going to change significantly. The current implementation does not support the full protobuf JSON spec and also imposes a dependency from the generated code on the kotlinx.serialization compiler plugin. We're planning to reimplement JSON to allow full support for the protobuf JSON spec. We'll hopefully also be able to hide kotlinx.serialization as a runtime implementation detail, rather than something that's part of pbandk's public API (as it currently is). |
@garyp thanks for help. As you suspected we were not able to update to 1.3.72 even with using kotlinx.serialization-runtime 0.20.0. A couple of weeks doesn't sound unreasonable so we will most likely wait for that.
|
@garyp is there an estimated release date for 0.9.0? And any way I can help make this faster? |
I will update Kotlin version to 1.3.72 in PR #29. It is currently using 1.3.71, so it shouldn't be of any problem. |
The JSON deserialization shouldn't break. Our current version doesn't cover all of the cases that the protobuf JSON spec requires, so we need to expand our support for JSON. But the subset of JSON that is working today will still work the same in the new version. What will change is the
Use of the Kotlin Multiplatform Plugin (already merged) and Kotlin/Native support are the only features we're targeting for 0.9.0. Once those are ready, we can release 0.9.0. Where we could use help to get the release out faster is in updating the |
Given the examples are currently broken and I haven't been able to have a look to see how much work that is, do you foresee 0.9.0 still going out in the next week or so @garyp ? |
Also some minor cleanup of the `build.gradle.kts` files. Fixes #35.
@tinder-aminghadersohi I belatedly realized that updating the Kotlin version is a small change and we don't need to wait for the large set of Kotlin/Native changes to go in. I've updated the versions on |
Thanks! Unfortunately, we were forced to remove the usage of the JSON serialization. But I am looking forward to the next version of the library either way. |
Are there any plans to update to kotlin 1.3.72?
pbandk/buildSrc/src/main/kotlin/Versions.kt
Line 2 in 1b7205c
I am experiencing issues after I upgraded to koltin to 1.3.72 in my project.
The text was updated successfully, but these errors were encountered: