44 lines
1.7 KiB
Prolog
44 lines
1.7 KiB
Prolog
# 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*, EnclosingMethod
|
|
|
|
# Reflection on classes from native code
|
|
-keep class com.google.gson.JsonArray { *; }
|
|
-keep class com.google.gson.JsonElement { *; }
|
|
-keep class com.google.gson.JsonObject { *; }
|
|
-keep class com.google.gson.JsonPrimitive { *; }
|
|
-dontnote com.google.gson.**
|
|
-keep enum org.maplibre.android.tile.TileOperation
|
|
-keep class org.maplibre.android.maps.RenderingStats { *; }
|
|
-keep class org.maplibre.android.maps.NativeMapOptions { *; }
|
|
-keepclassmembers class * extends java.lang.Enum {
|
|
<fields>;
|
|
public static **[] values();
|
|
public static ** valueOf(java.lang.String);
|
|
}
|
|
|
|
# dontnote for keeps the entry point x but not the descriptor class y
|
|
-dontnote org.maplibre.android.maps.MapLibreMap$OnFpsChangedListener
|
|
-dontnote org.maplibre.android.style.layers.PropertyValue
|
|
-dontnote org.maplibre.android.maps.MapLibreMap
|
|
-dontnote org.maplibre.android.maps.MapLibreMapOptions
|
|
-dontnote org.maplibre.android.log.LoggerDefinition
|
|
|
|
# config for mapbox-sdk-geojson:3.0.1
|
|
-keep class org.maplibre.geojson.** { *; }
|
|
-dontwarn com.google.auto.value.**
|
|
|
|
# config for additional notes
|
|
-dontnote org.robolectric.Robolectric
|
|
-dontnote libcore.io.Memory
|
|
-dontnote com.google.protobuf.**
|
|
-dontnote android.net.**
|
|
-dontnote org.apache.http.**
|
|
|
|
# config for mapbox-sdk-services
|
|
# while we don't include this dependency directly
|
|
# a large amount of users combine it with our SDK
|
|
# we aren't able to provide a proguard config in that project (jar vs aar)
|
|
-dontwarn com.sun.xml.internal.ws.spi.db.*
|