# Flutter specific rules -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.** { *; } -dontwarn io.flutter.embedding.** # Keep Flutter engine native methods -keep class io.flutter.embedding.engine.FlutterJNI { *; } # Audio players plugin -keep class com.ryanheise.just_audio.** { *; } -keep class xyz.luan.audioplayers.** { *; } # Network (Dio/Retrofit) -keepattributes Signature -keepattributes *Annotation* -keep class retrofit2.** { *; } -keep class com.google.gson.** { *; } -keepclassmembers,allowobfuscation class * { @com.google.gson.annotations.SerializedName ; } # Riverpod -keep class * extends com.riverpod.** { *; } # Flutter secure storage -keep class com.it_nomads.fluttersecurestorage.** { *; } # General Android rules -keepclassmembers class * implements android.os.Parcelable { public static final android.os.Parcelable$Creator CREATOR; } # Remove logging in release -assumenosideeffects class android.util.Log { public static *** d(...); public static *** v(...); public static *** i(...); }