{"id":18825376,"url":"https://github.com/outsystems/osbarcodelib-ios","last_synced_at":"2026-02-05T15:01:45.446Z","repository":{"id":230065716,"uuid":"712530374","full_name":"OutSystems/OSBarcodeLib-iOS","owner":"OutSystems","description":"OutSystems-owned repository for the Barcode plugin's iOS library.","archived":false,"fork":false,"pushed_at":"2026-02-04T13:40:48.000Z","size":17175,"stargazers_count":4,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-05T00:41:51.284Z","etag":null,"topics":["snyk-mobile"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OutSystems.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-10-31T16:43:56.000Z","updated_at":"2026-01-02T16:45:38.000Z","dependencies_parsed_at":"2024-03-27T17:29:03.268Z","dependency_job_id":"c3460914-2d62-4349-8000-61d5f8a6c3e7","html_url":"https://github.com/OutSystems/OSBarcodeLib-iOS","commit_stats":null,"previous_names":["outsystems/osbarcodelib-ios"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/OutSystems/OSBarcodeLib-iOS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutSystems%2FOSBarcodeLib-iOS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutSystems%2FOSBarcodeLib-iOS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutSystems%2FOSBarcodeLib-iOS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutSystems%2FOSBarcodeLib-iOS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OutSystems","download_url":"https://codeload.github.com/OutSystems/OSBarcodeLib-iOS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutSystems%2FOSBarcodeLib-iOS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29124793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T14:05:12.718Z","status":"ssl_error","status_checked_at":"2026-02-05T14:03:53.078Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["snyk-mobile"],"created_at":"2024-11-08T00:59:15.681Z","updated_at":"2026-02-05T15:01:45.429Z","avatar_url":"https://github.com/OutSystems.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OSBarcodeLib\n\nThe `OSBarcodePluginLib-iOS` is a library built using `Swift` that offers you a barcode scanner for your iOS application. Supports many popular encoding types of 1D and 2D barcodes, such as:\n- 1D Barcodes\n\t- Codabar (*available from iOS 15.0 onwards*)\n\t- Code 39\n\t- Code 93\n\t- Code 128\n\t- Databar (GS1)\t(*available from iOS 15.0 onwards*)\n\t- EAN-8\n\t- EAN-13\n\t- ITF\n\t- ITF-14\n\t- ISBN-10\n\t- ISBN-13\n\t- ISBN-13 Dual Barcode\n\t- RSSExpanded (*available from iOS 15.0 onwards*)\n\t- UPC-A\n\t- UPC-E\n- 2D Barcodes\n\t- Aztec Code\n\t- Data Matrix\n\t- Micro PDF 417 (*available from iOS 15.0 onwards*)\n\t- Micro QR (*available from iOS 15.0 onwards*)\n\t- PDF 417\n\t- QR Code\n\nThe `OSBARCManagerProtocol` protocol provides the main feature of the library, which is the **Barcode Scanner**, to be detailed in the following sections. \nThe `OSBARCManagerFactory` provides a way to create the Scanner Flow Manager - the `OSBARCManager` that implements the `OSBARCManagerProtocol` protocol.\n\n## Index\n\n- [Motivation](#motivation)\n- [Usage](#usage)\n- [Methods](#methods)\n    - [Scan Barcode](#scan-barcode)\n\n## Motivation\n\nThis library is to be used by the [Barcode Plugin](https://github.com/OutSystems/cordova-outsystems-barcode). The repository contains a `scripts/build_framework.sh` script that allows the creation of the `OSBarcodeLib.xcframework`. This framework should then be imported into the Cordova bridge as a framework.\n\n## Usage\n\nThe library is available on CocoaPods as `OSBarcodeLib`. The following is an example of how to insert it into a Cordova plugin (through the `plugin.xml` file).\n\n```xml\n\u003cpodspec\u003e\n    \u003cconfig\u003e\n        \u003csource url=\"https://cdn.cocoapods.org/\"/\u003e\n    \u003c/config\u003e\n    \u003cpods use-frameworks=\"true\"\u003e\n        ...\n        \u003cpod name=\"OSBarcodeLib\" spec=\"${version to use}\" /\u003e\n        ...\n    \u003c/pods\u003e\n\u003c/podspec\u003e\n```\n\nIt can also be included as a dependency on other podspecs.\n\n```ruby\nPod::Spec.new do |s|\n  ...\n  s.dependency 'OSBarcodeLib', '${version to use}'\n  ...\nend\n```\n\n## Methods\n\nThe library uses the following method to interact with:\n\n### Scan Barcode\n\n```swift\nfunc scanBarcode(with parameters: OSBARCScanParameters) async throws -\u003e OSBARCScanResult\n```\n\nTriggers the barcode scanner, returning asynchronously, if successful, the scanned value. In case of error, it can throw one of the following:\n- **cameraAccessDenied**: if camera access has not been given.\n- **scanningCancelled**: If scanning has been cancelled by the end-user. \n\nThe method is composed of the following input parameters, contained inside `OSBARCScanParameters` structure:\n- **scanInstructions**: The text to be displayed on the scanning reader view.\n- **scanButtonText**: The text to be displayed for the scan button, if configured. `Nil` value means that the button will not be shown.\n- **cameraDirection**: Indicates the camera to use to gather input. It can be `back` or `front`.\n- **scanOrientation**: Indicates the scanning reader view orientation. It can be locked to `portrait` or `landscape` or adapted to the device's current orientation if the value is `adaptive`.\n- **hint**: Indicates scan of a specific format (e.g. only qr code). `Nil` or `unknown` value means it can scan all.\n\nThe method returns a `OSBARCScanResult structure`, containing:\n- **text**: The actual textual data that was scanned.\n- **format**: The format that was scanned, or `unknown` if unable to determine.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutsystems%2Fosbarcodelib-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutsystems%2Fosbarcodelib-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutsystems%2Fosbarcodelib-ios/lists"}