proguard-rules.pro

 1-dontobfuscate
 2
 3-keep class eu.siacs.conversations.**
 4
 5-keep class org.whispersystems.**
 6
 7-keep class com.kyleduo.switchbutton.Configuration
 8
 9-keep class com.soundcloud.android.crop.**
10
11-keep class com.google.android.gms.**
12
13-keep class org.openintents.openpgp.*
14
15-dontwarn org.bouncycastle.mail.**
16-dontwarn org.bouncycastle.x509.util.LDAPStoreHelper
17-dontwarn org.bouncycastle.jce.provider.X509LDAPCertStoreSpi
18-dontwarn org.bouncycastle.cert.dane.**
19-dontwarn rocks.xmpp.addr.**
20-dontwarn com.google.firebase.analytics.connector.AnalyticsConnector
21-dontwarn java.lang.**
22-dontwarn javax.lang.**
23
24
25# Retrofit does reflection on generic parameters. InnerClasses is required to use Signature and
26# EnclosingMethod is required to use InnerClasses.
27-keepattributes Signature, InnerClasses, EnclosingMethod
28
29# Retrofit does reflection on method and parameter annotations.
30-keepattributes RuntimeVisibleAnnotations, RuntimeVisibleParameterAnnotations
31
32# Retain service method parameters when optimizing.
33-keepclassmembers,allowshrinking,allowobfuscation interface * {
34    @retrofit2.http.* <methods>;
35}
36
37# Ignore annotation used for build tooling.
38-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
39
40# Ignore JSR 305 annotations for embedding nullability information.
41-dontwarn javax.annotation.**
42
43# Guarded by a NoClassDefFoundError try/catch and only used when on the classpath.
44-dontwarn kotlin.Unit
45
46# Top-level functions that can only be used by Kotlin.
47-dontwarn retrofit2.KotlinExtensions
48-dontwarn retrofit2.KotlinExtensions$*
49
50# With R8 full mode, it sees no subtypes of Retrofit interfaces since they are created with a Proxy
51# and replaces all potential values with null. Explicitly keeping the interfaces prevents this.
52-if interface * { @retrofit2.http.* <methods>; }
53-keep,allowobfuscation interface <1>