Skip to content

Instantly share code, notes, and snippets.

@louisbl
Last active August 29, 2015 14:09
Show Gist options
  • Save louisbl/afdb961631a2407daa90 to your computer and use it in GitHub Desktop.
Save louisbl/afdb961631a2407daa90 to your computer and use it in GitHub Desktop.
Version number in config.xml for phonegap build
<?xml version='1.0' encoding='utf-8'?>
<widget
xmlns="http://www.w3.org/ns/widgets"
xmlns:cdv="http://cordova.apache.org/ns/1.0"
xmlns:gap = "http://phonegap.com/ns/1.0"
id="com.example.app"
version="1.2.3"
versionCode="705">
<gap:platform name="ios" />
<preference name="phonegap-version" value="3.6.3" />
<icon src="icon.png" />
<icon src="icon.png" gap:platform="ios" width="57" height="57"/>
<gap:splash src="splash.png" />
<name>Example</name>
<description>Example App</description>
<author email="hello@example.com" href="http://example.com">Example App team</author>
<content src="index.html" />
<access origin="*" />
<preference name="keeprunning" value="false" />
<preference name="fullscreen" value="true" />
<preference name="orientation" value="landscape" />
<preference name="target-device" value="tablet" />
<preference name="disallowoverscroll" value="true"/>
<preference name="backgroundcolor" value="0xfffdfef0"/>
<preference name="androidpersistentfilelocation" value="Internal" />
<preference name="iospersistentfilelocation" value="Library" />
<preference name="backupwebstorage" value="none" />
<preference name="statusbaroverlayswebview" value="true" />
<preference name="statusbarbackgroundcolor" value="#fffdfef0" />
<preference name="autohidesplashscreen" value="false" />
<gap:plugin name="org.apache.cordova.device" />
<gap:plugin name="org.apache.cordova.geolocation" />
<gap:plugin name="org.apache.cordova.inappbrowser" />
<gap:plugin name="org.apache.cordova.network-information" />
<gap:plugin name="org.apache.cordova.splashscreen" />
<gap:plugin name="org.apache.cordova.statusbar" />
<!-- iPad -->
<icon src="res/icons/icon-76.png" gap:platform="ios" width="76" height="76" />
<icon src="res/icons/icon-76@2x.png" gap:platform="ios" width="152" height="152" />
<!-- iPad -->
<icon src="res/icons/icon-72.png" gap:platform="ios" width="72" height="72" />
<icon src="res/icons/icon-72@2x.png" gap:platform="ios" width="144" height="144" />
<!-- Settings Icon -->
<icon src="res/icons/icon-small.png" gap:platform="ios" width="29" height="29" />
<icon src="res/icons/icon-small@2x.png" gap:platform="ios" width="58" height="58" />
<!-- Spotlight Icon -->
<icon src="res/icons/icon-40.png" gap:platform="ios" width="40" height="40" />
<icon src="res/icons/icon-40@2x.png" gap:platform="ios" width="80" height="80" />
<!-- iPad Spotlight and Settings Icon -->
<icon src="res/icons/icon-50.png" gap:platform="ios" width="50" height="50" />
<icon src="res/icons/icon-50@2x.png" gap:platform="ios" width="100" height="100" />
<!-- iPad -->
<gap:splash src="res/splash/Default-Portrait~ipad.png" gap:platform="ios" width="768" height="1024" />
<gap:splash src="res/splash/Default-Landscape~ipad.png" gap:platform="ios" width="1024" height="768" />
<!-- Retina iPad -->
<gap:splash src="res/splash/Default-Portrait@2x~ipad.png" gap:platform="ios" width="1536" height="2048" />
<gap:splash src="res/splash/Default-Landscape@2x~ipad.png" gap:platform="ios" width="2048" height="1536" />
<gap:config-file platform="ios" parent="CFBundleVersion">
<string>705</string>
</gap:config-file>
</widget>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment