Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1.12 KB

README.md

File metadata and controls

28 lines (23 loc) · 1.12 KB

Sample QR Code Reader

Sample app showcasing how to implement QR Code Reading in Android using CameraX and 2 different libs:

APK Sizes

It's worth mentioning that the final apk sizes using ZXing OR ML Kit are very different:

  • Google ML Kit
    • debug: 14.1 MB
    • release: 12.5 MB
  • ZXing
    • debug: 5.2 MB
    • release: 4.2 MB
  • Just CameraX (running preview only) for comparison
    • debug: 4.9 MB
    • release: 4 MB

Git repository structure

There are 2 main branches in the repo:

  • mlkit: branch with the ML Kit implementation in :app module
  • zxing: branch with the ZXing implementation in :app module

References

The implementation here was based on two posts: