diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 481bb434814107eb79d7a30b676d344b0df2f8ce..a382223392b21988c378cc300c9135624589b790 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -18,4 +18,57 @@ # If you keep the line number information, uncomment this to # hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file +#-renamesourcefileattribute SourceFile + +## Okio start https://github.com/square/okio/blob/master/okio/src/jvmMain/resources/META-INF/proguard/okio.pro +# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java. +-dontwarn org.codehaus.mojo.animal_sniffer. +## Okio end + +## OkHttp start https://github.com/square/okhttp/blob/master/okhttp/src/main/resources/META-INF/proguard/okhttp3.pro +# A resource is loaded with a relative path so the package of this class must be preserved. +-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase + +# 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 dependency is available. +-dontwarn okhttp3.internal.platform.ConscryptPlatform +-dontwarn org.conscrypt.ConscryptHostnameVerifier +## OkHttp end + +## Glide start https://github.com/bumptech/glide +-keep public class * implements com.bumptech.glide.module.GlideModule +-keep class * extends com.bumptech.glide.module.AppGlideModule { + <init>(...); +} +-keep public enum com.bumptech.glide.load.ImageHeaderParser$** { + **[] $VALUES; + public *; +} +-keep class com.bumptech.glide.load.data.ParcelFileDescriptorRewinder$InternalRewinder { + *** rewind(); +} +## Glide end + +## Navigation component custom start +-keepclassmembers class * implements android.os.Parcelable { + public static final ** CREATOR; +} + +-keep class * implements android.os.Parcelable { +*; +} + +-keepnames class * implements android.os.Parcelable { + public static final ** CREATOR; +} + +-keep class * extends java.io.Serializable +## Navigation component custom end + +# RenderScript +-keepclasseswithmembernames class * { +native <methods>; +} +-keep class androidx.renderscript.** { *; } \ No newline at end of file