Skip to content

Feature Request: allow CameraX + ML Kit barcode-scanning deps for tools (or expose a configurable-format scanner) #155

Description

@wildassoler

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions