eddyverbruggen / barcodescanner-lib-aar Goto Github PK
View Code? Open in Web Editor NEWProject which compiles barcodescanner sources to an aar for use in Android projects
License: MIT License
Project which compiles barcodescanner sources to an aar for use in Android projects
License: MIT License
Edit: Looks like you may also need to merge this patchset before creating a new tag: #29
@EddyVerbruggen Please will you create a new tag containing 5 commits to master since 2.1.6
:
https://github.com/EddyVerbruggen/barcodescanner-lib-aar/releases
Specifically I am interested in this patchset:
3c6d747 Bumped gradle deps
I am getting this build error when trying to build version 2.1.6
:
$ ./gradlew clean assemble
[…]
Resource missing. [HTTP GET: https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.pom]
Resource missing. [HTTP HEAD: https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.jar]
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':barcodescanner'.
> Could not resolve all dependencies for configuration ':barcodescanner:_debugCompile'.
> Could not find com.android.support:appcompat-v7:23.0.1.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.pom
https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.jar
Required by:
BarcodeScanner:barcodescanner:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
I think this project need this.
Hi Folks,
when the user clicks the back button on the barcode scanning screen, the onKeyDown (in CaptureActivity) will react to it and the activity will be closed.
But the next Activity will capture the onBackPressed event, therefore it will be closed as well.
So with one back click, 2 Activity are closed.
With this modification we get the expected result:
So we handle the exit on the onBackPressed and not on the onKeyDown:
@OverRide
public void onBackPressed() {
if (source == IntentSource.NATIVE_APP_INTENT) {
setResult(RESULT_CANCELED);
finish();
}
if ((source == IntentSource.NONE || source == IntentSource.ZXING_LINK) && lastResult != null) {
restartPreviewAfterDelay(0L);
}
super.onBackPressed();
}
@OverRide
public boolean onKeyDown(int keyCode, KeyEvent event) {
switch (keyCode) {
/* case KeyEvent.KEYCODE_BACK:
if (source == IntentSource.NATIVE_APP_INTENT) {
setResult(RESULT_CANCELED);
finish();
return true;
}
if ((source == IntentSource.NONE || source == IntentSource.ZXING_LINK) && lastResult != null) {
restartPreviewAfterDelay(0L);
return true;
}
break;*/
case KeyEvent.KEYCODE_FOCUS:
Hello, could you please provide information about license of the barcodescanner-lib-aar library? We would like to use this library in a commercial project and we need to know if (and how) it is legally possible and the kind of license. Thank you.
Is there a way to hide overlay viewport and text shown at bottom of screen ?
Hello,
I'm an F-Droid contributor.
We recently packaged an app that uses this library.
Our policy is to build everything from source or get it from a trusted repository like Maven Central or jCenter.
So for now we are building barcodescanner
from source but it would be easier for us to get it from a trusted repository with Gradle.
Do you think the library could be published on Maven Central?
(I first reported this here: phonegap/phonegap-plugin-barcodescanner#670)
Android client's CameraManager doesn't update the size of the framing rectangle from requestedFramingRectWidth/Height parameters. This means that you can't set the size from Ionic when using phonegap-plugin-barcodescanner.
The timeout feature works for Android 4 but not 5. Any reason why?
Hello, Please can you Enlarge the scanning area. when you open the camera to scan a bar-code ,the scanning area is very small especially on tablet.
Hi Guys.
Barcode-reader reading barcodes outside the red line, and returning a lot of #¤%&/ characters in barcode.
Please give a tip why this happen. we are using 2.1.6 version.
iOS has no issue but Android is noticeably slower. Every once in awhile it will pick it up right away but most of the time you can see the barcode clear as day and it won't pick it up. I use this library through using the cordova barcode scanning library and noticed the decrease going from 6.0.3 and 6.0.4. I have tried the latest version of this library in cordova and it still exhibits the same issues.
Hi.
I generated .aar library according to your steps that you provided at front page. But when paste this .aar file in Bar code scanner plugin code then received Null Pointer exception when building android app in ionic project.
I received following exception every time:
Execution failed for task ':mergeDebugAssets'. > java.lang.NullPointerException (no error message)
When you focus on the Camera Toggle or Torch it just say "Button double tap to activate" and there is no indication what type of button is focused.
Expected behavior:
Talk back should announce the button label i.e. "Toggle camera button double tap to activate"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.