META-INF.proguard.fastjson2.pro Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastjson2 Show documentation
Show all versions of fastjson2 Show documentation
Fastjson is a JSON processor (JSON parser + JSON generator) written in Java
The newest version!
-keep, allowoptimization, allowobfuscation
@com.alibaba.fastjson2.annotation.JSONType class *
# Keep the fields and methods with @JSONField
-keepclassmembers, allowobfuscation class * {
@com.alibaba.fastjson2.annotation.JSONField ;
@com.alibaba.fastjson2.annotation.JSONField ;
}
# Ignore warning
-dontwarn java.beans.Transient
-dontwarn com.alibaba.fastjson.*
# Keep the fields and methods annotated with
# @JSONField for classes which are referenced
-if class * {
@com.alibaba.fastjson2.annotation.JSONField ;
}
-keep, allowobfuscation, allowoptimization class <1>
-if class * {
@com.alibaba.fastjson2.annotation.JSONField ;
}
-keep, allowobfuscation, allowoptimization class <1>
# Keep any (anonymous) classes extending TypeReference
-keep, allowobfuscation class com.alibaba.fastjson2.TypeReference
-keep, allowobfuscation class * extends com.alibaba.fastjson2.TypeReference