Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# JNI callbacks invoked by maplibre_gl's native WindParticleHost.
# R8 cannot see these calls because they originate in C++: without this rule a
# release build renames or drops all four, GetMethodID fails, and opening a
# wind layer crashes with NoSuchMethodError. Debug builds are not shrunk, so
# only a release build shows it.
#
# Flutter's Gradle plugin enables R8 for release builds and adds this file
# when it exists; build.gradle.kts needs no change for it to apply.
-keepclassmembers class org.maplibre.maplibregl.WindParticleLayer {
void onNativeInitialize();
void onNativeRender(double, double, double, double, double, double);
void onNativeContextLost();
void onNativeDeinitialize();
}
Loading