Created
January 17, 2019 14:20
-
-
Save pawelkw/c5bc377ea4fc6cdbd93bc770c0895879 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# JSR 305 annotations are for embedding nullability information. | |
-dontwarn javax.annotation.** | |
-keepclasseswithmembers class * { | |
@com.squareup.moshi.* <methods>; | |
} | |
-keep @com.squareup.moshi.JsonQualifier interface * | |
# Enum field names are used by the integrated EnumJsonAdapter. | |
# Annotate enums with @JsonClass(generateAdapter = false) to use them with Moshi. | |
-keepclassmembers @com.squareup.moshi.JsonClass class * extends java.lang.Enum { | |
<fields>; | |
} | |
# The name of @JsonClass types is used to look up the generated adapter. | |
-keepnames @com.squareup.moshi.JsonClass class * | |
## Retain generated JsonAdapters if annotated type is retained. | |
-keep public class * extends com.squareup.moshi.JsonAdapter { | |
<init>(...); | |
<fields>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment