From 52c7660734031d2be5af01b02ed1d4c6dbf60e29 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Wed, 27 Mar 2019 18:58:45 -0600 Subject: [PATCH] Use different QR scanning plugin --- package.json | 9 +++++---- www/js/sendmoney.js | 6 ++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index f6b24a4..c3e493d 100644 --- a/package.json +++ b/package.json @@ -12,12 +12,11 @@ "dependencies": { "cordova-android": "^8.0.0", "cordova-plugin-app-version": "^0.1.9", - "cordova-plugin-barcodescanner": "^0.7.4", - "cordova-plugin-compat": "^1.2.0", "cordova-plugin-headercolor": "^1.0.0", "cordova-plugin-inappbrowser": "^3.0.0", "cordova-plugin-statusbar": "^2.4.2", - "cordova-plugin-whitelist": "^1.3.3" + "cordova-plugin-whitelist": "^1.3.3", + "phonegap-plugin-barcodescanner": "^8.0.1" }, "cordova": { "plugins": { @@ -26,7 +25,9 @@ "cordova-plugin-headercolor": {}, "cordova-plugin-app-version": {}, "cordova-plugin-inappbrowser": {}, - "cordova-plugin-barcodescanner": {} + "phonegap-plugin-barcodescanner": { + "ANDROID_SUPPORT_V4_VERSION": "27.+" + } }, "platforms": [ "android" diff --git a/www/js/sendmoney.js b/www/js/sendmoney.js index 33dfe7a..732a108 100644 --- a/www/js/sendmoney.js +++ b/www/js/sendmoney.js @@ -43,6 +43,12 @@ $("#scanqrcodebtn").on("click", function () { }, function (error) { app.dialog.alert(error, "Scan Error"); + }, + { + showTorchButton : true, + prompt: "Scan a code to send money", + resultDisplayDuration: 0, + disableSuccessBeep: true } ); });