From 9e028a03366d8c42a61db0795ead68632bdd692d Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 8 Feb 2022 07:56:45 +0100 Subject: [PATCH] MOBILE-3833 cordova: Update cordova plugins --- config.xml | 1 + package-lock.json | 178 ++++++++++++++++++++------------------- package.json | 32 ++++--- src/core/services/app.ts | 11 +-- 4 files changed, 113 insertions(+), 109 deletions(-) diff --git a/config.xml b/config.xml index 0fb53b7b8..bfcacc07b 100644 --- a/config.xml +++ b/config.xml @@ -51,6 +51,7 @@ + diff --git a/package-lock.json b/package-lock.json index 25864fadb..e2c75415c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -56,15 +56,15 @@ "@types/cordova": "0.0.34", "@types/dom-mediacapture-record": "^1.0.7", "chart.js": "^2.9.4", - "com-darryncampbell-cordova-plugin-intent": "^1.3.0", + "com-darryncampbell-cordova-plugin-intent": "^2.2.0", "cordova": "^10.0.0", "cordova-android": "^10.1.1", "cordova-clipboard": "^1.3.0", "cordova-ios": "^6.2.0", "cordova-plugin-add-swift-support": "^2.0.2", - "cordova-plugin-advanced-http": "^3.1.0", + "cordova-plugin-advanced-http": "^3.2.2", "cordova-plugin-badge": "^0.8.8", - "cordova-plugin-camera": "^5.0.1", + "cordova-plugin-camera": "^6.0.0", "cordova-plugin-chooser": "^1.3.2", "cordova-plugin-customurlscheme": "^5.0.2", "cordova-plugin-device": "^2.0.3", @@ -73,17 +73,16 @@ "cordova-plugin-geolocation": "^4.1.0", "cordova-plugin-globalization": "^1.11.0", "cordova-plugin-ionic-keyboard": "^2.2.0", - "cordova-plugin-media": "^5.0.3", + "cordova-plugin-media": "^5.0.4", "cordova-plugin-media-capture": "^3.0.3", - "cordova-plugin-network-information": "^2.0.2", - "cordova-plugin-prevent-override": "^1.0.0", + "cordova-plugin-network-information": "^3.0.0", + "cordova-plugin-prevent-override": "^1.0.1", "cordova-plugin-splashscreen": "^6.0.0", - "cordova-plugin-statusbar": "^2.4.3", - "cordova-plugin-wkuserscript": "^1.0.0", - "cordova-plugin-wkwebview-cookies": "^1.0.0", + "cordova-plugin-statusbar": "^3.0.0", + "cordova-plugin-wkuserscript": "^1.0.1", + "cordova-plugin-wkwebview-cookies": "^1.0.1", "cordova-sqlite-storage": "^6.0.0", - "cordova-support-google-services": "^1.2.1", - "cordova.plugins.diagnostic": "^5.0.2", + "cordova.plugins.diagnostic": "^6.1.1", "core-js": "^3.9.1", "es6-promise-plugin": "^4.2.2", "hammerjs": "^2.0.8", @@ -10070,9 +10069,9 @@ } }, "node_modules/com-darryncampbell-cordova-plugin-intent": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/com-darryncampbell-cordova-plugin-intent/-/com-darryncampbell-cordova-plugin-intent-1.3.0.tgz", - "integrity": "sha512-JXslndd4UiRHmirGZrwrHZHczoZ5sxM7zAylm4bPX7ZDwD4FdCHhILgDA8AeaG8wc11e0A7OEAFo0Esgc0M4yA==" + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/com-darryncampbell-cordova-plugin-intent/-/com-darryncampbell-cordova-plugin-intent-2.2.0.tgz", + "integrity": "sha512-4ESoeYghE9GGuxKi4pnG+6CUJyYjS2j1tOmvlXXEM/9d5aBU47EpWbKKU1gjcfZFM4KCUbyba1NX6xNcH/L/wA==" }, "node_modules/combined-stream": { "version": "1.0.8", @@ -11044,9 +11043,9 @@ } }, "node_modules/cordova-plugin-advanced-http": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cordova-plugin-advanced-http/-/cordova-plugin-advanced-http-3.1.0.tgz", - "integrity": "sha512-zlTlNJyTttE7TV5vW2WGvHqpbKMDVrr1meZU0fy4y3ObrI/hGk2UDcDNwpZdMfaytNZwDKU4sRgsTgQYdFNBew==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/cordova-plugin-advanced-http/-/cordova-plugin-advanced-http-3.2.2.tgz", + "integrity": "sha512-9djtQuRwWMqCLTNRrtAIlGyRcs2D0AJXOzkedOQ6udlg3IVE58hhxjrFOdKz6WvoJ6w2MNVeRYafYvoWLHFuMA==", "engines": [ { "name": "cordova", @@ -11088,9 +11087,9 @@ ] }, "node_modules/cordova-plugin-camera": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/cordova-plugin-camera/-/cordova-plugin-camera-5.0.1.tgz", - "integrity": "sha512-9gXyZvI8u9KzsZuqmB8Yw+uheF+7f+usMAwvOMw7L7pqbykg+bm9US5zjhJbwit3A1cSblgZkpBafe5cFiMcTA==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cordova-plugin-camera/-/cordova-plugin-camera-6.0.0.tgz", + "integrity": "sha512-FTFKep8HZI/2HkX+Gc/dUACfZGV9+k9waXlgoEOKXOiPPR/1zBw29Mw+adcz4FQUpdWyAgYDxNiaPUnP0P+H2Q==", "engines": { "cordovaDependencies": { "3.0.0": { @@ -11105,7 +11104,17 @@ "cordova-android": ">=9.0.0", "cordova-ios": ">=5.1.0" }, + "5.0.4-dev": { + "cordova": ">=9.0.0", + "cordova-android": "<10.0.0", + "cordova-ios": ">=5.1.0" + }, "6.0.0": { + "cordova": ">=9.0.0", + "cordova-android": ">=10.0.0", + "cordova-ios": ">=5.1.0" + }, + "7.0.0": { "cordova": ">100" } } @@ -11195,9 +11204,9 @@ "integrity": "sha512-yDUG+9ieKVRitq5mGlNxjaZh/MgEhFFIgTIPhqSbUaQ8UuZbawy5mhJAVClqY97q8/rcQtL6dCDa7x2sEtCLcA==" }, "node_modules/cordova-plugin-media": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/cordova-plugin-media/-/cordova-plugin-media-5.0.3.tgz", - "integrity": "sha512-UQPFlpk1zL4BY44zGi8RVmYCvcKBCN4Dyf8ovxqGYCC8zR1yhbTRWYDdO9vJdERwbfgWV7+z7FMWiSUfqWm9bQ==", + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/cordova-plugin-media/-/cordova-plugin-media-5.0.4.tgz", + "integrity": "sha512-mAqincYqOT5gu5LWyfgJu3qmOq+lhLAKhnOZULpG622FvYiHjjfsoJ/fkI55WwI3FIcHeeyhToGvHXBCNJePZg==", "engines": { "cordovaDependencies": { "3.0.0": { @@ -11231,21 +11240,24 @@ } }, "node_modules/cordova-plugin-network-information": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/cordova-plugin-network-information/-/cordova-plugin-network-information-2.0.2.tgz", - "integrity": "sha512-NwO3qDBNL/vJxUxBTPNOA1HvkDf9eTeGH8JSZiwy1jq2W2mJKQEDBwqWkaEQS19Yd/MQTiw0cykxg5D7u4J6cQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cordova-plugin-network-information/-/cordova-plugin-network-information-3.0.0.tgz", + "integrity": "sha512-bBtP3PxIX8vshsfR0+F6co2e2cFLgjt18yKIdigzMwk6ANudWQ72RB3g2qMPyT6fBDWmUyE1Qd+bKQB/fZtQwQ==", "engines": { "cordovaDependencies": { "3.0.0": { + "cordova": ">=9" + }, + "4.0.0": { "cordova": ">100" } } } }, "node_modules/cordova-plugin-prevent-override": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/cordova-plugin-prevent-override/-/cordova-plugin-prevent-override-1.0.0.tgz", - "integrity": "sha512-/+3q5r4K5RahCpiYVmZQBjq10x4jj+6CMjYtZyx9jdMWeV+yFE+ItFcO1NeUAEWd2iHC5YPD0P2tHiHx5kscsw==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cordova-plugin-prevent-override/-/cordova-plugin-prevent-override-1.0.1.tgz", + "integrity": "sha512-yy1JZ+lXTR33Ai1yloT6wdXJXe0a3LrfgnKORuPZv/QkbiqfIQKjy0R4zRP8qljaJSelF/xv5CgrVt8iS0SkBg==", "engines": { "cordovaDependencies": { "3.0.0": { @@ -11274,24 +11286,24 @@ } }, "node_modules/cordova-plugin-statusbar": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/cordova-plugin-statusbar/-/cordova-plugin-statusbar-2.4.3.tgz", - "integrity": "sha512-ThmXzl6QIKWFXf4wWw7Q/zpB+VKkz3VM958+5A0sXD4jmR++u7KnGttLksXshVwWr6lvGwUebLYtIyXwS4Ovcg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cordova-plugin-statusbar/-/cordova-plugin-statusbar-3.0.0.tgz", + "integrity": "sha512-nzkeWeyLA6+1FryzO0aeB6NS8MZ45gnBYeq2VZqfdNbddZEgtpI4XPYdBVxvm9NhcVoJ3tdA1OBnQD9JryoV0Q==", "engines": { "cordovaDependencies": { "0.1.0": { "cordova": ">=3.0.0" }, - "3.0.0": { + "4.0.0": { "cordova": ">100" } } } }, "node_modules/cordova-plugin-wkuserscript": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/cordova-plugin-wkuserscript/-/cordova-plugin-wkuserscript-1.0.0.tgz", - "integrity": "sha512-g18TohV1T+iWQJImYUCZc44x2ywHTH3ycgEJyxo4WTL9eYm4T7lNkyl1svzQGI97e8W5hQxUqAcmvpVcnWvjSQ==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cordova-plugin-wkuserscript/-/cordova-plugin-wkuserscript-1.0.1.tgz", + "integrity": "sha512-qhb2JOFy+XnLIbPubDuAcZyf6fSsrQ2syM8PqAVvW7JJQVR7i64pZDLHmgYQrGN+2pO1fG8EdR2aUp5O0Kx/HA==", "engines": { "cordovaDependencies": { "3.0.0": { @@ -11301,9 +11313,9 @@ } }, "node_modules/cordova-plugin-wkwebview-cookies": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/cordova-plugin-wkwebview-cookies/-/cordova-plugin-wkwebview-cookies-1.0.0.tgz", - "integrity": "sha512-bQRnc/1UNu2XDb6ds+RuAZGA8FM2MuQb4z45J/CaDfjSs60OSvxGVKo3okrM/okYosZqWJFygrPah0MK3lDERQ==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cordova-plugin-wkwebview-cookies/-/cordova-plugin-wkwebview-cookies-1.0.1.tgz", + "integrity": "sha512-x984mlj21Newei7UFPTu4N3NJSTBZuuQXkDNJxq8FTGM1RH/YECqYAzk6ekk/regFamj1bCQ3IB8XJeCm5/dhA==", "engines": { "cordovaDependencies": { "3.0.0": { @@ -11341,27 +11353,22 @@ "resolved": "https://registry.npmjs.org/cordova-sqlite-storage-dependencies/-/cordova-sqlite-storage-dependencies-4.0.0.tgz", "integrity": "sha512-dTBxYaX/RGzH6+pp49o4sb3FuHCvhrssaKn1XMJ4LL3f9dnvz3rhFK2LdcWrdFkhOLOndnW/azUkbzZd+WWhRA==" }, - "node_modules/cordova-support-google-services": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/cordova-support-google-services/-/cordova-support-google-services-1.2.1.tgz", - "integrity": "sha512-EnFjKAE9oI2uzyUvEfWpLgTM200nuJVvShaA4yyz9wMKBUN+H/BRG1byd1ibZz3sSihNKi3FxjQPxmmEn6/IfA==" - }, "node_modules/cordova.plugins.diagnostic": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/cordova.plugins.diagnostic/-/cordova.plugins.diagnostic-5.0.2.tgz", - "integrity": "sha512-H59o7YxJ2/COzvg+jyTpUqX8QoDcvti9dluJ9a+pHumE8lf3meWemwCl0QFa9GH+xgVd6X1Ikj/6P3+DKWd9eg==", + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/cordova.plugins.diagnostic/-/cordova.plugins.diagnostic-6.1.1.tgz", + "integrity": "sha512-JEc7MEPNDDrLb4RGmIwxoKIQ1AVRbh7OuDI8MTsdRqKFA/fQgdF3tK54uWbICUYBx9bQ0YY4FqNmkO0zkDyx5g==", "hasInstallScript": true, "dependencies": { - "colors": "^1.1.2", + "colors": "1.4.0", "elementtree": "^0.1.6", "minimist": "1.2.0" }, "engines": { "cordovaDependencies": { - "4.0.0": { - "cordova": ">=7.1.0", - "cordova-android": ">=6.3.0", - "cordova-ios": ">=4.3.0" + "0.0.1": { + "cordova": ">=9.0.0", + "cordova-android": ">=8.0.0", + "cordova-ios": ">=5.0.0" } } } @@ -38822,9 +38829,9 @@ "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==" }, "com-darryncampbell-cordova-plugin-intent": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/com-darryncampbell-cordova-plugin-intent/-/com-darryncampbell-cordova-plugin-intent-1.3.0.tgz", - "integrity": "sha512-JXslndd4UiRHmirGZrwrHZHczoZ5sxM7zAylm4bPX7ZDwD4FdCHhILgDA8AeaG8wc11e0A7OEAFo0Esgc0M4yA==" + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/com-darryncampbell-cordova-plugin-intent/-/com-darryncampbell-cordova-plugin-intent-2.2.0.tgz", + "integrity": "sha512-4ESoeYghE9GGuxKi4pnG+6CUJyYjS2j1tOmvlXXEM/9d5aBU47EpWbKKU1gjcfZFM4KCUbyba1NX6xNcH/L/wA==" }, "combined-stream": { "version": "1.0.8", @@ -39591,9 +39598,9 @@ } }, "cordova-plugin-advanced-http": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cordova-plugin-advanced-http/-/cordova-plugin-advanced-http-3.1.0.tgz", - "integrity": "sha512-zlTlNJyTttE7TV5vW2WGvHqpbKMDVrr1meZU0fy4y3ObrI/hGk2UDcDNwpZdMfaytNZwDKU4sRgsTgQYdFNBew==" + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/cordova-plugin-advanced-http/-/cordova-plugin-advanced-http-3.2.2.tgz", + "integrity": "sha512-9djtQuRwWMqCLTNRrtAIlGyRcs2D0AJXOzkedOQ6udlg3IVE58hhxjrFOdKz6WvoJ6w2MNVeRYafYvoWLHFuMA==" }, "cordova-plugin-androidx-adapter": { "version": "1.1.3", @@ -39611,9 +39618,9 @@ "integrity": "sha512-RhIBtd5xhD/iLnxjt35jvOae28oNW/wtMZBOmQR3Rf0y4wirvA1bpAZEhBoFqL+rZGhsd6ddOdQXdex1T0DRyQ==" }, "cordova-plugin-camera": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/cordova-plugin-camera/-/cordova-plugin-camera-5.0.1.tgz", - "integrity": "sha512-9gXyZvI8u9KzsZuqmB8Yw+uheF+7f+usMAwvOMw7L7pqbykg+bm9US5zjhJbwit3A1cSblgZkpBafe5cFiMcTA==" + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cordova-plugin-camera/-/cordova-plugin-camera-6.0.0.tgz", + "integrity": "sha512-FTFKep8HZI/2HkX+Gc/dUACfZGV9+k9waXlgoEOKXOiPPR/1zBw29Mw+adcz4FQUpdWyAgYDxNiaPUnP0P+H2Q==" }, "cordova-plugin-chooser": { "version": "1.3.2", @@ -39656,9 +39663,9 @@ "integrity": "sha512-yDUG+9ieKVRitq5mGlNxjaZh/MgEhFFIgTIPhqSbUaQ8UuZbawy5mhJAVClqY97q8/rcQtL6dCDa7x2sEtCLcA==" }, "cordova-plugin-media": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/cordova-plugin-media/-/cordova-plugin-media-5.0.3.tgz", - "integrity": "sha512-UQPFlpk1zL4BY44zGi8RVmYCvcKBCN4Dyf8ovxqGYCC8zR1yhbTRWYDdO9vJdERwbfgWV7+z7FMWiSUfqWm9bQ==" + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/cordova-plugin-media/-/cordova-plugin-media-5.0.4.tgz", + "integrity": "sha512-mAqincYqOT5gu5LWyfgJu3qmOq+lhLAKhnOZULpG622FvYiHjjfsoJ/fkI55WwI3FIcHeeyhToGvHXBCNJePZg==" }, "cordova-plugin-media-capture": { "version": "3.0.3", @@ -39666,14 +39673,14 @@ "integrity": "sha512-pVQOrNM7VAuVUMXibAlMGIArrftHPrRs4dUCoE+e2HEFUp3LmN3Yj539LjdUxcWmz/A/cHC65m9E3DS56YJhcg==" }, "cordova-plugin-network-information": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/cordova-plugin-network-information/-/cordova-plugin-network-information-2.0.2.tgz", - "integrity": "sha512-NwO3qDBNL/vJxUxBTPNOA1HvkDf9eTeGH8JSZiwy1jq2W2mJKQEDBwqWkaEQS19Yd/MQTiw0cykxg5D7u4J6cQ==" + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cordova-plugin-network-information/-/cordova-plugin-network-information-3.0.0.tgz", + "integrity": "sha512-bBtP3PxIX8vshsfR0+F6co2e2cFLgjt18yKIdigzMwk6ANudWQ72RB3g2qMPyT6fBDWmUyE1Qd+bKQB/fZtQwQ==" }, "cordova-plugin-prevent-override": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/cordova-plugin-prevent-override/-/cordova-plugin-prevent-override-1.0.0.tgz", - "integrity": "sha512-/+3q5r4K5RahCpiYVmZQBjq10x4jj+6CMjYtZyx9jdMWeV+yFE+ItFcO1NeUAEWd2iHC5YPD0P2tHiHx5kscsw==" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cordova-plugin-prevent-override/-/cordova-plugin-prevent-override-1.0.1.tgz", + "integrity": "sha512-yy1JZ+lXTR33Ai1yloT6wdXJXe0a3LrfgnKORuPZv/QkbiqfIQKjy0R4zRP8qljaJSelF/xv5CgrVt8iS0SkBg==" }, "cordova-plugin-splashscreen": { "version": "6.0.0", @@ -39681,19 +39688,19 @@ "integrity": "sha512-pm4ZtJKQY4bCGXVeIInbGrXilryTevYSKgfvoQJpW9UClOWKAxSsYf2/4G2u1vcn492svOSL42OSa2MhujBWEQ==" }, "cordova-plugin-statusbar": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/cordova-plugin-statusbar/-/cordova-plugin-statusbar-2.4.3.tgz", - "integrity": "sha512-ThmXzl6QIKWFXf4wWw7Q/zpB+VKkz3VM958+5A0sXD4jmR++u7KnGttLksXshVwWr6lvGwUebLYtIyXwS4Ovcg==" + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cordova-plugin-statusbar/-/cordova-plugin-statusbar-3.0.0.tgz", + "integrity": "sha512-nzkeWeyLA6+1FryzO0aeB6NS8MZ45gnBYeq2VZqfdNbddZEgtpI4XPYdBVxvm9NhcVoJ3tdA1OBnQD9JryoV0Q==" }, "cordova-plugin-wkuserscript": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/cordova-plugin-wkuserscript/-/cordova-plugin-wkuserscript-1.0.0.tgz", - "integrity": "sha512-g18TohV1T+iWQJImYUCZc44x2ywHTH3ycgEJyxo4WTL9eYm4T7lNkyl1svzQGI97e8W5hQxUqAcmvpVcnWvjSQ==" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cordova-plugin-wkuserscript/-/cordova-plugin-wkuserscript-1.0.1.tgz", + "integrity": "sha512-qhb2JOFy+XnLIbPubDuAcZyf6fSsrQ2syM8PqAVvW7JJQVR7i64pZDLHmgYQrGN+2pO1fG8EdR2aUp5O0Kx/HA==" }, "cordova-plugin-wkwebview-cookies": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/cordova-plugin-wkwebview-cookies/-/cordova-plugin-wkwebview-cookies-1.0.0.tgz", - "integrity": "sha512-bQRnc/1UNu2XDb6ds+RuAZGA8FM2MuQb4z45J/CaDfjSs60OSvxGVKo3okrM/okYosZqWJFygrPah0MK3lDERQ==" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cordova-plugin-wkwebview-cookies/-/cordova-plugin-wkwebview-cookies-1.0.1.tgz", + "integrity": "sha512-x984mlj21Newei7UFPTu4N3NJSTBZuuQXkDNJxq8FTGM1RH/YECqYAzk6ekk/regFamj1bCQ3IB8XJeCm5/dhA==" }, "cordova-serve": { "version": "4.0.0", @@ -39720,17 +39727,12 @@ "resolved": "https://registry.npmjs.org/cordova-sqlite-storage-dependencies/-/cordova-sqlite-storage-dependencies-4.0.0.tgz", "integrity": "sha512-dTBxYaX/RGzH6+pp49o4sb3FuHCvhrssaKn1XMJ4LL3f9dnvz3rhFK2LdcWrdFkhOLOndnW/azUkbzZd+WWhRA==" }, - "cordova-support-google-services": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/cordova-support-google-services/-/cordova-support-google-services-1.2.1.tgz", - "integrity": "sha512-EnFjKAE9oI2uzyUvEfWpLgTM200nuJVvShaA4yyz9wMKBUN+H/BRG1byd1ibZz3sSihNKi3FxjQPxmmEn6/IfA==" - }, "cordova.plugins.diagnostic": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/cordova.plugins.diagnostic/-/cordova.plugins.diagnostic-5.0.2.tgz", - "integrity": "sha512-H59o7YxJ2/COzvg+jyTpUqX8QoDcvti9dluJ9a+pHumE8lf3meWemwCl0QFa9GH+xgVd6X1Ikj/6P3+DKWd9eg==", + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/cordova.plugins.diagnostic/-/cordova.plugins.diagnostic-6.1.1.tgz", + "integrity": "sha512-JEc7MEPNDDrLb4RGmIwxoKIQ1AVRbh7OuDI8MTsdRqKFA/fQgdF3tK54uWbICUYBx9bQ0YY4FqNmkO0zkDyx5g==", "requires": { - "colors": "^1.1.2", + "colors": "1.4.0", "elementtree": "^0.1.6", "minimist": "1.2.0" }, diff --git a/package.json b/package.json index caee985fb..2142826c7 100644 --- a/package.json +++ b/package.json @@ -85,15 +85,15 @@ "@types/cordova": "0.0.34", "@types/dom-mediacapture-record": "^1.0.7", "chart.js": "^2.9.4", - "com-darryncampbell-cordova-plugin-intent": "^1.3.0", + "com-darryncampbell-cordova-plugin-intent": "^2.2.0", "cordova": "^10.0.0", "cordova-android": "^10.1.1", "cordova-clipboard": "^1.3.0", "cordova-ios": "^6.2.0", "cordova-plugin-add-swift-support": "^2.0.2", - "cordova-plugin-advanced-http": "^3.1.0", + "cordova-plugin-advanced-http": "^3.2.2", "cordova-plugin-badge": "^0.8.8", - "cordova-plugin-camera": "^5.0.1", + "cordova-plugin-camera": "^6.0.0", "cordova-plugin-chooser": "^1.3.2", "cordova-plugin-customurlscheme": "^5.0.2", "cordova-plugin-device": "^2.0.3", @@ -102,17 +102,16 @@ "cordova-plugin-geolocation": "^4.1.0", "cordova-plugin-globalization": "^1.11.0", "cordova-plugin-ionic-keyboard": "^2.2.0", - "cordova-plugin-media": "^5.0.3", + "cordova-plugin-media": "^5.0.4", "cordova-plugin-media-capture": "^3.0.3", - "cordova-plugin-network-information": "^2.0.2", - "cordova-plugin-prevent-override": "^1.0.0", + "cordova-plugin-network-information": "^3.0.0", + "cordova-plugin-prevent-override": "^1.0.1", "cordova-plugin-splashscreen": "^6.0.0", - "cordova-plugin-statusbar": "^2.4.3", - "cordova-plugin-wkuserscript": "^1.0.0", - "cordova-plugin-wkwebview-cookies": "^1.0.0", + "cordova-plugin-statusbar": "^3.0.0", + "cordova-plugin-wkuserscript": "^1.0.1", + "cordova-plugin-wkwebview-cookies": "^1.0.1", "cordova-sqlite-storage": "^6.0.0", - "cordova-support-google-services": "^1.2.1", - "cordova.plugins.diagnostic": "^5.0.2", + "cordova.plugins.diagnostic": "^6.1.1", "core-js": "^3.9.1", "es6-promise-plugin": "^4.2.2", "hammerjs": "^2.0.8", @@ -183,11 +182,14 @@ "ios" ], "plugins": { - "cordova-plugin-advanced-http": {}, + "cordova-plugin-advanced-http": { + "ANDROIDBLACKLISTSECURESOCKETPROTOCOLS": "SSLv3,TLSv1" + }, "cordova-clipboard": {}, "cordova-plugin-badge": {}, "cordova-plugin-camera": { - "ANDROID_SUPPORT_V4_VERSION": "27.+" + "ANDROID_SUPPORT_V4_VERSION": "27.+", + "ANDROIDX_CORE_VERSION": "1.6.+" }, "cordova-plugin-chooser": {}, "cordova-plugin-customurlscheme": { @@ -229,7 +231,9 @@ "com-darryncampbell-cordova-plugin-intent": {}, "nl.kingsquare.cordova.background-audio": {}, "cordova.plugins.diagnostic": { - "ANDROID_SUPPORT_VERSION": "28.+" + "ANDROID_SUPPORT_VERSION": "28.+", + "ANDROIDX_VERSION": "1.0.0", + "ANDROIDX_APPCOMPAT_VERSION": "1.3.1" }, "cordova-plugin-globalization": {}, "@moodlehq/cordova-plugin-file-transfer": {}, diff --git a/src/core/services/app.ts b/src/core/services/app.ts index 8edb6bd62..dfa85e33c 100644 --- a/src/core/services/app.ts +++ b/src/core/services/app.ts @@ -654,17 +654,14 @@ export class CoreAppProvider { this.logger.debug(`Set status bar color ${color}`); const useLightText = CoreColors.isWhiteContrastingBetter(color); - const statusBar = StatusBar.instance; - - this.isIOS() && statusBar.overlaysWebView(false); // styleDefault will use white text on iOS when darkmode is on. Force the background to black. if (this.isIOS() && !useLightText && window.matchMedia('(prefers-color-scheme: dark)').matches) { - statusBar.backgroundColorByHexString('#000000'); - statusBar.styleLightContent(); + StatusBar.backgroundColorByHexString('#000000'); + StatusBar.styleLightContent(); } else { - statusBar.backgroundColorByHexString(color); - useLightText ? statusBar.styleLightContent() : statusBar.styleDefault(); + StatusBar.backgroundColorByHexString(color); + useLightText ? StatusBar.styleLightContent() : StatusBar.styleDefault(); } }