# Google ML Kit Text Recognition
-keep class com.google.mlkit.vision.text.** { *; }
-dontwarn com.google.mlkit.vision.text.**

# Keep all classes referenced by ML Kit
-keep class com.google.android.gms.** { *; }
-dontwarn com.google.android.gms.**

# ML Kit Japanese OCR model classes - IMPORTANT: do not remove
-keep class com.google.mlkit.vision.text.japanese.** { *; }
-keep class com.google.mlkit.vision.text.chinese.** { *; }
-keep class com.google.mlkit.vision.text.devanagari.** { *; }
-keep class com.google.mlkit.vision.text.korean.** { *; }

-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.**

# TensorFlow Lite (ML Kit dependency)
-keep class org.tensorflow.lite.** { *; }
-dontwarn org.tensorflow.lite.**

# Native libraries
-keepclasseswithmembernames class * {
    native <methods>;
}

# ML Kit internal classes
-keep class com.google.mlkit.common.** { *; }
-keep class com.google.mlkit.** { *; }
