Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit 91216c4

Browse files
author
Langston Smith
authored
more tweaks (#837)
1 parent f3ee1da commit 91216c4

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

MapboxAndroidDemo/proguard-rules.pro

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# Retain generic type information for use by reflection by converters and adapters.
88
-keepattributes *Annotation*,Signature
99

10-
1110
# Retain declared checked exceptions for use by a Proxy instance.
1211
-keepattributes Exceptions
1312

@@ -106,23 +105,28 @@
106105
<init>(...);
107106
}
108107

108+
109109
-keep class * implements android.arch.lifecycle.LifecycleObserver {
110110
<init>(...);
111111
}
112112
-keepclassmembers class android.arch.** { *; }
113113
-keep class android.arch.** { *; }
114114
-dontwarn android.arch.**
115115

116-
# Mapbox Telemetry
117-
-keep com.mapbox.android.telemetry.**
118-
-keep com.mapbox.android.core.location.**
116+
# Mapbox
117+
-keep class com.mapbox.android.telemetry.**
118+
-keep class com.mapbox.android.core.location.**
119+
-keep class android.arch.lifecycle.** { *; }
120+
-keep class com.mapbox.android.core.location.** { *; }
121+
-keep class com.mapbox.mapboxsdk.** { *; }
119122

120123
# Other Android
121124
-dontnote android.net.http.*
122125
-dontnote org.apache.commons.codec.**
123126
-dontnote org.apache.http.**
124127

125-
-keep com.google.firebase.**
128+
129+
-keep class com.google.firebase.**
126130
-dontwarn org.xmlpull.v1.**
127131
-dontnote org.xmlpull.v1.**
128132
-keep class org.xmlpull.** { *; }

MapboxAndroidWearDemo/proguard-rules.pro

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@
6868
# MAS data models that will be serialized/deserialized over Gson
6969
-keep class com.mapbox.services.api.directionsmatrix.v1.models.** { *; }
7070

71+
-keep class android.arch.lifecycle.** { *; }
72+
-keep class com.mapbox.android.core.location.** { *; }
73+
-keep class com.mapbox.mapboxsdk.** { *; }
74+
7175
-dontnote com.squareup.**
7276

7377
# --- OkHttp ---
@@ -86,8 +90,16 @@
8690
-dontwarn com.mapbox.api.staticmap.v1.models.StaticMarkerAnnotation
8791
-dontwarn com.mapbox.api.staticmap.v1.models.StaticPolylineAnnotation
8892

93+
# Mapbox
94+
-keep class com.mapbox.android.telemetry.**
95+
-keep class com.mapbox.android.core.location.**
96+
-keep class android.arch.lifecycle.** { *; }
97+
-keep class com.mapbox.android.core.location.** { *; }
98+
-keep class com.mapbox.mapboxsdk.** { *; }
8999

90100
# Other Android
101+
-keep public class com.google.firebase.** { public *; }
102+
-keep class com.google.firebase.** { *; }
91103
-dontnote android.net.http.*
92104
-dontnote org.apache.commons.codec.**
93105
-dontnote org.apache.http.**

0 commit comments

Comments
 (0)