commit
62548b42d0
|
@ -55,7 +55,7 @@ jobs:
|
|||
- npm ci
|
||||
- export JAVA_HOME_COPY=$JAVA_HOME
|
||||
- export JAVA_HOME=/usr/lib/jvm/java-8-oracle
|
||||
- yes | sdkmanager "build-tools;30.0.3"
|
||||
- yes | sdkmanager "build-tools;32.0.0"
|
||||
- export JAVA_HOME=$JAVA_HOME_COPY
|
||||
addons:
|
||||
apt:
|
||||
|
|
15
config.xml
15
config.xml
|
@ -35,12 +35,9 @@
|
|||
<preference name="AllowInlineMediaPlayback" value="true" />
|
||||
<preference name="LoadUrlTimeoutValue" value="60000" />
|
||||
<preference name="load-url-timeout" value="60000" />
|
||||
<preference name="SplashScreen" value="screen" />
|
||||
<preference name="SplashScreenDelay" value="15000" />
|
||||
<preference name="SplashMaintainAspectRatio" value="true" />
|
||||
<preference name="SplashShowOnlyFirstTime" value="false" />
|
||||
<preference name="AutoHideSplashScreen" value="false" />
|
||||
<preference name="android-minSdkVersion" value="22" />
|
||||
<preference name="android-targetSdkVersion" value="31" />
|
||||
<preference name="android-targetSdkVersion" value="33" />
|
||||
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
|
||||
<preference name="AndroidInsecureFileModeEnabled" value="true" />
|
||||
<preference name="CustomURLSchemePluginClearsAndroidIntent" value="true" />
|
||||
|
@ -57,6 +54,8 @@
|
|||
<param name="ios-package" onload="true" value="CDVStatusBar" />
|
||||
</feature>
|
||||
<platform name="android">
|
||||
<preference name="AndroidWindowSplashScreenAnimatedIcon" value="resources/android/splash-foreground.png" />
|
||||
<preference name="AndroidWindowSplashScreenBackground" value="#ffffff" />
|
||||
<resource-file src="MainActivity.java" target="app/src/main/java/com/moodle/moodlemobile/MainActivity.java" />
|
||||
<resource-file src="google-services.json" target="app/google-services.json" />
|
||||
<resource-file src="resources/android/icon/drawable-ldpi-smallicon.png" target="app/src/main/res/mipmap-ldpi/smallicon.png" />
|
||||
|
@ -175,12 +174,6 @@
|
|||
<param name="android-package" value="cordova.plugins.screenorientation.CDVOrientation" />
|
||||
</feature>
|
||||
</config-file>
|
||||
<config-file parent="/*" target="res/xml/config.xml">
|
||||
<feature name="SplashScreen">
|
||||
<param name="android-package" value="org.apache.cordova.splashscreen.SplashScreen" />
|
||||
<param name="onload" value="true" />
|
||||
</feature>
|
||||
</config-file>
|
||||
<config-file parent="/*" target="res/xml/config.xml">
|
||||
<feature name="StatusBar">
|
||||
<param name="android-package" value="org.apache.cordova.statusbar.StatusBar" />
|
||||
|
|
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
|
@ -73,13 +73,12 @@
|
|||
"@ionic-native/web-intent": "5.36.0",
|
||||
"@ionic-native/zip": "5.36.0",
|
||||
"@ionic/angular": "5.9.4",
|
||||
"@moodlehq/cordova-plugin-file-opener": "3.0.5-moodle.1",
|
||||
"@moodlehq/cordova-plugin-file-transfer": "1.7.1-moodle.5",
|
||||
"@moodlehq/cordova-plugin-inappbrowser": "5.0.0-moodle.3",
|
||||
"@moodlehq/cordova-plugin-intent": "2.2.0-moodle.1",
|
||||
"@moodlehq/cordova-plugin-ionic-webview": "5.0.0-moodle.1",
|
||||
"@moodlehq/cordova-plugin-local-notification": "0.9.0-moodle.7",
|
||||
"@moodlehq/cordova-plugin-qrscanner": "3.0.1-moodle.4",
|
||||
"@moodlehq/cordova-plugin-local-notification": "0.9.0-moodle.11",
|
||||
"@moodlehq/cordova-plugin-qrscanner": "3.0.1-moodle.5",
|
||||
"@moodlehq/cordova-plugin-zip": "3.1.0-moodle.1",
|
||||
"@moodlehq/phonegap-plugin-push": "4.0.0-moodle.2",
|
||||
"@ngx-translate/core": "13.0.0",
|
||||
|
@ -89,29 +88,29 @@
|
|||
"@types/dom-mediacapture-record": "1.0.7",
|
||||
"chart.js": "2.9.4",
|
||||
"cordova": "11.0.0",
|
||||
"cordova-android": "10.1.1",
|
||||
"cordova-android": "11.0.0",
|
||||
"cordova-clipboard": "1.3.0",
|
||||
"cordova-ios": "6.2.0",
|
||||
"cordova-plugin-add-swift-support": "2.0.2",
|
||||
"cordova-plugin-advanced-http": "3.3.1",
|
||||
"cordova-plugin-androidx-adapter": "1.1.3",
|
||||
"cordova-plugin-badge": "0.8.8",
|
||||
"cordova-plugin-badge": "0.8.9",
|
||||
"cordova-plugin-camera": "6.0.0",
|
||||
"cordova-plugin-chooser": "1.3.2",
|
||||
"cordova-plugin-customurlscheme": "5.0.2",
|
||||
"cordova-plugin-device": "2.1.0",
|
||||
"cordova-plugin-file": "6.0.2",
|
||||
"cordova-plugin-file-opener2": "4.0.0",
|
||||
"cordova-plugin-geolocation": "4.1.0",
|
||||
"cordova-plugin-ionic-keyboard": "2.2.0",
|
||||
"cordova-plugin-media-capture": "3.0.3",
|
||||
"cordova-plugin-network-information": "3.0.0",
|
||||
"cordova-plugin-prevent-override": "1.0.1",
|
||||
"cordova-plugin-screen-orientation": "3.0.2",
|
||||
"cordova-plugin-splashscreen": "6.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-sqlite-storage": "6.1.0",
|
||||
"cordova.plugins.diagnostic": "7.1.1",
|
||||
"core-js": "3.9.1",
|
||||
"es6-promise-plugin": "4.2.2",
|
||||
|
@ -210,9 +209,7 @@
|
|||
"ANDROID_PATHPREFIX": "/"
|
||||
},
|
||||
"cordova-plugin-device": {},
|
||||
"@moodlehq/cordova-plugin-file-opener": {
|
||||
"ANDROID_SUPPORT_V4_VERSION": "27.+"
|
||||
},
|
||||
"cordova-plugin-file-opener2": {},
|
||||
"cordova-plugin-geolocation": {
|
||||
"GPS_REQUIRED": "false"
|
||||
},
|
||||
|
@ -225,7 +222,6 @@
|
|||
"cordova-plugin-media-capture": {},
|
||||
"cordova-plugin-network-information": {},
|
||||
"@moodlehq/cordova-plugin-qrscanner": {},
|
||||
"cordova-plugin-splashscreen": {},
|
||||
"cordova-plugin-statusbar": {},
|
||||
"cordova-plugin-wkuserscript": {},
|
||||
"cordova-plugin-wkwebview-cookies": {},
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
|
@ -71,9 +71,8 @@ export class CoreLocalNotificationsProvider {
|
|||
async initialize(): Promise<void> {
|
||||
await CorePlatform.ready();
|
||||
|
||||
if (!this.isAvailable()) {
|
||||
return;
|
||||
}
|
||||
// Request permission when the app starts.
|
||||
LocalNotifications.requestPermission();
|
||||
|
||||
// Listen to events.
|
||||
this.triggerSubscription = LocalNotifications.on('trigger').subscribe((notification: ILocalNotification) => {
|
||||
|
|
Loading…
Reference in New Issue