summaryrefslogtreecommitdiff
path: root/app/proguard-rules.pro
diff options
context:
space:
mode:
authorTom Cooks <tommasogagliardi+github@gmail.com>2026-10-11 12:23:04 -0400
committerTom Cooks <tommasogagliardi+github@gmail.com>2026-10-11 12:23:04 -0400
commit588a52ca8fdbce5ecde3aa8b8f626e9eece483a6 (patch)
tree25f17de1e53fc652b615950a4dcf90717e09866d /app/proguard-rules.pro
parent4c402e05224549d1ec4419db3b409172641e14c1 (diff)
downloadreccoon-588a52ca8fdbce5ecde3aa8b8f626e9eece483a6.tar.gz
Enable R8 minification and resource shrinkingv1.0.0
Diffstat (limited to 'app/proguard-rules.pro')
-rw-r--r--app/proguard-rules.pro14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
index d11f58e..bdbdae3 100644
--- a/app/proguard-rules.pro
+++ b/app/proguard-rules.pro
@@ -1,2 +1,16 @@
# Add project specific ProGuard rules here.
-keepattributes SourceFile,LineNumberTable
+
+# sherpa-onnx's Kotlin API is invoked from the native libraries through JNI, so
+# nothing in that package may be renamed or removed.
+-keep class com.k2fsa.sherpa.onnx.** { *; }
+-keepclasseswithmembernames class * {
+ native <methods>;
+}
+
+# Custom views are instantiated by the layout inflater via reflection.
+-keep public class * extends android.view.View {
+ public <init>(android.content.Context);
+ public <init>(android.content.Context, android.util.AttributeSet);
+ public <init>(android.content.Context, android.util.AttributeSet, int);
+}