mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 07:59:21 +08:00
Merge pull request #1181 from ZacSweers/patch-4
Update README notes about R8/proguard
This commit is contained in:
@@ -613,11 +613,7 @@ Snapshots of the development version are available in [Sonatype's `snapshots` re
|
|||||||
R8 / ProGuard
|
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+.
|
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.
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
||||||
License
|
License
|
||||||
--------
|
--------
|
||||||
|
Reference in New Issue
Block a user