Skip to content

Instantly share code, notes, and snippets.

@iloris
Created July 8, 2013 19:18
Show Gist options
  • Save iloris/5951662 to your computer and use it in GitHub Desktop.
Save iloris/5951662 to your computer and use it in GitHub Desktop.
Phonegap config file
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.site.app" version="0.0.10" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
<name>MyApp</name>
<description>
MyApp allow you to do stuff.
</description>
<author email="support@myapp.com" href="http://myapp.com">
MyApp Team
</author>
<!-- If you do not want any permissions to be added to your app, add the
following tag to your config.xml; you will still have the INTERNET
permission on your app, which PhoneGap requires. -->
<preference name="permissions" value="none"/>
<!-- to enable individual permissions use the following examples -->
<!-- <feature name="http://api.phonegap.com/1.0/device"/> -->
<!-- <feature name="http://api.phonegap.com/1.0/battery"/> -->
<!-- <feature name="http://api.phonegap.com/1.0/camera"/> -->
<!-- <feature name="http://api.phonegap.com/1.0/contacts"/> -->
<!-- <feature name="http://api.phonegap.com/1.0/file"/> -->
<!-- <feature name="http://api.phonegap.com/1.0/geolocation"/> -->
<!-- <feature name="http://api.phonegap.com/1.0/media"/> -->
<!-- <feature name="http://api.phonegap.com/1.0/network"/> -->
<!-- <feature name="http://api.phonegap.com/1.0/notification"/> -->
<preference name="phonegap-version" value="2.9.0" />
<preference name="orientation" value="portrait" />
<preference name="target-device" value="universal" />
<preference name="fullscreen" value="false" />
<preference name="webviewbounce" value="false" />
<preference name="prerendered-icon" value="true" />
<preference name="ios-statusbarstyle" value="black-opaque" />
<preference name="detect-data-types" value="true" />
<preference name="exit-on-suspend" value="false" />
<preference name="show-splash-screen-spinner" value="true" />
<preference name="auto-hide-splash-screen" value="true" />
<preference name="disable-cursor" value="false" />
<preference name="android-minSdkVersion" value="7" />
<preference name="android-installLocation" value="auto" />
<!-- plugins -->
<gap:plugin name="FacebookConnect">
<param name="APP_ID" value="1234567890" />
<param name="APP_NAME" value="myapp App" />
</gap:plugin>
<access origin="*" />
<!-- Icons -->
<icon src="icon.png" />
<!-- ios -->
<icon gap:platform="ios" height="57" src="res/icon/ios/icon-57.png" width="57" />
<icon gap:platform="ios" height="72" src="res/icon/ios/icon-72.png" width="72" />
<icon gap:platform="ios" height="114" src="res/icon/ios/icon-57-2x.png" width="114" />
<icon gap:platform="ios" height="144" src="res/icon/ios/icon-72-2x.png" width="144" />
<!-- android -->
<icon gap:density="ldpi" gap:platform="android" src="res/icon/android/icon-36-ldpi.png" />
<icon gap:density="mdpi" gap:platform="android" src="res/icon/android/icon-48-mdpi.png" />
<icon gap:density="hdpi" gap:platform="android" src="res/icon/android/icon-72-hdpi.png" />
<icon gap:density="xhdpi" gap:platform="android" src="res/icon/android/icon-96-xhdpi.png" />
<!-- blackberry -->
<icon gap:platform="blackberry" src="res/icon/blackberry/icon-80.png" />
<icon gap:platform="blackberry" gap:state="hover" src="res/icon/blackberry/icon-80.png" />
<!-- other -->
<icon gap:platform="webos" src="res/icon/webos/icon-64.png" />
<icon gap:platform="winphone" src="res/icon/windows-phone/icon-48.png" />
<icon gap:platform="winphone" gap:role="background" src="res/icon/windows-phone/icon-173.png" />
<!-- Splash Screens-->
<!-- ios -->
<gap:splash gap:platform="ios" height="480" src="res/screen/ios/screen-iphone-portrait.png" width="320" />
<gap:splash gap:platform="ios" height="960" src="res/screen/ios/screen-iphone-portrait-2x.png" width="640" />
<gap:splash gap:platform="ios" height="1024" src="res/screen/ios/screen-ipad-portrait.png" width="768" />
<gap:splash gap:platform="ios" height="768" src="res/screen/ios/screen-ipad-landscape.png" width="1024" />
<!-- android -->
<gap:splash gap:density="ldpi" gap:platform="android" src="res/screen/android/screen-ldpi-portrait.png" />
<gap:splash gap:density="mdpi" gap:platform="android" src="res/screen/android/screen-mdpi-portrait.png" />
<gap:splash gap:density="hdpi" gap:platform="android" src="res/screen/android/screen-hdpi-portrait.png" />
<gap:splash gap:density="xhdpi" gap:platform="android" src="res/screen/android/screen-xhdpi-portrait.png" />
<!-- blackberry -->
<gap:splash gap:platform="blackberry" src="res/screen/blackberry/screen-225.png" />
<!-- windows phone -->
<gap:splash gap:platform="winphone" src="res/screen/windows-phone/screen-portrait.jpg" />
</widget>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment