1. 程式人生 > >ionic 打包ipa和apk時通用的config.xml詳細配置

ionic 打包ipa和apk時通用的config.xml詳細配置

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><widget id="com.ionicframework.idukou597806" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>idukou</name> <description>An awesome Ionic/Cordova app.</description> <author email="[email protected]" href="http://ionicframework.com/">Ionic Framework Team</author> <content src="index.html"/> <!-- cordova-plugin-whitelist --> <allow-navigation href="http://*/*" /> <allow-navigation href="https://*/*" /> <access origin="*" /> <allow-intent href="tel:*"/> <allow-intent href="sms:*" /> <allow-intent href="mailto:*" /> <allow-intent href="geo:*" /> <access launch-external="yes" origin="tel:*" /> <access launch-external="yes" origin="sms:*" /> <access launch-external="yes" origin="mailto:*" /> <access launch-external="yes" origin="http:*" /> <access launch-external="yes" origin="https:*" /> <!-- stop uiwebview from bouncing in iOS --> <preference name="webviewbounce" value="false" /> <preference name="UIWebViewBounce" value="false" /> <preference name="DisallowOverscroll" value="true" /> <!-- android ice cream sandwich --> <preference name="android-minSdkVersion" value="14" /> <!-- cordova-plugin-statusbar --> <preference name="StatusBarBackgroundColor" value="#000000" /> <!-- prevent web storage backups --> <preference name="BackupWebStorage" value="none" /> <preference name="ShowSplashScreenSpinner" value="false"/> <!-- cordova-plugin-splashscreen --> <preference name="SplashScreen" value="screen" /> <preference name="SplashScreenDelay" value="3000" /> <preference name="FadeSplashScreenDuration" value="2000"/> <preference name="Orientation" value="portrait" /> <!-- allow keyboard trigger with focus events --> <preference name="KeyboardDisplayRequiresUserAction" value="false" /> <!-- status bar permissions --> <feature name="StatusBar"> <param name="ios-package" onload="true" value="CDVStatusBar" /> </feature> <platform name="android"> <allow-intent href="market:*"/> <icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png"/> <icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png"/> <icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png"/> <icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png"/> <icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png"/> <icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png"/> <splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png"/> <splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png"/> <splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png"/> <splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png"/> <splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png"/> <splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png"/> <splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png"/> <splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png"/> <splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png"/> <splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png"/> <splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png"/> <splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png"/> </platform> <platform name="ios"> <allow-intent href="itms:*"/> <allow-intent href="itms-apps:*"/> <icon src="resources/ios/icon/icon.png" width="57" height="57"/> <icon src="resources/ios/icon/
[email protected]
" width="114" height="114"/> <icon src="resources/ios/icon/icon-40.png" width="40" height="40"/> <icon src="resources/ios/icon/[email protected]" width="80" height="80"/> <icon src="resources/ios/icon/[email protected]" width="120" height="120"/> <icon src="resources/ios/icon/icon-50.png" width="50" height="50"/> <icon src="resources/ios/icon/
[email protected]
" width="100" height="100"/> <icon src="resources/ios/icon/icon-60.png" width="60" height="60"/> <icon src="resources/ios/icon/[email protected]" width="120" height="120"/> <icon src="resources/ios/icon/[email protected]" width="180" height="180"/> <icon src="resources/ios/icon/icon-72.png" width="72" height="72"/> <icon src="resources/ios/icon/
[email protected]
" width="144" height="144"/> <icon src="resources/ios/icon/icon-76.png" width="76" height="76"/> <icon src="resources/ios/icon/[email protected]" width="152" height="152"/> <icon src="resources/ios/icon/[email protected]" width="167" height="167"/> <icon src="resources/ios/icon/icon-small.png" width="29" height="29"/> <icon src="resources/ios/icon/[email protected]" width="58" height="58"/> <icon src="resources/ios/icon/[email protected]" width="87" height="87"/> <splash src="resources/ios/splash/[email protected]~iphone.png" width="640" height="1136"/> <splash src="resources/ios/splash/Default-667h.png" width="750" height="1334"/> <splash src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" height="768"/> <splash src="resources/ios/splash/[email protected]~ipad.png" width="1536" height="2048"/> <splash src="resources/ios/splash/Default-Portrait~ipad.png" width="768" height="1024"/> <splash src="resources/ios/splash/[email protected]~iphone.png" width="640" height="960"/> <splash src="resources/ios/splash/Default~iphone.png" width="320" height="480"/> </platform> <plugin name="ionic-plugin-keyboard" spec="~2.2.1"/> <plugin name="cordova-plugin-whitelist" spec="1.3.1"/> <plugin name="cordova-plugin-console" spec="1.0.5"/> <plugin name="cordova-plugin-statusbar" spec="2.2.1"/> <plugin name="cordova-plugin-device" spec="1.1.4"/> <plugin name="cordova-plugin-splashscreen" spec="~4.0.1"/> <icon src="resources/ios/icon/[email protected]"/></widget>