The SDK already ships a full CameraX + ML Kit barcode pipeline internally
(sdk/ui/LightQrCodeScanner.kt), but it's hardcoded to FORMAT_QR_CODE and
those dependencies aren't on the tool allowlist, so third-party tools can't
build their own scanner even for a different barcode format.
Use case: I'm building a tool that scans product barcodes (EAN-13/UPC-A) to
look up nutrition data via a public API. There's no way to do this today
without either (a) the allowlist including:
- androidx.camera:camera-core / camera-camera2 / camera-lifecycle / camera-view / camera-mlkit-vision
- com.google.mlkit:barcode-scanning
or (b) an official LightBarcodeScanner composable (mirroring
LightQrCodeScanner) that accepts a configurable list of Barcode formats
instead of being locked to QR only.
Happy to help test either direction. Let me know which you'd prefer.
The SDK already ships a full CameraX + ML Kit barcode pipeline internally
(sdk/ui/LightQrCodeScanner.kt), but it's hardcoded to FORMAT_QR_CODE and
those dependencies aren't on the tool allowlist, so third-party tools can't
build their own scanner even for a different barcode format.
Use case: I'm building a tool that scans product barcodes (EAN-13/UPC-A) to
look up nutrition data via a public API. There's no way to do this today
without either (a) the allowlist including:
or (b) an official LightBarcodeScanner composable (mirroring
LightQrCodeScanner) that accepts a configurable list of Barcode formats
instead of being locked to QR only.
Happy to help test either direction. Let me know which you'd prefer.