1
+ # === General rules ===
2
+
3
+ -dontobfuscate # Only because of easy debugging
4
+
1
5
# === RxJava ===
2
6
3
7
-dontwarn sun.misc.**
15
19
rx.internal.util.atomic.LinkedQueueNode consumerNode;
16
20
}
17
21
18
- -dontnote rx.internal.util.PlatformDependent
22
+ -dontnote rx.internal.util.**
19
23
20
24
# ===endof RxJava ===
21
25
34
38
# OkHttp platform used only on JVM and when Conscrypt dependency is available.
35
39
-dontwarn okhttp3.internal.platform.ConscryptPlatform
36
40
41
+ -dontnote okhttp3.**
42
+
37
43
# ===endof OkHttp ===
38
44
39
45
77
83
-dontwarn com.google.common.**
78
84
-dontwarn com.google.auto.**
79
85
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