From 3a802beca5eeed7cbfc12e208cb6fb6ebcecf72c Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Thu, 1 Sep 2022 01:29:06 -0600 Subject: [PATCH] Fix barcodescanner plugin not compiling for Android 12 --- package-lock.json | 71 ++++++++++++++++++++++++++++++++++++++++++++++- package.json | 7 +++-- 2 files changed, 75 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index eb89049..6de92df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,8 @@ "cordova-plugin-x-socialsharing": "^6.0.3", "cordova-webintent": "github:cordova-misc/cordova-webintent", "es6-promise-plugin": "^4.2.2", - "ionic-plugin-deeplinks": "^1.0.23" + "ionic-plugin-deeplinks": "^1.0.23", + "phonegap-plugin-barcodescanner-android12": "^8.1.2" } }, "node_modules/@netflix/nerror": { @@ -1988,6 +1989,51 @@ "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=", "dev": true }, + "node_modules/phonegap-plugin-barcodescanner-android12": { + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/phonegap-plugin-barcodescanner-android12/-/phonegap-plugin-barcodescanner-android12-8.1.2.tgz", + "integrity": "sha512-yZFKr22+gwQfZa+HIxCTpPeIs7PbwXnjnCiJFgDFtJM0sesISIEgLIOpjXzkQ42aWqlvGLDgYLwWQ923xEEEBA==", + "dev": true, + "dependencies": { + "nopt": "^4.0.1", + "shelljs": "^0.8.3" + }, + "engines": { + "cordovaDependencies": { + "<7.0.0": { + "cordova-android": "<6.3.0" + }, + "7.0.0": { + "cordova-android": ">=6.3.0" + }, + "7.1.0": { + "cordova": ">=7.1.0", + "cordova-android": ">=6.3.0" + }, + "8.0.0": { + "cordova": ">=7.1.0", + "cordova-android": ">=6.3.0" + } + } + } + }, + "node_modules/phonegap-plugin-barcodescanner-android12/node_modules/shelljs": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", + "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", + "dev": true, + "dependencies": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + }, + "bin": { + "shjs": "bin/shjs" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/picomatch": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", @@ -4066,6 +4112,29 @@ "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=", "dev": true }, + "phonegap-plugin-barcodescanner-android12": { + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/phonegap-plugin-barcodescanner-android12/-/phonegap-plugin-barcodescanner-android12-8.1.2.tgz", + "integrity": "sha512-yZFKr22+gwQfZa+HIxCTpPeIs7PbwXnjnCiJFgDFtJM0sesISIEgLIOpjXzkQ42aWqlvGLDgYLwWQ923xEEEBA==", + "dev": true, + "requires": { + "nopt": "^4.0.1", + "shelljs": "^0.8.3" + }, + "dependencies": { + "shelljs": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", + "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", + "dev": true, + "requires": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + } + } + } + }, "picomatch": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", diff --git a/package.json b/package.json index dc5c826..8fa36c4 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,6 @@ "license": "MPL-2.0", "cordova": { "plugins": { - "phonegap-plugin-barcodescanner": {}, "cordova-plugin-device": {}, "cordova-plugin-statusbar": {}, "cordova-plugin-headercolor": {}, @@ -53,6 +52,9 @@ }, "cordova-plugin-geolocation": { "GPS_REQUIRED": "false" + }, + "phonegap-plugin-barcodescanner-android12": { + "ANDROID_SUPPORT_V4_VERSION": "27.+" } }, "platforms": [ @@ -80,6 +82,7 @@ "cordova-plugin-x-socialsharing": "^6.0.3", "cordova-webintent": "github:cordova-misc/cordova-webintent", "es6-promise-plugin": "^4.2.2", - "ionic-plugin-deeplinks": "^1.0.23" + "ionic-plugin-deeplinks": "^1.0.23", + "phonegap-plugin-barcodescanner-android12": "^8.1.2" } } \ No newline at end of file