update proguard.

This commit is contained in:
JarvanMo
2024-11-19 15:12:16 +08:00
parent 6eeef094bb
commit bf404ef366
2 changed files with 21 additions and 1 deletions

View File

@ -17,3 +17,22 @@
-keepclassmembernames class kotlinx.** {
volatile <fields>;
}
## OkHttp
# JSR 305 annotations are for embedding nullability information.
-dontwarn javax.annotation.**
# A resource is loaded with a relative path so the package of this class must be preserved.
-keeppackagenames okhttp3.internal.publicsuffix.*
-adaptresourcefilenames okhttp3/internal/publicsuffix/PublicSuffixDatabase.gz
# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
-dontwarn org.codehaus.mojo.animal_sniffer.*
# OkHttp platform used only on JVM and when Conscrypt and other security providers are available.
-dontwarn okhttp3.internal.platform.**
-dontwarn org.conscrypt.**
-dontwarn org.bouncycastle.**
-dontwarn org.openjsse.**