framework7io / framework7-cli

Framework7 command line utility

Home Page:https://framework7.io/cli/

Repository from Github https://github.comframework7io/framework7-cliRepository from Github https://github.comframework7io/framework7-cli

Some optimizations for Cordova (Plugin and config.xml)

DAnn2012 opened this issue · comments

  1. The cordova-plugin-splashscreen is installed for both iOS and Android, but starting from version 6.0.0 of Cordova for iOS it is integrated.

if (options.cordovaPlatforms.indexOf('ios') >= 0 || options.cordovaPlatforms.indexOf('android') >= 0) {
options.cordova.plugins = [
'cordova-plugin-statusbar',
'cordova-plugin-keyboard',
'cordova-plugin-splashscreen',
];
}

https://cordova.apache.org/news/2020/06/13/plugins-release.html

Splash Screen
In the Cordova-iOS 6.x platform, the splash screen feature has been integrated into its core and no longer needs this plugin. This release prevents the plugin from being added to the iOS 6.x platform.

GH-261 chore: add cordova-ios requirement <6.0.0

  1. Some improvements that could be made to these lines of the config.xml file which are added to all platforms:

<preference name="BackupWebStorage" value="local" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="ShowSplashScreenSpinner" value="false" />
<preference name="SplashScreenDelay" value="0" />
<preference name="Suppresses3DTouchGesture" value="true" />
<preference name="Allow3DTouchLinkPreview" value="false" />
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
<preference name="AllowInlineMediaPlayback" value="true" />

<preference name="BackupWebStorage" value="local" /> is only for iOS

<preference name="ShowSplashScreenSpinner" value="false" /> is only for Android (in the version of splashscreen integrated in Cordova for iOS it seems to be no longer there)

<preference name="Suppresses3DTouchGesture" value="true" /> is only for iOS

<preference name="Allow3DTouchLinkPreview" value="false" /> it was for cordova-plugin-wkwebview-engine, which has now been removed

<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" /> is only for iOS

<preference name="AllowInlineMediaPlayback" value="true" /> is only for iOS

https://cordova.apache.org/docs/en/latest/config_ref/index.html#preference

Thanks.

There is nothing to do with it, if some preferences/plugin is added for both platforms but supported only by specific platform, it will be picked up correctly, and just ignored by other platform