|
| 1 | +# Flutter framework and engine (core retention rules) |
| 2 | +-keep class io.flutter.app.** { *; } |
| 3 | +-keep class io.flutter.plugin.** { *; } |
| 4 | +-keep class io.flutter.util.** { *; } |
| 5 | +-keep class io.flutter.view.** { *; } |
| 6 | +-keep class io.flutter.** { *; } |
| 7 | +-keep class io.flutter.plugins.** { *; } |
| 8 | +-dontwarn io.flutter.embedding.** |
| 9 | +-ignorewarnings |
| 10 | +-keep class io.flutter.embedding.engine.plugins.** { *; } |
| 11 | +-keep class io.flutter.embedding.engine.renderer.** { *; } |
| 12 | +-keep class io.flutter.embedding.engine.systemchannels.** { *; } |
| 13 | + |
| 14 | +# FFmpegKit rules |
| 15 | +-keep class com.antonkarpenko.ffmpegkit.** { *; } |
| 16 | +-dontwarn com.antonkarpenko.ffmpegkit.** |
| 17 | + |
| 18 | +# Keep all FFmpegKit native methods |
| 19 | +-keepclasseswithmembernames class * { |
| 20 | + native <methods>; |
| 21 | +} |
| 22 | + |
| 23 | +# Keep FFmpegKit Config |
| 24 | +-keep class com.antonkarpenko.ffmpegkit.FFmpegKitConfig { |
| 25 | + *; |
| 26 | +} |
| 27 | + |
| 28 | +# Keep ABI Detection |
| 29 | +-keep class com.antonkarpenko.ffmpegkit.AbiDetect { |
| 30 | + *; |
| 31 | +} |
| 32 | + |
| 33 | +# Keep all FFmpegKit sessions |
| 34 | +-keep class com.antonkarpenko.ffmpegkit.*Session { |
| 35 | + *; |
| 36 | +} |
| 37 | + |
| 38 | +# Keep FFmpegKit callbacks |
| 39 | +-keep class com.antonkarpenko.ffmpegkit.*Callback { |
| 40 | + *; |
| 41 | +} |
| 42 | + |
| 43 | +# Preserve all public classes in ffmpegkit |
| 44 | +-keep public class com.antonkarpenko.ffmpegkit.** { |
| 45 | + public *; |
| 46 | +} |
| 47 | + |
| 48 | +# Keep reflection-based access |
| 49 | +-keepattributes *Annotation* |
| 50 | +-keepattributes Signature |
| 51 | +-keepattributes InnerClasses |
0 commit comments