play console fixes: r8 obfuscation, 16kb page support, v1.3.1

This commit is contained in:
Jan Pleterski
2026-11-20 14:10:25 +01:00
parent bd7acf519b
commit b22d7987e3
5 changed files with 36 additions and 6 deletions
+22
View File
@@ -0,0 +1,22 @@
# R8 keep rules for release builds. Keep these narrow: broad -keep rules defeat
# obfuscation, and Play flags DEX obfuscation below 25 %.
# flutter_local_notifications stores scheduled notifications as JSON via Gson
# (models are reflected on) and its receivers are declared in the manifest.
-keep class com.dexterous.flutterlocalnotifications.** { *; }
# Gson: generic type info is needed for TypeToken deserialization.
-keepattributes Signature, *Annotation*, EnclosingMethod, InnerClasses
-keep class com.google.gson.reflect.TypeToken { *; }
-keep class * extends com.google.gson.reflect.TypeToken
-keep class * extends com.google.gson.TypeAdapter
-keep class * implements com.google.gson.TypeAdapterFactory
-keep class * implements com.google.gson.JsonSerializer
-keep class * implements com.google.gson.JsonDeserializer
-keepclassmembers,allowobfuscation class * {
@com.google.gson.annotations.SerializedName <fields>;
}
# TensorFlow Lite: the native runtime calls back into these classes via JNI.
-keep class org.tensorflow.lite.** { *; }
-dontwarn org.tensorflow.lite.gpu.**