2017-11-10 21:54:31 +00:00
|
|
|
# Add project specific ProGuard rules here.
|
|
|
|
|
|
|
|
-dontobfuscate
|
|
|
|
|
|
|
|
# Preserve the line number information for debugging stack traces.
|
|
|
|
-keepattributes SourceFile,LineNumberTable
|
|
|
|
|
|
|
|
# Library specific rules
|
|
|
|
-dontnote android.net.http.*
|
|
|
|
-dontnote org.apache.commons.codec.**
|
|
|
|
-dontnote org.apache.http.**
|
|
|
|
-dontnote com.squareup.moshi.**
|
|
|
|
-dontnote com.github.amlcurran.showcaseview.**
|
|
|
|
-dontnote de.cketti.safecontentresolver.**
|
|
|
|
-dontnote com.tokenautocomplete.**
|
|
|
|
|
|
|
|
-dontwarn okio.**
|
|
|
|
-dontwarn com.squareup.moshi.**
|
|
|
|
|
2020-07-15 21:23:05 +00:00
|
|
|
# Glide
|
|
|
|
-keep public class * extends com.bumptech.glide.module.AppGlideModule
|
|
|
|
-keep public class * extends com.bumptech.glide.module.LibraryGlideModule
|
|
|
|
-keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
|
|
|
|
**[] $VALUES;
|
|
|
|
public *;
|
|
|
|
}
|
|
|
|
|
2017-11-10 21:54:31 +00:00
|
|
|
# Project specific rules
|
|
|
|
-dontnote com.fsck.k9.ui.messageview.**
|
|
|
|
-dontnote com.fsck.k9.view.**
|
2018-02-25 17:44:11 +00:00
|
|
|
|
2022-12-05 21:19:27 +00:00
|
|
|
-assumevalues class * extends android.view.View {
|
|
|
|
boolean isInEditMode() return false;
|
|
|
|
}
|
|
|
|
|
2018-02-25 17:44:11 +00:00
|
|
|
-keep public class org.openintents.openpgp.**
|
2018-09-17 12:33:35 +00:00
|
|
|
|
2019-02-09 04:23:37 +00:00
|
|
|
-keepclassmembers class * extends androidx.appcompat.widget.SearchView {
|
|
|
|
public <init>(android.content.Context);
|
2018-09-17 12:33:35 +00:00
|
|
|
}
|
2019-01-16 12:52:46 +00:00
|
|
|
|
2024-03-05 16:47:53 +00:00
|
|
|
-keep class com.fsck.k9.mail.oauth.XOAuth2Response { *; }
|
|
|
|
|
2019-01-16 12:52:46 +00:00
|
|
|
# okhttp rules
|
|
|
|
# see: https://github.com/square/okhttp/blob/master/okhttp/src/main/resources/META-INF/proguard/okhttp3.pro
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
-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
|
2023-04-18 11:27:09 +00:00
|
|
|
|
|
|
|
-dontwarn kotlinx.serialization.KSerializer
|
|
|
|
-dontwarn kotlinx.serialization.Serializable
|
|
|
|
-dontwarn org.apache.http.client.methods.CloseableHttpResponse
|
|
|
|
-dontwarn org.slf4j.impl.StaticLoggerBinder
|
2023-05-01 17:29:19 +00:00
|
|
|
|
|
|
|
-keep,allowshrinking class com.tokenautocomplete.TokenCompleteTextView
|