Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
moshi/moshi/src/main/resources/META-INF/proguard/moshi.pro
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
27 lines (22 sloc)
954 Bytes
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. | |
# values() is synthesized by the Kotlin compiler and is used by EnumJsonAdapter indirectly | |
# Annotate enums with @JsonClass(generateAdapter = false) to use them with Moshi. | |
-keepclassmembers @com.squareup.moshi.JsonClass class * extends java.lang.Enum { | |
<fields>; | |
**[] values(); | |
} | |
# Keep helper method to avoid R8 optimisation that would keep all Kotlin Metadata when unwanted | |
-keepclassmembers class com.squareup.moshi.internal.Util { | |
private static java.lang.String getKotlinMetadataClassName(); | |
} | |
# Keep ToJson/FromJson-annotated methods | |
-keepclassmembers class * { | |
@com.squareup.moshi.FromJson <methods>; | |
@com.squareup.moshi.ToJson <methods>; | |
} |