Created
October 26, 2017 14:17
-
-
Save duluca/64b6caaae4a7cd77e7b7e32e67bf7098 to your computer and use it in GitHub Desktop.
Sample Cordova Config file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='utf-8'?> | |
<widget android-versionCode="203091" id="com.excella.central" version="2.3.9" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0"> | |
<name>Excella Central</name> | |
<description> | |
Connect with your colleagues. | |
</description> | |
<author email="[email protected]" href="https://www.excella.com"> | |
Excella | |
</author> | |
<content src="index.html" /> | |
<preference name="DisallowOverscroll" value="true" /> | |
<preference name="UIWebViewBounce" value="false" /> | |
<preference name="android-minSdkVersion" value="14" /> | |
<preference name="orientation" value="portrait" /> | |
<preference name="KeyboardDisplayRequiresUserAction" value="false" /> | |
<preference name="StatusBarOverlaysWebView" value="false" /> | |
<preference name="StatusBarBackgroundColor" value="#420099" /> | |
<preference name="StatusBarStyle" value="lightcontent" /> | |
<preference name="ShowSplashScreenSpinner" value="false" /> | |
<preference name="AutoHideSplashScreen" value="false" /> | |
<preference name="SplashScreenDelay" value="50" /> | |
<preference name="FadeSplashScreenDuration" value="50" /> | |
<hook src="scripts/prebuild.js" type="before_build" /> | |
<hook src="scripts/postbuild.js" type="after_build" /> | |
<icon src="res/icon/ios/icon.png" /> | |
<platform name="android"> | |
<icon density="ldpi" src="res/icon/android/icon-36-ldpi.png" /> | |
<icon density="mdpi" src="res/icon/android/icon-48-mdpi.png" /> | |
<icon density="hdpi" src="res/icon/android/icon-72-hdpi.png" /> | |
<icon density="xhdpi" src="res/icon/android/icon-96-xhdpi.png" /> | |
<icon density="xxhdpi" src="res/icon/android/icon-144-xxhdpi.png" /> | |
<icon density="xxxhdpi" src="res/icon/android/icon-192-xxxhdpi.png" /> | |
</platform> | |
<platform name="ios"> | |
<icon height="180" src="res/icon/ios/[email protected]" width="180" /> | |
<icon height="60" src="res/icon/ios/icon-60.png" width="60" /> | |
<icon height="120" src="res/icon/ios/[email protected]" width="120" /> | |
<icon height="76" src="res/icon/ios/icon-76.png" width="76" /> | |
<icon height="152" src="res/icon/ios/[email protected]" width="152" /> | |
<icon height="40" src="res/icon/ios/icon-40.png" width="40" /> | |
<icon height="80" src="res/icon/ios/[email protected]" width="80" /> | |
<icon height="57" src="res/icon/ios/icon.png" width="57" /> | |
<icon height="114" src="res/icon/ios/[email protected]" width="114" /> | |
<icon height="72" src="res/icon/ios/icon-72.png" width="72" /> | |
<icon height="144" src="res/icon/ios/[email protected]" width="144" /> | |
<icon height="29" src="res/icon/ios/icon-small.png" width="29" /> | |
<icon height="58" src="res/icon/ios/[email protected]" width="58" /> | |
<icon height="50" src="res/icon/ios/icon-50.png" width="50" /> | |
<icon height="100" src="res/icon/ios/[email protected]" width="100" /> | |
</platform> | |
<platform name="android"> | |
<splash density="land-hdpi" src="res/screen/android/splash-land-hdpi.png" /> | |
<splash density="land-ldpi" src="res/screen/android/splash-land-ldpi.png" /> | |
<splash density="land-mdpi" src="res/screen/android/splash-land-mdpi.png" /> | |
<splash density="land-xhdpi" src="res/screen/android/splash-land-xhdpi.png" /> | |
<splash density="port-hdpi" src="res/screen/android/splash-port-hdpi.png" /> | |
<splash density="port-ldpi" src="res/screen/android/splash-port-ldpi.png" /> | |
<splash density="port-mdpi" src="res/screen/android/splash-port-mdpi.png" /> | |
<splash density="port-xhdpi" src="res/screen/android/splash-port-xhdpi.png" /> | |
</platform> | |
<platform name="ios"> | |
<splash height="480" src="res/screen/ios/Default~iphone.png" width="320" /> | |
<splash height="960" src="res/screen/ios/Default@2x~iphone.png" width="640" /> | |
<splash height="1024" src="res/screen/ios/Default-Portrait~ipad.png" width="768" /> | |
<splash height="2048" src="res/screen/ios/Default-Portrait@2x~ipad.png" width="1536" /> | |
<splash height="768" src="res/screen/ios/Default-Landscape~ipad.png" width="1024" /> | |
<splash height="1536" src="res/screen/ios/Default-Landscape@2x~ipad.png" width="2048" /> | |
<splash height="1136" src="res/screen/ios/Default-568h@2x~iphone.png" width="640" /> | |
<splash height="1334" src="res/screen/ios/Default-667h.png" width="750" /> | |
<splash height="2208" src="res/screen/ios/Default-736h.png" width="1242" /> | |
<splash height="1242" src="res/screen/ios/Default-Landscape-736h.png" width="2208" /> | |
</platform> | |
<platform name="android"> | |
<allow-intent href="market:*" /> | |
</platform> | |
<platform name="ios"> | |
<allow-intent href="itms:*" /> | |
<allow-intent href="itms-apps:*" /> | |
</platform> | |
<access origin="*" /> | |
<allow-intent href="http://*/*" /> | |
<allow-intent href="https://*/*" /> | |
<allow-intent href="tel:*" /> | |
<allow-intent href="sms:*" /> | |
<allow-intent href="mailto:*" /> | |
<allow-intent href="geo:*" /> | |
<engine name="android" spec="^6.3.0" /> | |
<engine name="browser" spec="^4.1.0" /> | |
<engine name="ios" spec="^4.5.1" /> | |
<plugin name="cordova-background-geolocation" spec="git+ssh://[email protected]/transistorsoft/cordova-background-geolocation.git"> | |
<variable name="LICENSE" value="" /> | |
<variable name="BACKGROUND_MODE_LOCATION" value="<string>location</string>" /> | |
<variable name="LOCATION_ALWAYS_USAGE_DESCRIPTION" value="We need this for accurate & fast map locations" /> | |
<variable name="LOCATION_WHEN_IN_USE_USAGE_DESCRIPTION" value="We need this for accurate & fast map locations" /> | |
<variable name="MOTION_USAGE_DESCRIPTION" value="Using the accelerometer increases battery-efficiency by intelligently toggling location-tracking only when the device is detected to be moving" /> | |
</plugin> | |
<plugin name="cordova-plugin-console" spec="^1.0.7" /> | |
<plugin name="cordova-plugin-device" spec="^1.1.6" /> | |
<plugin name="cordova-plugin-dialogs" spec="^1.2.1" /> | |
<plugin name="cordova-plugin-geolocation" spec="^2.1.0" /> | |
<plugin name="cordova-plugin-inappbrowser" spec="^1.7.1" /> | |
<plugin name="cordova-plugin-network-information" spec="^1.2.1" /> | |
<plugin name="cordova-plugin-splashscreen" spec="^3.2.2" /> | |
<plugin name="cordova-plugin-statusbar" spec="^2.1.3" /> | |
<plugin name="cordova-plugin-whitelist" spec="^1.2.2" /> | |
<plugin name="ionic-plugin-keyboard" spec="^2.2.1" /> | |
</widget> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment