From aa5cf7db43a7084cfd883c82f245a3c511e60785 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Wed, 4 Sep 2024 15:20:54 +0200 Subject: [PATCH] MOBILE-4616 cordova: Use official local-notification plugin --- package-lock.json | 48 ++++++++++++++++++++--------------------------- package.json | 8 ++++---- 2 files changed, 24 insertions(+), 32 deletions(-) diff --git a/package-lock.json b/package-lock.json index dc953fc66..b85a06741 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,7 +47,6 @@ "@moodlehq/cordova-plugin-inappbrowser": "5.0.0-moodle.3", "@moodlehq/cordova-plugin-intent": "2.2.0-moodle.3", "@moodlehq/cordova-plugin-ionic-webview": "5.0.0-moodle.4", - "@moodlehq/cordova-plugin-local-notification": "0.9.0-moodle.12", "@moodlehq/cordova-plugin-qrscanner": "3.0.1-moodle.5", "@moodlehq/cordova-plugin-statusbar": "4.0.0-moodle.3", "@moodlehq/cordova-plugin-zip": "3.1.0-moodle.1", @@ -72,6 +71,7 @@ "cordova-plugin-file": "^8.0.1", "cordova-plugin-geolocation": "^5.0.0", "cordova-plugin-ionic-keyboard": "^2.2.0", + "cordova-plugin-local-notification": "1.0.0", "cordova-plugin-media-capture": "^5.0.0", "cordova-plugin-network-information": "^3.0.0", "cordova-plugin-prevent-override": "^1.0.1", @@ -5408,33 +5408,6 @@ } } }, - "node_modules/@moodlehq/cordova-plugin-local-notification": { - "version": "0.9.0-moodle.12", - "resolved": "https://registry.npmjs.org/@moodlehq/cordova-plugin-local-notification/-/cordova-plugin-local-notification-0.9.0-moodle.12.tgz", - "integrity": "sha512-gt6BhqsltCnNmk/CRUIDxTha/c1/UGTsh2d15zoUVeGaKYqE6olmIyN/HCAn+ofy7CA6DNHOdm1v0uqC3YbPZg==", - "engines": [ - { - "name": "cordova", - "version": ">=3.6.0" - }, - { - "name": "cordova-android", - "version": ">=6.0.0" - }, - { - "name": "cordova-windows", - "version": ">=4.2.0" - }, - { - "name": "android-sdk", - "version": ">=26" - }, - { - "name": "apple-ios", - "version": ">=10.0.0" - } - ] - }, "node_modules/@moodlehq/cordova-plugin-qrscanner": { "version": "3.0.1-moodle.5", "resolved": "https://registry.npmjs.org/@moodlehq/cordova-plugin-qrscanner/-/cordova-plugin-qrscanner-3.0.1-moodle.5.tgz", @@ -11263,6 +11236,25 @@ "resolved": "https://registry.npmjs.org/cordova-plugin-ionic-keyboard/-/cordova-plugin-ionic-keyboard-2.2.0.tgz", "integrity": "sha512-yDUG+9ieKVRitq5mGlNxjaZh/MgEhFFIgTIPhqSbUaQ8UuZbawy5mhJAVClqY97q8/rcQtL6dCDa7x2sEtCLcA==" }, + "node_modules/cordova-plugin-local-notification": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/cordova-plugin-local-notification/-/cordova-plugin-local-notification-1.0.0.tgz", + "integrity": "sha512-dhw00d38cRo/6JlDR7i4u4u+In7wkzH5ffDnIZVzverct9XLcDyxs6WnPUGmWrpUjK6CpXrn3aGmt5kwkck+8g==", + "engines": { + "cordovaDependencies": { + "0.9.0-beta.3": { + "cordova": ">=3.6.0", + "cordova-android": ">=6.0.0", + "cordova-ios": ">=10.0.0" + }, + "1.0.0": { + "cordova": ">=12.0.0", + "cordova-android": ">=13.0.0", + "cordova-ios": ">=10.0.0" + } + } + } + }, "node_modules/cordova-plugin-media-capture": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/cordova-plugin-media-capture/-/cordova-plugin-media-capture-5.0.0.tgz", diff --git a/package.json b/package.json index 8dc45b8f9..8aa6aa200 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,6 @@ "@moodlehq/cordova-plugin-inappbrowser": "5.0.0-moodle.3", "@moodlehq/cordova-plugin-intent": "2.2.0-moodle.3", "@moodlehq/cordova-plugin-ionic-webview": "5.0.0-moodle.4", - "@moodlehq/cordova-plugin-local-notification": "0.9.0-moodle.12", "@moodlehq/cordova-plugin-qrscanner": "3.0.1-moodle.5", "@moodlehq/cordova-plugin-statusbar": "4.0.0-moodle.3", "@moodlehq/cordova-plugin-zip": "3.1.0-moodle.1", @@ -106,6 +105,7 @@ "cordova-plugin-file": "^8.0.1", "cordova-plugin-geolocation": "^5.0.0", "cordova-plugin-ionic-keyboard": "^2.2.0", + "cordova-plugin-local-notification": "1.0.0", "cordova-plugin-media-capture": "^5.0.0", "cordova-plugin-network-information": "^3.0.0", "cordova-plugin-prevent-override": "^1.0.1", @@ -201,9 +201,6 @@ "@moodlehq/cordova-plugin-inappbrowser": {}, "@moodlehq/cordova-plugin-intent": {}, "@moodlehq/cordova-plugin-ionic-webview": {}, - "@moodlehq/cordova-plugin-local-notification": { - "ANDROID_SUPPORT_V4_VERSION": "26.+" - }, "@moodlehq/cordova-plugin-qrscanner": {}, "@moodlehq/cordova-plugin-statusbar": {}, "@moodlehq/cordova-plugin-zip": {}, @@ -227,6 +224,9 @@ "GPS_REQUIRED": "false" }, "cordova-plugin-ionic-keyboard": {}, + "cordova-plugin-local-notification": { + "ANDROID_SUPPORT_V4_VERSION": "26.+" + }, "cordova-plugin-media-capture": {}, "cordova-plugin-moodleapp": {}, "cordova-plugin-network-information": {},