Moshi v1.10.0 Release Notes

  • 2020-08-26

    • New: Upgrade to Kotlin 1.4.0.
    • New: JsonReader.promoteNameToValue() makes it easier to build custom Map adapters.
    • New: Options.strings().
    • New: PolymorphicJsonAdapterFactory.withFallbackJsonAdapter() makes it possible to handle unrecognized types when encoding and decoding.
    • New: Add JsonWriter.jsonValue API
    • New: Code gen now generates precise proguard rules on-the-fly.
    • New: Improve error when incorrectly trying to use a collection class like ArrayList instead of List
    • Fix: Prevent R8 from keeping all @Metadata annotations
    • Fix: Avoid VerifyErrors on Android 4.4 devices when using R8
    • Fix: Fix resolution of types in superclass settable properties