Merge pull request #214 from TouchInstinct/proguard/moshi_and_androidx_security
added moshi and androidX security proguard rules
This commit is contained in:
commit
80eafad3fe
|
|
@ -7,3 +7,5 @@
|
|||
-include rules/glide.pro
|
||||
-include rules/kaspersky.pro
|
||||
-include rules/appsflyer.pro
|
||||
-include rules/moshi.pro
|
||||
-include rules/androidx_security.pro
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
-keepclassmembers class * extends com.google.crypto.tink.shaded.protobuf.GeneratedMessageLite {
|
||||
<fields>;
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
# 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 class kotlin.reflect.jvm.internal.impl.builtins.BuiltInsLoaderImpl
|
||||
|
||||
-keepclassmembers class kotlin.Metadata {
|
||||
public <methods>;
|
||||
}
|
||||
Loading…
Reference in New Issue