fix OCR in apx

This commit is contained in:
davmar
2026-08-29 18:02:35 +02:00
parent b3171d921b
commit 35d5c90d81
4 changed files with 36 additions and 12 deletions
+4
View File
@@ -34,6 +34,10 @@ android {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
// Flutter turns R8 on for release. That strips ML Kit classes
// discovered via manifest metadata / JNI, so OCR fails in the APK.
isMinifyEnabled = false
isShrinkResources = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro",