MOBILE-4215 cordova: Remove unneeded splash screen plugin

main
Dani Palou 2023-02-23 14:08:05 +01:00
parent 3a04f1361b
commit 7ede4f490e
4 changed files with 3 additions and 17 deletions

View File

@ -35,10 +35,7 @@
<preference name="AllowInlineMediaPlayback" value="true" /> <preference name="AllowInlineMediaPlayback" value="true" />
<preference name="LoadUrlTimeoutValue" value="60000" /> <preference name="LoadUrlTimeoutValue" value="60000" />
<preference name="load-url-timeout" value="60000" /> <preference name="load-url-timeout" value="60000" />
<preference name="SplashScreen" value="screen" /> <preference name="AutoHideSplashScreen" value="false" />
<preference name="SplashScreenDelay" value="15000" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="android-minSdkVersion" value="22" /> <preference name="android-minSdkVersion" value="22" />
<preference name="android-targetSdkVersion" value="31" /> <preference name="android-targetSdkVersion" value="31" />
<preference name="AndroidPersistentFileLocation" value="Compatibility" /> <preference name="AndroidPersistentFileLocation" value="Compatibility" />
@ -57,6 +54,8 @@
<param name="ios-package" onload="true" value="CDVStatusBar" /> <param name="ios-package" onload="true" value="CDVStatusBar" />
</feature> </feature>
<platform name="android"> <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="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="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" /> <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" /> <param name="android-package" value="cordova.plugins.screenorientation.CDVOrientation" />
</feature> </feature>
</config-file> </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"> <config-file parent="/*" target="res/xml/config.xml">
<feature name="StatusBar"> <feature name="StatusBar">
<param name="android-package" value="org.apache.cordova.statusbar.StatusBar" /> <param name="android-package" value="org.apache.cordova.statusbar.StatusBar" />

5
package-lock.json generated
View File

@ -20486,11 +20486,6 @@
"resolved": "https://registry.npmjs.org/cordova-plugin-screen-orientation/-/cordova-plugin-screen-orientation-3.0.2.tgz", "resolved": "https://registry.npmjs.org/cordova-plugin-screen-orientation/-/cordova-plugin-screen-orientation-3.0.2.tgz",
"integrity": "sha512-2w6CMC+HGvbhogJetalwGurL2Fx8DQCCPy3wlSZHN1/W7WoQ5n9ujVozcoKrY4VaagK6bxrPFih+ElkO8Uqfzg==" "integrity": "sha512-2w6CMC+HGvbhogJetalwGurL2Fx8DQCCPy3wlSZHN1/W7WoQ5n9ujVozcoKrY4VaagK6bxrPFih+ElkO8Uqfzg=="
}, },
"cordova-plugin-splashscreen": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/cordova-plugin-splashscreen/-/cordova-plugin-splashscreen-6.0.0.tgz",
"integrity": "sha512-pm4ZtJKQY4bCGXVeIInbGrXilryTevYSKgfvoQJpW9UClOWKAxSsYf2/4G2u1vcn492svOSL42OSa2MhujBWEQ=="
},
"cordova-plugin-statusbar": { "cordova-plugin-statusbar": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/cordova-plugin-statusbar/-/cordova-plugin-statusbar-3.0.0.tgz", "resolved": "https://registry.npmjs.org/cordova-plugin-statusbar/-/cordova-plugin-statusbar-3.0.0.tgz",

View File

@ -107,7 +107,6 @@
"cordova-plugin-network-information": "3.0.0", "cordova-plugin-network-information": "3.0.0",
"cordova-plugin-prevent-override": "1.0.1", "cordova-plugin-prevent-override": "1.0.1",
"cordova-plugin-screen-orientation": "3.0.2", "cordova-plugin-screen-orientation": "3.0.2",
"cordova-plugin-splashscreen": "6.0.0",
"cordova-plugin-statusbar": "3.0.0", "cordova-plugin-statusbar": "3.0.0",
"cordova-plugin-wkuserscript": "1.0.1", "cordova-plugin-wkuserscript": "1.0.1",
"cordova-plugin-wkwebview-cookies": "1.0.1", "cordova-plugin-wkwebview-cookies": "1.0.1",
@ -223,7 +222,6 @@
"cordova-plugin-media-capture": {}, "cordova-plugin-media-capture": {},
"cordova-plugin-network-information": {}, "cordova-plugin-network-information": {},
"@moodlehq/cordova-plugin-qrscanner": {}, "@moodlehq/cordova-plugin-qrscanner": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-statusbar": {}, "cordova-plugin-statusbar": {},
"cordova-plugin-wkuserscript": {}, "cordova-plugin-wkuserscript": {},
"cordova-plugin-wkwebview-cookies": {}, "cordova-plugin-wkwebview-cookies": {},

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB