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