// the find
yuriy-budiyev/code-scanner
Code scanner library for Android, based on ZXing
A thin, Java-based wrapper around ZXing that gives Android apps a drop-in scanner view with auto focus, flash, and orientation handling instead of making you wire up ZXing's camera plumbing yourself. It's aimed at anyone who needs barcode/QR scanning in an Android app and wants something smaller and easier to integrate than ZXing's own Android port or a full CameraX pipeline.
The CodeScannerView does the tedious part for you - a custom viewfinder with configurable frame size, corner radius, mask color, and built-in flash/focus buttons, all exposed as XML attributes so you don't hand-roll that UI. It wraps a wide set of ZXing formats (UPC, EAN, Code 39/93/128, Codabar, QR, Data Matrix, Aztec, PDF417, MaxiCode) with zero extra config. The lifecycle contract is explicit and simple: startPreview()/releaseResources() map directly onto onResume()/onPause(), so there's no ambiguity about when the camera is held.
It's distributed only through JitPack, not Maven Central - plenty of companies block jitpack.io in CI/CD over supply-chain concerns, and JitPack builds can go stale or fail silently. There's no test directory anywhere in the tree, so there's zero automated coverage on the decode/camera-handling logic; you're trusting manual QA across device/camera variants. "Kotlin friendly" just means Java interop works - there's no coroutines/Flow-based API, so decode results come back through a plain callback instead of anything idiomatic for a Kotlin codebase. It's built on the legacy Camera API rather than CameraX, which means it inherits the old API's per-OEM quirks and won't get the compatibility fixes CameraX has accumulated for weird camera hardware.