diff --git a/barcodescanner.ios.js b/barcodescanner.ios.js index 91b3b10..cab6d4f 100644 --- a/barcodescanner.ios.js +++ b/barcodescanner.ios.js @@ -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; diff --git a/demo/package.json b/demo/package.json index dc9481a..7b8d5a4 100644 --- a/demo/package.json +++ b/demo/package.json @@ -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" }, diff --git a/package.json b/package.json index 49b4af2..9006204 100644 --- a/package.json +++ b/package.json @@ -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": {