Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart
1.1 KB
Raw Blame
# Flutter
# NOTE: the broad `-keep class io.flutter.** { *; }` lives in
# proguard-flutter-keep.pro and is applied only to the github + playstore
# flavors. The fdroid flavor deliberately omits it so R8 strips Flutter's
# unused deferred-components manager (which references proprietary Play Core).
-keep class io.flutter.plugins.** { *; }

# just_audio
-keep class com.google.android.exoplayer2.** { *; }
-keep class androidx.media3.** { *; }

# audio_service
-keep class com.ryanheise.audioservice.** { *; }

# Google Play Core (not used but referenced by Flutter engine)
-dontwarn com.google.android.play.core.**

# Keep all annotations
-keepattributes *Annotation*
-keepattributes Signature

# flutter_local_notifications + Gson generic signatures
-keep class com.dexterous.flutterlocalnotifications.** { *; }
-keep class com.google.gson.reflect.TypeToken { *; }
-keep class * extends com.google.gson.reflect.TypeToken { *; }

# Prevent stripping of native methods
-keepclasseswithmembernames class * {
    native <methods>;
}

# home_widget
-keep class es.antonborri.home_widget.** { *; }