Skip to content

Commit

Permalink
Stop proguard from obfuscating enum members used by JNI
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilsnd committed Sep 9, 2024
1 parent 48a1936 commit 986ee92
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions platform/android/MapLibreAndroid/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
-keep class com.google.gson.JsonObject { *; }
-keep class com.google.gson.JsonPrimitive { *; }
-dontnote com.google.gson.**
-keep enum org.maplibre.android.tile.TileOperation
-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
Expand Down

0 comments on commit 986ee92

Please sign in to comment.