proguard-rules.pro

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