From 7cafca13199866ba6d4bf86b28a67479c70e0cdf Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Thu, 1 Sep 2022 01:39:40 -0600 Subject: [PATCH] Fix sharing plugin not working on Android 12 --- package-lock.json | 18 +++++++++--------- package.json | 7 +++++-- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6de92df..079c31a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "cordova-plugin-inappbrowser": "^5.0.0", "cordova-plugin-nativestorage": "^2.3.2", "cordova-plugin-velda-devicefeedback": "0.0.2", - "cordova-plugin-x-socialsharing": "^6.0.3", + "cordova-plugin-x-socialsharing-android12": "^6.0.5", "cordova-webintent": "github:cordova-misc/cordova-webintent", "es6-promise-plugin": "^4.2.2", "ionic-plugin-deeplinks": "^1.0.23", @@ -978,10 +978,10 @@ } ] }, - "node_modules/cordova-plugin-x-socialsharing": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/cordova-plugin-x-socialsharing/-/cordova-plugin-x-socialsharing-6.0.3.tgz", - "integrity": "sha512-pnrE2CXsz4G0n0WoFDAasLS1VT3nIsNpddvXgfpiqX3wyOlSjO2NdF+sjYaTvs1B+f7z8EWbYCHpCrgBQiMLIg==", + "node_modules/cordova-plugin-x-socialsharing-android12": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cordova-plugin-x-socialsharing-android12/-/cordova-plugin-x-socialsharing-android12-6.0.5.tgz", + "integrity": "sha512-1NrHROIxrsjDHp+haL+68QsK4QoPcSNDwNC0JSvGXWqXsf1G8qZPulWs6M6m/FMcq5c5imG2C41H1ZT0B+Sxaw==", "dev": true, "engines": [ { @@ -3323,10 +3323,10 @@ "integrity": "sha1-ZCnduHXMrCIEpAqA6juzLAovXRo=", "dev": true }, - "cordova-plugin-x-socialsharing": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/cordova-plugin-x-socialsharing/-/cordova-plugin-x-socialsharing-6.0.3.tgz", - "integrity": "sha512-pnrE2CXsz4G0n0WoFDAasLS1VT3nIsNpddvXgfpiqX3wyOlSjO2NdF+sjYaTvs1B+f7z8EWbYCHpCrgBQiMLIg==", + "cordova-plugin-x-socialsharing-android12": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cordova-plugin-x-socialsharing-android12/-/cordova-plugin-x-socialsharing-android12-6.0.5.tgz", + "integrity": "sha512-1NrHROIxrsjDHp+haL+68QsK4QoPcSNDwNC0JSvGXWqXsf1G8qZPulWs6M6m/FMcq5c5imG2C41H1ZT0B+Sxaw==", "dev": true }, "cordova-serve": { diff --git a/package.json b/package.json index 8fa36c4..4011214 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "cordova-plugin-camera": { "ANDROID_SUPPORT_V4_VERSION": "27.+" }, - "cordova-plugin-x-socialsharing": {}, "cordova-plugin-velda-devicefeedback": {}, "cordova-plugin-inappbrowser": {}, "ionic-plugin-deeplinks": { @@ -55,6 +54,10 @@ }, "phonegap-plugin-barcodescanner-android12": { "ANDROID_SUPPORT_V4_VERSION": "27.+" + }, + "cordova-plugin-x-socialsharing-android12": { + "PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION": "This app requires photo library access to function properly.", + "PHOTO_LIBRARY_USAGE_DESCRIPTION": "This app requires photo library access to function properly." } }, "platforms": [ @@ -79,7 +82,7 @@ "cordova-plugin-inappbrowser": "^5.0.0", "cordova-plugin-nativestorage": "^2.3.2", "cordova-plugin-velda-devicefeedback": "0.0.2", - "cordova-plugin-x-socialsharing": "^6.0.3", + "cordova-plugin-x-socialsharing-android12": "^6.0.5", "cordova-webintent": "github:cordova-misc/cordova-webintent", "es6-promise-plugin": "^4.2.2", "ionic-plugin-deeplinks": "^1.0.23",