summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorTobrun <tobrun.van.nuland@gmail.com>2016-08-22 14:49:47 +0200
committerGitHub <noreply@github.com>2016-08-22 14:49:47 +0200
commit3ef272e389a24147537b315d83d62b3cc4ea5487 (patch)
treedfa6c382aa8aef5e4fcd379bac4e291876508848 /platform
parent44fe8ef7eaad9b6845b64abd07c05f84a6f8cb48 (diff)
downloadqtlocation-mapboxgl-3ef272e389a24147537b315d83d62b3cc4ea5487.tar.gz
[android] #6077 - keep rules for Signature and Annotation (#6085)
* [android] #6077 - keep rules for Signature and Annotation, reordered file to mimic package structure project. * [android] #6077 - proguard workaround for mapbox-java
Diffstat (limited to 'platform')
-rw-r--r--platform/android/MapboxGLAndroidSDK/proguard-rules.pro27
1 files changed, 17 insertions, 10 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/proguard-rules.pro b/platform/android/MapboxGLAndroidSDK/proguard-rules.pro
index 8e9817df17..ddd7730ac4 100644
--- a/platform/android/MapboxGLAndroidSDK/proguard-rules.pro
+++ b/platform/android/MapboxGLAndroidSDK/proguard-rules.pro
@@ -1,14 +1,21 @@
# By default, the flags in this file are appended to flags specified
# in ../sdk/tools/proguard/proguard-android.txt,
# contents of this file will be appended into proguard-android.txt
+-keepattributes Signature, *Annotation*
# Square okio, ignoring warnings,
# see https://github.com/square/okio/issues/60
-dontwarn okio.**
+# Gesture package
+-keep class almeros.android.multitouch.gesturedetectors.** { *; }
+
# Package: annotations
-keep class com.mapbox.mapboxsdk.annotations.** { *; }
+# Package camera
+-keep class com.mapbox.mapboxsdk.camera.** { *; }
+
# Package: geometry
-keep class com.mapbox.mapboxsdk.geometry.** { *; }
@@ -18,17 +25,17 @@
# Package maps
-keep class com.mapbox.mapboxsdk.maps.** { *; }
-# Package telemetry
--keep class com.mapbox.mapboxsdk.telemetry.** { *; }
+# Package offline
+-keep class com.mapbox.mapboxsdk.offline.** { *; }
-# Package layers
--keep class com.mapbox.mapboxsdk.layers.** { *; }
+# Package style
+-keep class com.mapbox.mapboxsdk.style.layers.** { *; }
+-keep class com.mapbox.mapboxsdk.style.sources.** { *; }
-# Package camera
--keep class com.mapbox.mapboxsdk.camera.** { *; }
+# Package telemetry
+-keep class com.mapbox.mapboxsdk.telemetry.** { *; }
-# Package offline
--keep class com.mapbox.mapboxsdk.offline.** { *; }
+# Keep external project mapbox-java,
+# Needs to be removed after https://github.com/mapbox/mapbox-java/issues/178 is resolved
+-keep class com.mapbox.services.** { *; }
-# Gesture package
--keep class almeros.android.multitouch.gesturedetectors.** { *; }