Merge pull request #1181 from ZacSweers/patch-4

Update README notes about R8/proguard
This commit is contained in:
Jesse Wilson
2020-07-30 21:39:41 -04:00
committed by GitHub

View File

@@ -613,11 +613,7 @@ Snapshots of the development version are available in [Sonatype's `snapshots` re
R8 / ProGuard
--------
If you are using R8 or ProGuard add the options from [this file](https://github.com/square/moshi/blob/master/moshi/src/main/resources/META-INF/proguard/moshi.pro). If using Android, this requires Android Gradle Plugin 3.2.0+.
The `moshi-kotlin` artifact additionally requires the options from [this file](https://github.com/square/moshi/blob/master/kotlin/reflect/src/main/resources/META-INF/proguard/moshi-kotlin.pro)
You might also need rules for Okio which is a dependency of this library.
Moshi contains minimally required rules for its own internals to work without need for consumers to embed their own. However if you are using reflective serialization and R8 or ProGuard, you must add keep rules in your proguard configuration file for your reflectively serialized classes.
License
--------