From 7829f9a65bdbb4fb115bb071a96e11eb0eaa65ea Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Thu, 11 Jun 2020 15:38:01 -0400 Subject: [PATCH] Prepare version 1.9.3 (cherry picked from commit c7d0766c03842a411d52d691de343dd4f874f1d7) --- CHANGELOG.md | 10 ++++++++++ README.md | 12 ++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5acf98c..e796f5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,16 @@ Change Log ========== +## Version 1.9.3 + +_2020-06-11_ + + * Fix: Tweak a shrinker rule to mitigate an R8 bug which was causing classes unrelated to the Kotlin adpater code generation to be retained. + * Fix: Ensure that the Kotlin adapter code generation does not line wrap in the middle of a string if your JSON keys contain spaces. + * Fix: Strip type anotations before emitting type references like `Foo::class` in the Kotlin adapter code generation. + * Fix: Separate the runtime check for Kotlin's `DefaultConstructorMarker` from the check for `Metadata`. A shrinker may have removed `Metadata` and we should still check for `DefaultConstructorMarker`. + + ## Version 1.9.2 _2019-11-17_ diff --git a/README.md b/README.md index 7844fa0..24311b3 100644 --- a/README.md +++ b/README.md @@ -532,12 +532,12 @@ The reflection adapter requires the following additional dependency: com.squareup.moshi moshi-kotlin - 1.9.2 + 1.9.3 ``` ```kotlin -implementation("com.squareup.moshi:moshi-kotlin:1.9.2") +implementation("com.squareup.moshi:moshi-kotlin:1.9.3") ``` Note that the reflection adapter transitively depends on the `kotlin-reflect` library which is a @@ -567,13 +567,13 @@ add the following to your build to enable the annotation processor: com.squareup.moshi moshi-kotlin-codegen - 1.9.2 + 1.9.3 provided ``` ```kotlin -kapt("com.squareup.moshi:moshi-kotlin-codegen:1.9.2") +kapt("com.squareup.moshi:moshi-kotlin-codegen:1.9.3") ``` You must also have the `kotlin-stdlib` dependency on the classpath during compilation in order for @@ -599,12 +599,12 @@ Download [the latest JAR][dl] or depend via Maven: com.squareup.moshi moshi - 1.9.2 + 1.9.3 ``` or Gradle: ```kotlin -implementation("com.squareup.moshi:moshi:1.9.2") +implementation("com.squareup.moshi:moshi:1.9.3") ``` Snapshots of the development version are available in [Sonatype's `snapshots` repository][snap].