Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@seadowg
Copy link
Member

@seadowg seadowg commented Sep 5, 2025

This removes the experimental ML Kit opt-in so that it'll always be used in release builds. Instead, I've added a switch in "Developer tools" that allows us to switch back to ZXing scanning so that we can test that without needing a device that doesn't have Play Services.

@getodk/testers it's probably worth doing a pass of project QR and form entry barcode scanning with "Revert to older barcode scanner" enabled as we've not really been using the ZXing barcode scanner since all the recent changes were made.

@seadowg seadowg changed the title Switch to MLKit as default scanner Switch to ML Kit as default scanner Sep 5, 2025
@seadowg seadowg marked this pull request as ready for review September 5, 2025 08:44
@seadowg seadowg added the high priority Should be looked at before other PRs/issues label Sep 5, 2025
<!-- Option provided in the Experimental settings to opt in/out of the newer ML Kit based barcode scanner -->
<string name="use_mlkit_for_barcode_scanning">Use ML Kit for barcode scanning</string>
<string name="mlkit_is_always_used_for_scanning_project_qr_codes">ML Kit is always used for scanning project QR codes</string>
<!-- Option provided in the Experimental settings to rever to the old Zxing based barcode scanner -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rever -> revert and also x i Zxing should be capitalized ZXing.

@seadowg seadowg requested a review from grzesiek2010 September 5, 2025 13:32
@grzesiek2010 grzesiek2010 merged commit 55752cf into getodk:master Sep 5, 2025
6 checks passed
@seadowg seadowg deleted the zxing-switch branch September 7, 2025 15:37
@WKobus
Copy link

WKobus commented Sep 8, 2025

Tested with success

Verified on device with Android 10, 16

Verified cases:

  • Reconfigure with different QR scanner settings
  • Importing QR codes
  • Regression check on scanners

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

behavior verified high priority Should be looked at before other PRs/issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants