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