Update README notes about R8/proguard

Resolves #1166
This commit is contained in:
Zac Sweers
2020-07-29 00:07:41 -04:00
committed by GitHub
parent 7f2630daee
commit 3eb95f277c

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
--------