Age | Commit message (Collapse) | Author |
|
This project was upgraded with external_updater.
Usage: tools/external_updater/updater.sh update external/kotlinx.serialization
For more info, check https://cs.android.com/android/platform/superproject/+/main:tools/external_updater/README.md
Test: TreeHugger
Change-Id: I0a33712c9ac0a953307b3e8c3470f29cdd6dcaec
|
|
Test: TH
Bug: 330586494
Change-Id: I29be214476819056a253d391e33791f3e0935040
Merged-In: I29be214476819056a253d391e33791f3e0935040
(cherry picked from commit 5b6a599727845581dc6935ec2f83c0f01b63543e)
|
|
Bug: 322508920, 328943579
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1f01bf41f9b5f039e0cd1426c1ff6999ddef36c2)
Merged-In: Idf955e7995d9d4754e3855259d99095a2993f981
Change-Id: Idf955e7995d9d4754e3855259d99095a2993f981
|
|
Add a kotlinx_serialization_json module based off kotlinx_serialization.
Bug: 330586494
Test: builds
Change-Id: I05e6f2f08ed218d385d85d79bd8c81e9835b4001
|
|
Use the right path for the core sources, and use -opt-in instead of
-Xuse-experimental.
Test: mma
Change-Id: Ic99904546866f0bfb2097373859e88e85e34a004
|
|
Bug: 327649027
Change-Id: Ie43c2d46a60da3529caa8ccc71f10e9a725cc1fa
Test: TH
|
|
|
|
Request Document: go/android3p
For CL Reviewers: go/android3p#cl-review
For Build Team: go/ab-third-party-imports
Bug: http://b/327649027
Test: ./gradlew build
Change-Id: I77b17252a31ef9eb8b98c8c5bbde4adec39213de
|
|
|
|
|
|
|
|
Because after #2440 quoted boolean values are allowed by default, and
quoted numbers were allowed even before that.
|
|
Kotlin's language version 2.0 has a new model to compile common/shared sources which requires more fine-grained task configuration. For language versions lower than 2.0, task configuration is different and all common sources should be set as input.
|
|
(#2566)
If the @KeepGeneratedSerializer annotation is specified on the class, and a custom serializer is specified, then keep to generate a plugin serializer.
Resolves #1169
Co-authored-by: Leonid Startsev <sandwwraith@users.noreply.github.com>
|
|
* Fix usage of deprecated method on creating a standalone KotlinJvmCompile task
* Use compilerOptions DSL for standalone KotlinJvmCompile task
* Add a workaround for AbstractKotlinCompile.ownModuleName property usage
The workaround tried to configure it only when it is available as via KT-64504 it will be removed in Kotlin 2.0.0 release.
|
|
|
|
This commit moves the 'linuxX64' target to tier 2 and reorders targets of this tier.
References:
https://kotlinlang.org/docs/native-target-support.html
https://kotlinlang.org/docs/whatsnew1920.html#change-to-our-target-tiers-policy
https://youtrack.jetbrains.com/issue/KT-58711
|
|
This is needed because once we enable indy lambdas by default
(KT-45375), `@SuppressAnimalSniffer` annotation stops working, because animalsnifferMain does not handle indy lambdas correctly, and the
`animalsnifferMain` task reports several errors about
`java.time.Duration` being used.
There are multiple ways to workaround this issue, for example we could
annotate the lambda with `@JvmSerializableLambda` or compile the whole
module with `-Xlambdas=class`, but I chose to use a simple function
reference instead, since we don't generate those via invokedynamic yet
(KT-45658), and it doesn't make the code any more difficult.
|
|
|
|
Fixes #2089
|
|
and mention intrinsics to keep them in sync.
|
|
Implement ClassDiscriminatorMode.ALL, .NONE, and .POLYMORPHIC
As a part of the solution for #1247
|
|
Do not try to coerce input values for properties that do not have default values.
Trying so leads to confusing errors about missing values despite a json key actually
present in the input.
Fixes #2529
|
|
The mavenLocal() repository has been moved down below and filtered to ensure that it is checked last and only for kotlinx-serialization:1.x.y-SNAPSHOT.
Also replace the outdated `stdlib-common` artifact name.
(cherry picked from commit 1116f5f13a957feecda47d5e08b0aa335fc010fa)
|
|
The mavenLocal() repository has been moved down below and filtered to ensure that it is checked last and only for kotlinx-serialization:1.x.y-SNAPSHOT.
Also replace the outdated `stdlib-common` artifact name.
|
|
|
|
Fixes #1581
|
|
|
|
because it is a widespread convention.
Fixes #2502
|
|
all API docs (#2518)
|
|
|
|
|
|
This is implementation of Wasm WASI target support.
Please notice, that due to lack of support this target in okio we are forced to escape building this formatter and all formatters unit tests for WASI. We hope that WasmJS target (i.e. backend and compiler plugin) are fully similar to the WasmWASI target so the library functionality is fully covered by WasmJS.
|
|
The change is related to building serialization as a Kotlin user project. See https://youtrack.jetbrains.com/issue/QA-1115 for more details.
|
|
yet. (#2505)
|
|
|
|
|
|
Make the TaggedDecoder.decodeNullableSerializableElement implementation consistent with AbstractDecoder,
so it is possible to differentiate nullable and non-nullable serializers.
Fixes #2455
|
|
|
|
Being thrown on an attempt to retrieve serializer for some private implementation classes from stdlib.
Fixes #2449
|
|
See also #2427
|
|
Use Gradle property no_teamcity_interaction (e.g. gradle -Pno_teamcity_interaction ...) to disable project's TeamCity integration (printing of the library version as build number in this case).
Gradle property build_snapshot_up is also supported.
Co-authored-by: Stanislav Ruban <stanislav.ruban@jetbrains.com>
|
|
Fixes #2187
|
|
Previously, when discriminator was found as the first key in Json, but there was no deserializer for it, we still fell back to a slow path with JsonTree.
It was actually meaningless because a slow path always throws exception when a serializer is not found.
Such behavior led to unnecessary memory pressure & consumption in exceptional cases (see linked ticket for details).
Also make polymorphic deserialization exception messages more meaningful and make them more consistent with serialization ones.
Also fix behavior when the actual discriminator value is JsonNull (it should be treated as missing, not as "null" string).
Fixes #2478
|
|
This is one of the popular community requests and one of the main reasons people ask for Json5 support.
Implementing this flag separately will allow for alleviating large paint points quickly without waiting for full Json5 support.
Fixes #1812
Relates to: #797, #2221
|
|
(#2473)
* Build improvements: Kotlin 1.9.20-RC, default target hierarchy, bump Okio
Updated to Kotlin 1.9.20-RC:
- Kotlin 1.9.0/10 had some blockers in XCode 15 support.
- Simplify WASM setup (it has been changed in 1.9.20).
- Drop obsolete Native targets
Apply default target hierarchy:
- Greatly simplified buildscript for native targets.
- Supported targets are now runnable from gutter in the IDE.
- Now all possible targets are built by default (without -Pnative.deploy flag), resulting in less confusion for contributors and CI (but longer local `check` times).
- Publishing library with K2 should be possible now, no more incorrect `publishNativeKotlinMetadata` failing task.
- More targets available in integration-test project.
Updated Okio for:
- linuxArm64 target support
|
|
The task for verification of Kotlin sources for JPMS problems tries to replicate the setup of the default Kotlin/JVM compilation task. The change here introduces copying of `K2MultiplatformCompilationTask.multiplatformStructure` to set up compilation arguments properly within K2.
#KT-61952 Fixed
|
|
|
|
Add conformance tests using test_messages_proto3 construct google provides
|
|
|