voice-command-android/app/proguard-rules.pro

22 lines
532 B
Prolog

# Voice Command ProGuard Rules
# Keep sherpa-onnx native methods
-keep class com.k2fsa.sherpa.onnx.** { *; }
-keepclassmembers class com.k2fsa.sherpa.onnx.** { *; }
# Keep native methods
-keepclasseswithmembernames class * {
native <methods>;
}
# Keep Kotlin metadata for reflection
-keepattributes *Annotation*
-keepattributes RuntimeVisibleAnnotations
# Keep coroutines
-keepnames class kotlinx.coroutines.** { *; }
# Keep Compose
-keep class androidx.compose.** { *; }
-keepclassmembers class androidx.compose.** { *; }