Skip to content

Conversation

@OS-pedrogustavobilro
Copy link
Contributor

@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 in iOS, 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.

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.

References: https://outsystemsrd.atlassian.net/browse/RMET-2962

BREAKING CHANGE: This adds a new parameter to `scanBarcode` in `OSBARCManagerProtocol`, which is a breaking change
References: https://outsystemsrd.atlassian.net/browse/RMET-2962

BREAKING CHANGE: This modifies the signature of the public `scanBarcode`, but allows for easier addition of new parameters to avoid future breaking changes.
References: https://outsystemsrd.atlassian.net/browse/RMET-2962

BREAKING CHANGE: This modifies the output of the public `scanBarcode`, but allows for easier addition of new output to avoid future breaking changes.
@cssecautomation
Copy link

cssecautomation commented Aug 22, 2025

Snyk checks have failed. 7 issues have been found so far.

Icon Severity Issues
Critical 0
High 7
Medium 0
Low 0

security/snyk check is complete. 7 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)

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@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:35
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