This library is based on the Firebase for ML Kit quickstart tutorial.
It allows you to easily integrate the Firebase ML Kit barcode scanning engine into your app. The Firebase ML Kit is better than ZXing for some bar codes, especially PDF417 used for driver's licenses.
The following steps enable you to use this library.
General instructions are available here. You can also generate it directly using the firebase console.
Make sure the generated google-services.json
file ends up in the app/
directory.
Documentation is available here.
If you're not using Firebase in any other way, you don't have to add the
implementation 'com.google.firebase:firebase-core:16.0.1'
instruction to your app/build.gradle
file.
Refer to jitpack's documentation for instructions.
Add the following lines to your app/build.gradle
dependencies:
// https://github.com/johnnylambada/fibamlscan
implementation "com.github.johnnylambada:fibamlscan:0.1.3"
- Review the PreviewActivity.
- Review the PreviewActivity's layout.