2020-05-13 19:51:30 +02:00
|
|
|
-optimizationpasses 5
|
2020-01-03 00:15:12 +01:00
|
|
|
## Flutter wrapper
|
|
|
|
-keep class io.flutter.app.** { *; }
|
|
|
|
-keep class io.flutter.plugin.** { *; }
|
|
|
|
-keep class io.flutter.util.** { *; }
|
|
|
|
-keep class io.flutter.view.** { *; }
|
|
|
|
-keep class io.flutter.** { *; }
|
|
|
|
-keep class io.flutter.plugins.** { *; }
|
2022-02-23 17:49:22 +01:00
|
|
|
-dontwarn io.flutter.embedding.**
|
|
|
|
|
|
|
|
##---------------Begin: proguard configuration for Gson (Needed for flutter_local_notifications) ----------
|
|
|
|
# Gson uses generic type information stored in a class file when working with fields. Proguard
|
|
|
|
# removes such information by default, so configure it to keep all of it.
|
|
|
|
-keepattributes Signature
|
|
|
|
|
|
|
|
# For using GSON @Expose annotation
|
|
|
|
-keepattributes *Annotation*
|
|
|
|
|
|
|
|
# Gson specific classes
|
|
|
|
-dontwarn sun.misc.**
|
|
|
|
|
|
|
|
# Application classes that will be serialized/deserialized over Gson
|
|
|
|
-keep class com.google.gson.examples.android.model.** { <fields>; }
|
|
|
|
|
|
|
|
# Prevent proguard from stripping interface information from TypeAdapter, TypeAdapterFactory,
|
|
|
|
# JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter)
|
|
|
|
-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
|
|
|
|
|
|
|
|
# Prevent R8 from leaving Data object members always null
|
|
|
|
-keepclassmembers,allowobfuscation class * {
|
|
|
|
@com.google.gson.annotations.SerializedName <fields>;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Retain generic signatures of TypeToken and its subclasses with R8 version 3.0 and higher.
|
|
|
|
-keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken
|
|
|
|
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
|
|
|
|
|
|
|
|
##---------------End: proguard configuration for Gson (Needed for flutter_local_notifications) ----------
|