Skip to content

Scram v1.0.1

Choose a tag to compare

@erfunm erfunm released this 09 Aug 11:50
· 6 commits to main since this release

Release Notes - v1.0.1

🔧 Critical ML Kit OCR Fix

Issue Resolved

Fixed a critical OCR functionality issue caused by ML Kit dependency incompatibility with Android 16 Beta. The existing ML Kit standalone SDK (com.google.mlkit:text-recognition) was experiencing model loading failures on newer Android versions, preventing text recognition from working properly.

Root Cause

  • Platform Compatibility Issue: The standalone ML Kit SDK had model download/initialization problems specifically on Android 16 Beta devices
  • Model Loading Failures: ML Kit was unable to access required OCR model files (taser_tflite_gocrlatin_mbv2_scriptid_aksara_layout_gcn_mobile_engine.binarypb) through the standard delivery mechanism
  • Android Version-Specific Bug: This was not an application code issue, but rather an upstream compatibility problem between ML Kit's model distribution system and Android 16 Beta

Solution Implemented

  • Migrated to Play Services ML Kit: Switched from com.google.mlkit:text-recognition:16.0.0 to com.google.android.gms:play-services-mlkit-text-recognition:18.0.2
  • Added Required Manifest Configuration: Implemented proper ML Kit dependency declaration in AndroidManifest.xml
  • Enhanced Model Download Reliability: The Play Services version uses a more robust model delivery mechanism that's compatible with Android 16 Beta

Technical Details

- implementation("com.google.mlkit:text-recognition:16.0.0")
+ implementation("com.google.android.gms:play-services-mlkit-text-recognition:18.0.2")
+ <meta-data
+     android:name="com.google.mlkit.vision.DEPENDENCIES"
+     android:value="ocr" />

Impact

  • ✅ OCR Functionality Restored: Text recognition now works reliably on all Android versions including Android 16 Beta
  • ✅ Improved Stability: Using Play Services delivery mechanism provides better long-term compatibility
  • ✅ Future-Proofed: Solution aligns with Google's recommended ML Kit implementation patterns
  • ✅ No Functionality Loss: All existing OCR features continue to work exactly as before

Note

This issue affected specifically newer Android versions and was resolved by adopting Google's recommended ML Kit integration approach. The core application logic and OCR processing capabilities remain unchanged.