# Flutter plugins whose Dart side calls Java/Kotlin through JNI (jni/jnigen, # e.g. shared_preferences_android, path_provider_android). R8 cannot see those # calls, so it would strip or rename the methods and every call fails at run # time with NoSuchMethodError (saved settings, sign-in and drafts were lost). -keep class io.flutter.plugins.** { *; } -keep class com.github.dart_lang.jni.** { *; } -keep class kotlin.** { *; } -keep class kotlinx.coroutines.** { *; }