From 4cad4cc2af378ffe69f512a3f5ca2bf34d443044 Mon Sep 17 00:00:00 2001 From: Ramil Gallyamov Date: Wed, 4 May 2022 21:13:22 +0300 Subject: [PATCH 1/2] workaround for https://github.com/bitpay/cordova-plugin-qrscanner/issues/332 --- src/android/QRScanner.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/android/QRScanner.java b/src/android/QRScanner.java index f2e37d7d..b8567522 100755 --- a/src/android/QRScanner.java +++ b/src/android/QRScanner.java @@ -619,7 +619,9 @@ private void show(final CallbackContext callbackContext) { this.cordova.getActivity().runOnUiThread(new Runnable() { @Override public void run() { - webView.getView().setBackgroundColor(Color.argb(1, 0, 0, 0)); + // @see https://github.com/bitpay/cordova-plugin-qrscanner/issues/332 + // webView.getView().setBackgroundColor(Color.argb(1, 0, 0, 0)); + webView.getView().setBackgroundColor(Color.TRANSPARENT); showing = true; getStatus(callbackContext); } From 509bdc478a743a0b0e8bc27163683c6b77db722c Mon Sep 17 00:00:00 2001 From: Ramil Gallyamov Date: Wed, 23 Aug 2023 22:33:09 +0300 Subject: [PATCH 2/2] 3.0.2 --- CHANGELOG.md | 7 ++++++- package.json | 2 +- plugin.xml | 2 +- src/android/qrscanner.gradle | 4 ++-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dae08949..b59aafff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ + +## 3.0.2 (2023-08-23) +* implementation instead of compile + -## [3.0.1](https://github.com/bitpay/cordova-plugin-qrscanner/compare/2.6.0...3.0.1) (2019-03-29) +## 3.0.1 (2023-05-04) +* workaround for https://github.com/bitpay/cordova-plugin-qrscanner/issues/332 ### Bug Fixes diff --git a/package.json b/package.json index a44b1eb8..4dadcfe7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-qrscanner", - "version": "3.0.1", + "version": "3.0.2", "description": "Fast, energy-efficient, highly-configurable QR code scanner.", "cordova": { "id": "cordova-plugin-qrscanner", diff --git a/plugin.xml b/plugin.xml index 2c4651c8..e6657dcb 100755 --- a/plugin.xml +++ b/plugin.xml @@ -1,6 +1,6 @@ + xmlns="http://www.phonegap.com/ns/plugins/1.0" id="cordova-plugin-qrscanner" version="3.0.2"> QRScanner diff --git a/src/android/qrscanner.gradle b/src/android/qrscanner.gradle index df682e76..6188e342 100644 --- a/src/android/qrscanner.gradle +++ b/src/android/qrscanner.gradle @@ -3,8 +3,8 @@ repositories { } dependencies { - compile 'com.journeyapps:zxing-android-embedded:3.3.0' - compile 'com.android.support:appcompat-v7:23.1.0' + implementation 'com.journeyapps:zxing-android-embedded:3.3.0' + implementation 'com.android.support:appcompat-v7:23.1.0' } android {