finds.dev← search

// the find

smscryptor/barcode-scanner

C · LGPL-2.1 · updated May 2019

A library that provides barcode and QR code scanning

A 2019 Android library wrapping zbar for barcode and QR code scanning via Camera2 API, using RxJava Observables throughout. Built by AEVI (payment terminal people), so it was probably solving a real problem in their stack. Last touched 7 years ago, distributed via Bintray which has been dead since 2021.

The RxJava-based API is actually well thought out — Camera2Preview returns an Observable and BarcodeScanner composes on top of it cleanly, so lifecycle management reduces to a single Disposable. Bundles the full zbar C source rather than linking a system library, which avoids NDK version headaches. Has a working sample app and unit tests covering the Observable chain. Supports the full zbar format set: EAN, Code128, QR, PDF417, DataBar, etc.

Bintray is dead and the library is unpublished, so `implementation 'com.aevi.barcode:barcode-scanner:<version>'` in the README won't work without manually publishing it yourself. The zbar source it bundles is from a 2013 Mercurial snapshot off SourceForge — ML Kit and ZXing have both lapped it on accuracy since then. No support for MLKit barcode scanning which is now the default recommendation for Android. Camera2 API usage is fine but there's no CameraX adapter, so this will feel dated in any modern Jetpack project.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →