mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 08:29:22 +08:00
Prepare version 1.9.3
(cherry picked from commit c7d0766c03842a411d52d691de343dd4f874f1d7)
This commit is contained in:
10
CHANGELOG.md
10
CHANGELOG.md
@@ -1,6 +1,16 @@
|
|||||||
Change Log
|
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
|
## Version 1.9.2
|
||||||
|
|
||||||
_2019-11-17_
|
_2019-11-17_
|
||||||
|
12
README.md
12
README.md
@@ -532,12 +532,12 @@ The reflection adapter requires the following additional dependency:
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.squareup.moshi</groupId>
|
<groupId>com.squareup.moshi</groupId>
|
||||||
<artifactId>moshi-kotlin</artifactId>
|
<artifactId>moshi-kotlin</artifactId>
|
||||||
<version>1.9.2</version>
|
<version>1.9.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
```
|
```
|
||||||
|
|
||||||
```kotlin
|
```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
|
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:
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.squareup.moshi</groupId>
|
<groupId>com.squareup.moshi</groupId>
|
||||||
<artifactId>moshi-kotlin-codegen</artifactId>
|
<artifactId>moshi-kotlin-codegen</artifactId>
|
||||||
<version>1.9.2</version>
|
<version>1.9.3</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
```
|
```
|
||||||
|
|
||||||
```kotlin
|
```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
|
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:
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.squareup.moshi</groupId>
|
<groupId>com.squareup.moshi</groupId>
|
||||||
<artifactId>moshi</artifactId>
|
<artifactId>moshi</artifactId>
|
||||||
<version>1.9.2</version>
|
<version>1.9.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
```
|
```
|
||||||
or Gradle:
|
or Gradle:
|
||||||
```kotlin
|
```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].
|
Snapshots of the development version are available in [Sonatype's `snapshots` repository][snap].
|
||||||
|
Reference in New Issue
Block a user