Skip to content

Conversation

@OS-pedrogustavobilro
Copy link
Collaborator

@OS-pedrogustavobilro OS-pedrogustavobilro commented Aug 22, 2025

Description

PR that allows native library to allow for specifying a Hint - to scan a specific format (e.g. only QR Code, only EAN-8). The format that was scanned is now also returned.

If a Hint is specified that isn't supported (ZXING should support all, but ML Kit does not support a few), it will default to allow all formats - a warning could be returned in such scenarios, but I think having updated docs should suffice.

This PR includes BREAKING CHANGES - The signature of the scanBarcode method was changed, but should now allow for easier changes in the future without causing additional breaking changes.

Context

Should address #49

Type of changes

  • Fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Refactor (cosmetic changes)
  • Breaking change (change that would cause existing functionality to not work as expected)

Tests

Use the Barcode Demo App in O11 to test this.

@cssecautomation
Copy link

cssecautomation commented Aug 22, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

code/snyk check is complete. No issues have been found. (View Details)

@OS-pedrogustavobilro OS-pedrogustavobilro changed the title Feat/rmet 2961/hint feat!: Hint input parameter and Format output parameter Aug 22, 2025
@OS-pedrogustavobilro OS-pedrogustavobilro marked this pull request as draft August 22, 2025 17:40
@OS-pedrogustavobilro OS-pedrogustavobilro marked this pull request as ready for review August 25, 2025 10:28
@OS-pedrogustavobilro OS-pedrogustavobilro merged commit 9886f05 into main Sep 1, 2025
5 of 6 checks passed
@OS-pedrogustavobilro OS-pedrogustavobilro deleted the feat/RMET-2961/hint branch September 1, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants