Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen authored and eddyverbruggen committed Feb 4, 2017
1 parent 3c6aae3 commit 174e9ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions barcodescanner.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,11 @@ var BarcodeScanner = (function () {
if (device.autoFocusRangeRestrictionSupported) {
device.lockForConfiguration();
device.autoFocusRangeRestriction = 1;
device.smoothAutoFocusEnabled = true;
if (device.smoothAutoFocusSupported) {
device.smoothAutoFocusEnabled = true;
}
device.unlockForConfiguration();
}
console.log("--- focusmode: " + device.focusMode);
console.log("--- smoothAutoFocusSupported: " + device.smoothAutoFocusSupported);
console.log("--- smoothAutoFocusEnabled: " + device.smoothAutoFocusEnabled);
var topMostFrame = frame.topmost();
if (topMostFrame) {
var vc = topMostFrame.currentPage && topMostFrame.currentPage.ios;
Expand Down
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
},
"dependencies": {
"nativescript-barcodescanner": "file:///Users/eddyverbruggen/sandboxes/nativescript-barcodescanner",
"nativescript-barcodescanner": "2.4.0",
"nativescript-theme-core": "^0.1.2",
"tns-core-modules": "^2.5.0"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nativescript-barcodescanner",
"version": "2.4.0-dev",
"version": "2.4.0",
"description": "Scan QR/barcodes with a {N} app.",
"main": "barcodescanner",
"nativescript": {
Expand Down

0 comments on commit 174e9ed

Please sign in to comment.