1-dontobfuscate
 2
 3-keep class eu.siacs.conversations.**
 4-keep class im.conversations.**
 5
 6-keep class org.whispersystems.**
 7
 8-keep class com.kyleduo.switchbutton.Configuration
 9
10-keep class com.soundcloud.android.crop.**
11
12-keep class com.google.android.gms.**
13
14-keep class org.openintents.openpgp.*
15-keep class org.webrtc.** { *; }
16
17-keep class com.google.gson.reflect.TypeToken
18-keep class * extends com.google.gson.reflect.TypeToken
19-keep public class * implements java.lang.reflect.Type
20
21-dontwarn javax.mail.internet.MimeMessage
22-dontwarn javax.mail.internet.MimeBodyPart
23-dontwarn javax.mail.internet.SharedInputStream
24-dontwarn javax.activation.DataContentHandler
25-dontwarn org.bouncycastle.mail.**
26-dontwarn org.bouncycastle.x509.util.LDAPStoreHelper
27-dontwarn org.bouncycastle.jce.provider.X509LDAPCertStoreSpi
28-dontwarn org.bouncycastle.cert.dane.**
29-dontwarn rocks.xmpp.addr.**
30-dontwarn com.google.firebase.analytics.connector.AnalyticsConnector
31-dontwarn java.lang.**
32-dontwarn javax.lang.**
33
34-dontwarn com.android.org.conscrypt.SSLParametersImpl
35-dontwarn org.apache.harmony.xnet.provider.jsse.SSLParametersImpl
36-dontwarn org.bouncycastle.jsse.BCSSLParameters
37-dontwarn org.bouncycastle.jsse.BCSSLSocket
38-dontwarn org.bouncycastle.jsse.provider.BouncyCastleJsseProvider
39-dontwarn org.openjsse.javax.net.ssl.SSLParameters
40-dontwarn org.openjsse.javax.net.ssl.SSLSocket
41-dontwarn org.openjsse.net.ssl.OpenJSSE
42-dontwarn org.jetbrains.annotations.**
43
44-keepclassmembers class eu.siacs.conversations.http.services.** {
45  !transient <fields>;
46}
47
48# Retrofit does reflection on generic parameters. InnerClasses is required to use Signature and
49# EnclosingMethod is required to use InnerClasses.
50-keepattributes Signature, InnerClasses, EnclosingMethod
51
52# Retrofit does reflection on method and parameter annotations.
53-keepattributes RuntimeVisibleAnnotations, RuntimeVisibleParameterAnnotations
54
55# Retain service method parameters when optimizing.
56-keepclassmembers,allowshrinking,allowobfuscation interface * {
57    @retrofit2.http.* <methods>;
58}
59
60# Ignore annotation used for build tooling.
61-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
62
63# Ignore JSR 305 annotations for embedding nullability information.
64-dontwarn javax.annotation.**
65
66# Guarded by a NoClassDefFoundError try/catch and only used when on the classpath.
67-dontwarn kotlin.Unit
68
69# Top-level functions that can only be used by Kotlin.
70-dontwarn retrofit2.KotlinExtensions
71-dontwarn retrofit2.KotlinExtensions$*
72
73
74# With R8 full mode, it sees no subtypes of Retrofit interfaces since they are created with a Proxy
75# and replaces all potential values with null. Explicitly keeping the interfaces prevents this.
76-if interface * { @retrofit2.http.* <methods>; }
77-keep,allowobfuscation interface <1>
78
79# Keep inherited services.
80-if interface * { @retrofit2.http.* <methods>; }
81-keep,allowobfuscation interface * extends <1>
82
83# With R8 full mode generic signatures are stripped for classes that are not
84# kept. Suspend functions are wrapped in continuations where the type argument
85# is used.
86-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation
87
88# R8 full mode strips generic signatures from return types if not kept.
89-if interface * { @retrofit2.http.* public *** *(...); }
90-keep,allowoptimization,allowshrinking,allowobfuscation class <3>
91
92-keepattributes *Annotation*,SourceFile,LineNumberTable