mirror of
https://github.com/fankes/moshi.git
synced 2025-10-18 23:49:21 +08:00
@@ -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
|
||||
--------
|
||||
|
Reference in New Issue
Block a user