Files
receipity/android/app/proguard-rules.pro
2026-08-29 18:02:35 +02:00

16 lines
849 B
Prolog

# ML Kit text recognition is wired up through manifest metadata, reflection,
# and JNI. R8 otherwise strips those classes and OCR fails in release APKs.
-keep class com.google.mlkit.** { *; }
-keep class com.google.android.gms.internal.mlkit_** { *; }
-keep class com.google.android.gms.internal.mlkit_vision_** { *; }
-keep class com.google.android.libraries.vision.** { *; }
-keep class com.google_mlkit_commons.** { *; }
-keep class com.google_mlkit_text_recognition.** { *; }
-keep class * implements com.google.firebase.components.ComponentRegistrar { *; }
# The Flutter plugin references optional script packs that this app does not ship.
-dontwarn com.google.mlkit.vision.text.chinese.**
-dontwarn com.google.mlkit.vision.text.devanagari.**
-dontwarn com.google.mlkit.vision.text.japanese.**
-dontwarn com.google.mlkit.vision.text.korean.**