Added proguard config for SDK

Updated build.gradle from the SDK to correct use proguard file from a AAR library

Adjusted build.gradle sample app to use the thumb proguard file

Added proguard config for SDK, added thumb config for sample project

Updated build.gradle from the SDK to correct use proguard file from a AAR library

Adjusted build.gradle sample app to use the thumb proguard file

Added proguard config for SDK, added thumb config for sample project

Updated build.gradle from the SDK to correct use proguard file from a AAR library

Adjusted build.gradle sample app to use the thumb proguard file
This commit is contained in:
tobrunvannuland
2015-08-30 20:46:13 +02:00
committed by Tobrun Van Nuland
parent c6e3ed8c66
commit dabfec6ddc
4 changed files with 27 additions and 3 deletions

View File

@@ -65,9 +65,8 @@ android {
}
release {
minifyEnabled false
jniDebuggable false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
consumerProguardFiles 'proguard-rules.pro'
}
}
}

View File

@@ -0,0 +1,24 @@
# 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
# Square okio, ignoring warnings,
# see https://github.com/square/okio/issues/60
-dontwarn okio.**
# Package: annotations
-keep class com.mapbox.mapboxgl.annotations.** { *; }
# Package: geometry
-keep class com.mapbox.mapboxgl.geometry.** { *; }
# Package: http
-keep class com.mapbox.mapboxgl.http.** { *; }
# Package views
-keep class com.mapbox.mapboxgl.views.MapView**
-keep class com.mapbox.mapboxgl.views.NativeMapView**
-keepclassmembers class com.mapbox.mapboxgl.views.NativeMapView** {
*;
}