Skip to content

Commit 325f846

Browse files
committed
Add proguard rules to android library (#43)
1 parent d96ac84 commit 325f846

1 file changed

Lines changed: 25 additions & 6 deletions

File tree

libandroid/lib/proguard-rules.pro

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,28 @@
99

1010
# Add any project specific keep options here:
1111

12-
# If your project uses WebView with JS, uncomment the following
13-
# and specify the fully qualified class name to the JavaScript interface
14-
# class:
15-
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16-
# public *;
17-
#}
12+
# Retrofit 2
13+
# See: http://square.github.io/retrofit/#download
14+
-dontwarn retrofit2.**
15+
-keep class retrofit2.** { *; }
16+
-keepattributes Signature
17+
-keepattributes Exceptions
18+
19+
# RxJava
20+
# See: https://github.com/ReactiveX/RxAndroid/pull/220
21+
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
22+
long producerIndex;
23+
long consumerIndex;
24+
}
25+
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef {
26+
rx.internal.util.atomic.LinkedQueueNode producerNode;
27+
}
28+
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef {
29+
rx.internal.util.atomic.LinkedQueueNode consumerNode;
30+
}
31+
-dontwarn sun.misc.Unsafe
32+
33+
# MAS Data Models
34+
-keep class com.mapbox.services.directions.v4.models.** { *; }
35+
-keep class com.mapbox.services.directions.v5.models.** { *; }
36+
-keep class com.mapbox.services.geocoding.v5.models.** { *; }

0 commit comments

Comments
 (0)