Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Configuration for Phonegap Build
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.garciaechegaray.app" versionCode="1" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
<!--/YourPhonegapProject/www/config.xml-->
<name>App Name</name>
<description>
App Description
</description>
<author email="bruno@garciaechegaray.com" href="http://blog.garciaechegaray.com">
App Name
</author>
<!--Preferences-->
<preference name="permissions" value="none" />
<preference name="phonegap-version" value="3.6.3" />
<preference name="orientation" value="default" />
<preference name="target-device" value="universal" />
<preference name="fullscreen" value="true" />
<preference name="webviewbounce" value="true" />
<preference name="prerendered-icon" value="true" />
<preference name="stay-in-webview" value="false" />
<preference name="StatusBarBackgroundColor" value="#000000" />
<preference name="detect-data-types" value="true" />
<preference name="exit-on-suspend" value="false" />
<preference name="SplashScreen" value="screen" />
<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" />
<!-- all: hides the status bar at the top of the screen -->
<preference name="webviewbounce" value="false" />
<preference name="DisallowOverscroll" value="true" />
<preference name="UIWebViewBounce" value="false" />
<!--Plugins-->
<gap:plugin name="com.phonegap.plugin.statusbar" />
<gap:plugin name="org.apache.cordova.splashscreen" />
<gap:plugin name="org.apache.cordova.inappbrowser" />
<gap:plugin name="org.apache.cordova.geolocation" />
<gap:plugin name="org.apache.cordova.dialogs" />
<gap:plugin name="net.yoik.cordova.plugins.screenorientation" />
<!--
Fixed Android geoposition bug
http://docs.build.phonegap.com/en_US/2.9.0/configuring_features.md.html#Features
-->
<feature name="http://api.phonegap.com/1.0/geolocation"/>
<!--
Fixed iOS8 geoposition bug
http://community.phonegap.com/nitobi/topics/geolocation-not-working-on-ios-8
-->
<gap:config-file platform="ios" parent="NSLocationAlwaysUsageDescription" overwrite="false">
<array>
<string>Allow GPS</string>
</array>
</gap:config-file>
<!--Phonegap Build Platform-->
<gap:platform name="ios" />
<gap:platform name="android" />
<!--### ICONS ###-->
<!--Icon launcher-->
<icon src="icon.png" />
<!--Android-->
<icon gap:density="ldpi" gap:platform="android" src="res/icon/android/36.png" />
<icon gap:density="mdpi" gap:platform="android" src="res/icon/android/48.png" />
<icon gap:density="hdpi" gap:platform="android" src="res/icon/android/96.png" />
<icon gap:density="xhdpi" gap:platform="android" src="res/icon/android/144.png" />
<icon gap:density="xxhdpi" gap:platform="android" src="res/icon/android/192.png" />
<icon gap:density="xxxhdpi" gap:platform="android" src="res/icon/android/288.png" />
<!-- iPhone / iPod Touch -->
<icon gap:platform="ios" width="57" height="57" src="res/icon/ios/Icon-57.png" />
<icon gap:platform="ios" width="60" height="60" src="res/icon/ios/Icon-60.png" />
<icon gap:platform="ios" width="120" height="120" src="res/ios/Icon-60@2x.png" />
<icon gap:platform="ios" width="120" height="120" src="res/ios/Icon-120.png" />
<icon gap:platform="ios" width="180" height="180" src="res/ios/Icon-60@3x.png" />
<!-- iPad -->
<icon gap:platform="ios" width="72" height="72" src="res/icon/ios/Icon-72.png" />
<icon gap:platform="ios" width="144" height="144" src="res/icon/ios/Icon-72@2x" />
<icon gap:platform="ios" width="76" height="76" src="res/icon/ios/Icon-76.png" />
<icon gap:platform="ios" width="152" height="152" src="res/ios/Icon-76@2x.png" />
<icon gap:platform="ios" width="152" height="152" src="res/ios/Icon-152.png" />
<!-- iPhone Spotlight and Settings Icon -->
<icon gap:platform="ios" src="res/ios/Icon-small.png" width="29" height="29" />
<icon gap:platform="ios" src="res/ios/Icon-small@2x.png" width="58" height="58" />
<icon gap:platform="ios" src="res/ios/Icon-small@3x.png" width="87" height="87" />
<!-- Spotlight Icon -->
<icon gap:platform="ios" src="res/ios/Icon-40.png" width="40" height="40" />
<icon gap:platform="ios" src="res/ios/Icon-40@2x.png" width="80" height="80" />
<icon gap:platform="ios" src="res/ios/Icon-40@3x.png" width="120" height="120" />
<!-- iPad Spotlight and Settings Icon -->
<icon gap:platform="ios" src="res/ios/Icon-50.png" width="50" height="50" />
<icon gap:platform="ios" src="res/ios/Icon-50@2x.png" width="100" height="100" />
<!--### SPLASH SCREEN ### -->
<!--Android-->
<gap:splash gap:qualifier="ldpi" gap:platform="android" src="res/screen/android/screen-ldpi-portrait.png" />
<gap:splash gap:qualifier="mdpi" gap:platform="android" src="res/screen/android/screen-mdpi-portrait.png" />
<gap:splash gap:qualifier="hdpi" gap:platform="android" src="res/screen/android/screen-hdpi-portrait.png" />
<gap:splash gap:qualifier="xhdpi" gap:platform="android" src="res/screen/android/screen-xhdpi-portrait.png" />
<gap:splash gap:qualifier="xxhdpi" gap:platform="android" src="res/screen/android/screen-xxhdpi-portrait.png" />
<!--iPhone-->
<gap:splash gap:platform="ios" width="320" height="480" src="res/screen/ios/Default.png" />
<gap:splash gap:platform="ios" width="640" height="960" src="res/screen/ios/Default@2x.png" />
<!--iPad-->
<gap:splash gap:platform="ios" width="768" height="1024" src="res/screen/ios/Default-Portrait.png" />
<gap:splash gap:platform="ios" width="1024" height="768" src="res/screen/ios/Default-Landscape.png" />
<!-- iPad Retina -->
<gap:splash gap:platform="ios" width="1536" height="2048" src="res/screen/ios/Default-Portrait@2x.png" />
<gap:splash gap:platform="ios" width="2048" height="1536" src="res/screen/ios/Default-Landscape@2x.png" />
<!-- iPhone 5 -->
<gap:splash gap:platform="ios" width="640" height="1136" src="res/screen/ios/Default-568h@2x.png" />
<!-- iPhone 6 -->
<gap:splash gap:platform="ios" width="750" height="1334" src="res/screen/ios/Default-667h.png" />
<gap:splash gap:platform="ios" width="1242" height="2208" src="res/screen/ios/Default-Portrait-736h@3x.png" />
<gap:splash gap:platform="ios" width="2208" height="1242" src="res/screen/ios/Default-Landscape-736h@3x.png" />
<!--Allow your app to launch external applications-->
<access origin="tel:*" launch-external="yes" />
<access origin="mailto:*" launch-external="yes" />
<!-- My Domain -->
<access origin="http://my-domain.com" subdomains="true"/>
<!--Google API-->
<access origin="*.google.com"/>
<access origin="*.googleapis.com" />
<access origin="*.gstatic.com" />
<access origin="google-analytics.com" />
</widget>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment