# 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.** { *; } # Flutter Local Notifications -keep class com.dexterous.** { *; } -keep class com.dexterous.flutterlocalnotifications.** { *; } -dontwarn com.dexterous.flutterlocalnotifications.** # AndroidX -keep class androidx.core.app.NotificationCompat { *; } -keep class androidx.core.app.NotificationCompat$** { *; } -keep class androidx.core.app.NotificationManagerCompat { *; } # Keep notification channels (Android 8.0+) -keep class android.app.NotificationChannel { *; } -keep class android.app.NotificationManager { *; } # MQTT Client -keep class org.eclipse.paho.** { *; } -keep class org.eclipse.paho.client.mqttv3.** { *; } -dontwarn org.eclipse.paho.** # Kotlin -keep class kotlin.** { *; } -keep class kotlin.Metadata { *; } -dontwarn kotlin.** -keepclassmembers class **$WhenMappings { ; } -keepclassmembers class kotlin.Metadata { public ; } # Keep generic signature of Call, Response (R8 full mode strips signatures from non-kept items). -keep,allowobfuscation,allowshrinking interface retrofit2.Call -keep,allowobfuscation,allowshrinking class retrofit2.Response # With R8 full mode generic signatures are stripped for classes that are not # kept. Suspend functions are wrapped in continuations where the type argument # is used. -keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation # Keep native methods -keepclasseswithmembernames class * { native ; } # Keep setters in Views so that animations can still work. -keepclassmembers public class * extends android.view.View { void set*(***); *** get*(); } # Keep classes with @Keep annotation -keep @androidx.annotation.Keep class * {*;} -keepclasseswithmembers class * { @androidx.annotation.Keep ; } -keepclasseswithmembers class * { @androidx.annotation.Keep ; } -keepclasseswithmembers class * { @androidx.annotation.Keep (...); }