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:
committed by
Tobrun Van Nuland
parent
c6e3ed8c66
commit
dabfec6ddc
@@ -65,9 +65,8 @@ android {
|
||||
}
|
||||
|
||||
release {
|
||||
minifyEnabled false
|
||||
jniDebuggable false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
||||
consumerProguardFiles 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
24
android/java/MapboxGLAndroidSDK/proguard-rules.pro
vendored
Normal file
24
android/java/MapboxGLAndroidSDK/proguard-rules.pro
vendored
Normal 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** {
|
||||
*;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user