Update dependency com.squareup.moshi:moshi-kotlin to v1.15.2 #45
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.9.2->1.15.2Release Notes
square/moshi (com.squareup.moshi:moshi-kotlin)
v1.15.2Compare Source
2024-12-05
-if) when the rule is already predicated on the presence of the target type (as-keepnamesand-keepclassmembersare).This will improve shrinker performance for projects with hundreds of model types, as conditional rules are more expensive to evaluate.
v1.15.12024-01-30
3.7.0v1.15.02023-05-12
1.8.21.1.8.21-1.0.11.0.6.0.1.13.2.1.9.0in KAPT.UNUSED_PARAMETERin generated code.v1.14.02022-09-06
v1.13.02021-12-08
New: Support for [Kotlin Symbol Processing (KSP)][ksp]. KSP is an alternative to annotation
processing code gen. It's builds faster and better supports Kotlin language features.
To use KSP in your application you must enable the KSP Gradle plugin and add a KSP dependency
on Moshi codegen.
If you're switching from annotation processing (kapt) to KSP, you should remove the kapt plugin
and the kapt Moshi dependency.
New:
@Json(ignore = true)is a Moshi-specific way to exclude properties from JSON encodingand decoding.
New: Support Java 16 records. (Moshi still requires Java 8 only; we're shipping a [multi-release
jar][mrjar] to better support modern JVMs.)
New: Option to disable generating R8/ProGuard files. These files prevent code shrinkers from
removing files that support JSON processing. If you're not using ProGuard or R8, you can skip
this step.
Upgrade: [Kotlin 1.6.0][kotlin_1_6_0].
v1.12.02021-04-01
@SuppressLint.v1.11.02020-10-04
New: Kotlin extension functions and properties. Use of these extensions is only possible from
Kotlin, and requires the Kotlin stdlib dependency. This release does not have any Kotlin
requirement and can be used Kotlin-free from Java.
New: Experimental Kotlin extensions. These depend on unreleased APIs and may break in a future
release of Kotlin. If you are comfortable with this, add
@ExperimentalStdlibApiat the callsiteor add this argument to your Kotlin compiler:
"-Xopt-in=kotlin.ExperimentalStdlibApi".New:
JsonReader.nextSource(). This returns an OkioBufferedSourcethat streams the UTF-8bytes of a JSON value. Use this to accept JSON values without decoding them, to delegate to
another JSON processor, or for streaming access to very large embedded values.
New:
Moshi.Builder.addLast(). Use this when installing widely-applicable adapter factories likeKotlinJsonAdapterFactory. Adapters registered withadd()are preferred (in the order theywere added), followed by all adapters registered with
addLast()(also in the order they wereadded). This precedence is retained when
Moshi.newBuilder()is used.New:
setTag(),tag()methods onJsonReaderandJsonWriter. Use these as a side-channelbetween adapters and their uses. For example, a tag may be used to track use of unexpected
data in a custom adapter.
Fix: Don't crash with a
StackOverflowErrordecoding backward-referencing type variables inKotlin. This caused problems for parameterized types like
MyInterface<E : Enum<E>>.Upgrade: [Okio 1.17.5][okio_1_7_5].
Upgrade: [Kotlin 1.4.10][kotlin_1_4_10].
v1.10.02020-08-26
JsonReader.promoteNameToValue()makes it easier to build customMapadapters.Options.strings().PolymorphicJsonAdapterFactory.withFallbackJsonAdapter()makes it possible to handleunrecognized types when encoding and decoding.
JsonWriter.jsonValueAPIArrayListinstead ofList@Metadataannotationsv1.9.32020-06-11
Foo::classin the Kotlin adapter code generation.DefaultConstructorMarkerfrom the check forMetadata. A shrinker may have removedMetadataand we should still check forDefaultConstructorMarker.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.