nativescript-barcodescanner
Advanced tools
Comparing version 2.1.4 to 2.1.5
@@ -28,3 +28,8 @@ "use strict"; | ||
if (args.grantResults[i] === android.content.pm.PackageManager.PERMISSION_DENIED) { | ||
self.onPermissionRejected("Please allow access to the Camera and try again."); | ||
if (self.onPermissionRejected) { | ||
self.onPermissionRejected("Please allow access to the Camera and try again."); | ||
} | ||
else { | ||
console.log("Please allow access to the Camera and try again. (tip: pass in a reject to receive this message in your app)"); | ||
} | ||
return; | ||
@@ -31,0 +36,0 @@ } |
@@ -163,2 +163,6 @@ "use strict"; | ||
self._scanner.delegate = delegate_1; | ||
var device = AVCaptureDevice.defaultDeviceWithMediaType(AVMediaTypeVideo); | ||
device.lockForConfiguration(); | ||
device.autoFocusRangeRestriction = 1; | ||
device.unlockForConfiguration(); | ||
var topMostFrame = frame.topmost(); | ||
@@ -165,0 +169,0 @@ if (topMostFrame) { |
# Change Log | ||
## [2.1.5](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.1.5) (2016-11-29) | ||
[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/2.1.4...2.1.5) | ||
**Implemented enhancements:** | ||
- Trying to access/implement AVCaptureFocusMode [\#48](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/48) | ||
**Fixed bugs:** | ||
- onPermissionRejected [\#56](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/56) | ||
**Closed issues:** | ||
- No callbacks . the component re-render itself without any callbacks after the scannanig ! [\#43](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/43) | ||
## [2.1.4](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.1.4) (2016-11-21) | ||
@@ -4,0 +19,0 @@ [Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/2.1.3...2.1.4) |
{ | ||
"name": "nativescript-barcodescanner", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "Scan QR/barcodes with a {N} app.", | ||
@@ -5,0 +5,0 @@ "main": "barcodescanner.js", |
@@ -225,7 +225,1 @@ # NativeScript BarcodeScanner | ||
``` | ||
## Changelog | ||
* __2.1.0__ iOS now also honors the `preferFrontCamera` and `showFlipCameraButton` settings. Also, added `showTorchButton` (iOS only for now). | ||
* __2.0.0__ Conversion to TypeScript (note that the JS require syntax is now slightly different!). | ||
* __1.5.0__ Auto-permission handling. Use the volume up/down buttons to toggle the torch. | ||
* __1.4.0__ Bulk scanning. |
Sorry, the diff of this file is not supported yet
1657572
538
225