23 lines
1.1 KiB
Prolog
23 lines
1.1 KiB
Prolog
# 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.**
|