Skip to content

Project which compiles barcodescanner sources to an aar for use in Android projects

Notifications You must be signed in to change notification settings

jsnyder0/barcodescanner-lib-aar

 
 

Repository files navigation

Modifications to barcode scanner app to allow full screen previews on Android devices.

Steps to build a new .aar

  • Clone this repo
  • Open it in Android Studio
  • Update any source files as needed (current version is: https://github.com/zxing/zxing/releases/tag/BS-4.7.5):
    • Copy all files from core
    • From the android folder grab the src/.../android folder and paste that to the appropriate package
    • Same for android-core
    • Note that R.java is generated when building and is supposed to be in build/generated/source/r/debug/barcodescanner/xservices/nl/barcodescanner/R
    • Re-add the 'flip camera' feature and the 'portrait scan' feature I added before!
    • Make sure no app_name tag is active in the res/values*/string.xml files
  • Open the Gradle toolwindow
  • Clean barcodescanner > build > outputs
  • Run barcodescanner > Tasks > build > build
  • The (release) .aar will be generated in barcodescanner > build > outputs
  • Commit and push any changes made!

###The generated .aar is used in:

About

Project which compiles barcodescanner sources to an aar for use in Android projects

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 95.1%
  • HTML 4.9%