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