Skip to content

Commit 9d299fe

Browse files
committed
updated proguard rules
1 parent 8d67d97 commit 9d299fe

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

app/proguard-rules.pro

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# === General rules ===
2+
3+
-dontobfuscate # Only because of easy debugging
4+
15
# === RxJava ===
26

37
-dontwarn sun.misc.**
@@ -15,7 +19,7 @@
1519
rx.internal.util.atomic.LinkedQueueNode consumerNode;
1620
}
1721

18-
-dontnote rx.internal.util.PlatformDependent
22+
-dontnote rx.internal.util.**
1923

2024
# ===endof RxJava ===
2125

@@ -34,6 +38,8 @@
3438
# OkHttp platform used only on JVM and when Conscrypt dependency is available.
3539
-dontwarn okhttp3.internal.platform.ConscryptPlatform
3640

41+
-dontnote okhttp3.**
42+
3743
# ===endof OkHttp ===
3844

3945

@@ -77,4 +83,33 @@
7783
-dontwarn com.google.common.**
7884
-dontwarn com.google.auto.**
7985

80-
# ===endof Google autofactory ===
86+
-dontnote com.google.common.**
87+
-dontnote com.google.auto.**
88+
89+
# ===endof Google autofactory ===
90+
91+
# === GSON ===
92+
93+
# Gson uses generic type information stored in a class file when working with fields. Proguard
94+
# removes such information by default, so configure it to keep all of it.
95+
-keepattributes Signature
96+
97+
# For using GSON @Expose annotation
98+
-keepattributes *Annotation*
99+
100+
# Gson specific classes
101+
-dontwarn sun.misc.**
102+
#-keep class com.google.gson.stream.** { *; }
103+
104+
# Application classes that will be serialized/deserialized over Gson
105+
-keep class com.google.gson.examples.android.model.** { *; }
106+
107+
# Prevent proguard from stripping interface information from TypeAdapterFactory,
108+
# JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter)
109+
-keep class * implements com.google.gson.TypeAdapterFactory
110+
-keep class * implements com.google.gson.JsonSerializer
111+
-keep class * implements com.google.gson.JsonDeserializer
112+
113+
-dontnote com.google.gson.internal.**
114+
115+
# ===endof GSON ===

0 commit comments

Comments
 (0)