Moshi Json Annotation Does Not Work With Proguard
I followed https://github.com/square/moshi to add gradle dependency on moshi and proguard rules, then I write code to verify. data class Car( @Json(name = 'low_speed') val low
Solution 1:
Try to add:
@JsonClass(generateAdapter = false)AND add these lines to proguard:
-keepclassmembernames @com.squareup.moshi.JsonClassclass * extends java.lang.Enum {
<fields>;
}
Credit -> https://github.com/square/moshi/issues/689
Post a Comment for "Moshi Json Annotation Does Not Work With Proguard"