Skip to content

Instantly share code, notes, and snippets.

@slorber
Last active July 13, 2016 16:27
Show Gist options
  • Save slorber/fc2f9a4018f4f3a76c11d5f48001bb83 to your computer and use it in GitHub Desktop.
Save slorber/fc2f9a4018f4f3a76c11d5f48001bb83 to your computer and use it in GitHub Desktop.
From cordova project
<?xml version='1.0' encoding='utf-8'?>
<widget id="co.stample" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:gap="http://phonegap.com/ns/1.0">
<name>Stample</name>
<description>
Your Knowledge Network
</description>
<author email="[email protected]" href="https://stample.co">
Stample
</author>
<access origin="http://*" />
<access origin="https://*" />
<access launch-external="yes" origin="tel:*" />
<access launch-external="yes" origin="geo:*" />
<access launch-external="yes" origin="mailto:*" />
<access launch-external="yes" origin="sms:*" />
<access launch-external="yes" origin="market:*" />
<allow-intent href="*" />
<!--<allow-navigation href="*" />-->
<engine name="android" spec="5.1.1" />
<engine name="ios" spec="4.1.1" />
<plugin name="cordova-plugin-device" spec="1.1.1" />
<plugin name="cordova-plugin-console" spec="1.0.2" />
<plugin name="cordova-plugin-whitelist" spec="1.2.1" />
<plugin name="uk.co.whiteoctober.cordova.appversion" spec="https://github.com/whiteoctober/cordova-plugin-app-version.git#0.1.8" />
<plugin name="cordova-plugin-crosswalk-webview" spec="1.6.1" />
<plugin name="cordova-plugin-screen-orientation" spec="1.4.1" />
<plugin name="cordova-plugin-splashscreen" spec="3.2.1" />
<plugin name="cordova-plugin-inappbrowser" spec="1.3.0" />
<plugin name="cordova-plugin-globalization" spec="1.0.3" />
<plugin name="cordova-plugin-camera" spec="2.1.1" />
<plugin name="cordova-sharingreceptor" spec="https://github.com/stample/cordova-sharingreceptor.git#master" />
<plugin name="cordova-plugin-intercom" spec="1.1.7"/>
<plugin name="phonegap-plugin-push" spec="1.7.0">
<variable name="SENDER_ID" value="sdfsdfsdf" />
</plugin>
<plugin name="cordova-plugin-customurlscheme" spec="4.1.5">
<variable name="URL_SCHEME" value="stample" />
</plugin>
<plugin name="cordova-plugin-code-push" spec="~1.8.0-beta" />
<content src="index.html" />
<preference name="AndroidLaunchMode" value="singleTask"/> <!-- important for other apps sharing data to stample app -->
<preference name="android-minSdkVersion" value="14" />
<preference name="android-targetSdkVersion" value="22" />
<preference name="LogLevel" value="DEBUG"/> <!-- TODO increase in the future! -->
<preference name="permissions" value="none" />
<preference name="DisallowOverscroll" value="true" />
<preference name="webviewbounce" value="false" />
<preference name="stay-in-webview" value="false" />
<!--<preference name="StatusBarOverlaysWebView" value="true" />-->
<!--<preference name="StatusBarBackgroundColor" value="#0177C6" />-->
<preference name="SplashScreen" value="screen" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="SplashScreenDelay" value="10000"/>
<platform name="android">
<preference name="CodePushDeploymentKey" value="sdfsfsdf" />
</platform>
<platform name="ios">
<preference name="CodePushDeploymentKey" value="sdfshgfhfgh" />
</platform>
<preference name="deployment-target" value="7.0" />
<preference name="xwalkVersion" value="17+" />
<preference name="xwalkCommandLine" value="--disable-pull-to-refresh-effect" />
<preference name="xwalkMode" value="embedded" />
<preference name="xwalkMultipleApk" value="true" />
<!--
/!\ It requires installing Android Extra > Google Repository
See https://github.com/intercom/intercom-cordova/issues/6
TODO How to dynamically choose the dev/prod conf?
See https://issues.apache.org/jira/browse/CB-9607
-->
<preference name="intercom-app-id" value="sdfsdsf"/>
<preference name="intercom-ios-api-key" value="ios_sdk-sdfsfsdfsdf"/>
<preference name="intercom-android-api-key" value="android_sdk-sdfsdfsdfsdfdsf"/>
<!--
Allows to programmatically trigger focus events on iOS, normally disallowed by mobile Webkit
-->
<preference name="KeyboardDisplayRequiresUserAction" value="false" />
<!--
For icons/splash handling, see this link:
http://stackoverflow.com/questions/17820492/how-to-add-app-icon-within-phonegap-projects/31674547#31674547
-->
<platform name="android">
<icon src="resources/icons/android/icon-ldpi.png" density="ldpi" />
<icon src="resources/icons/android/icon-mdpi.png" density="mdpi" />
<icon src="resources/icons/android/icon-hdpi.png" density="hdpi" />
<icon src="resources/icons/android/icon-xhdpi.png" density="xhdpi" />
<icon src="resources/icons/android/icon-xxhdpi.png" density="xxhdpi" />
<icon src="resources/icons/android/icon-xxxhdpi.png" density="xxxhdpi" />
<splash src="resources/splashs/android/res-long-land-hdpi/splash.png" density="land-hdpi"/>
<splash src="resources/splashs/android/res-long-land-ldpi/splash.png" density="land-ldpi"/>
<splash src="resources/splashs/android/res-long-land-mdpi/splash.png" density="land-mdpi"/>
<splash src="resources/splashs/android/res-long-land-xhdpi/splash.png" density="land-xhdpi"/>
<splash src="resources/splashs/android/res-long-land-xxhdpi/splash.png" density="land-xxhdpi"/>
<splash src="resources/splashs/android/res-long-land-xxxhdpi/splash.png" density="land-xxxhdpi"/>
<splash src="resources/splashs/android/res-long-port-hdpi/splash.png" density="port-hdpi"/>
<splash src="resources/splashs/android/res-long-port-ldpi/splash.png" density="port-ldpi"/>
<splash src="resources/splashs/android/res-long-port-mdpi/splash.png" density="port-mdpi"/>
<splash src="resources/splashs/android/res-long-port-xhdpi/splash.png" density="port-xhdpi"/>
<splash src="resources/splashs/android/res-long-port-xxhdpi/splash.png" density="port-xxhdpi"/>
<splash src="resources/splashs/android/res-long-port-xxxhdpi/splash.png" density="port-xxxhdpi"/>
</platform>
<platform name="ios">
<icon src="resources/icons/ios/iphone.png" width="60" height="60" />
<icon src="resources/icons/ios/[email protected]" width="120" height="120" />
<!--<icon src="resources/icons/ios/ipad.png" width="72" height="72" />-->
<icon src="resources/icons/ios/[email protected]" width="152" height="152" />
<icon src="resources/icons/ios/ipad.png" width="76" height="76" />
<icon src="resources/icons/ios/itunesartwork.png" width="512" height="512" />
<icon src="resources/icons/ios/[email protected]" width="1024" height="1024" />
<icon src="resources/icons/ios/spotlight.png" width="40" height="40" />
<icon src="resources/icons/ios/[email protected]" width="80" height="80" />
<icon src="resources/icons/ios/settings.png" width="29" height="29" />
<icon src="resources/icons/ios/[email protected]" width="58" height="58" />
<icon src="resources/icons/ios/ipodtouch.png" width="57" height="57" />
<splash src="resources/splashs/ios/splash.png" width="320" height="480"/>
<splash src="resources/splashs/ios/[email protected]" width="640" height="960"/>
<splash src="resources/splashs/ios/splash-portrait.png" width="768" height="1024"/>
<splash src="resources/splashs/ios/[email protected]" width="1536" height="2048"/>
<splash src="resources/splashs/ios/splash-landscape.png" width="1024" height="768"/>
<splash src="resources/splashs/ios/[email protected]" width="2048" height="1536"/>
<splash src="resources/splashs/ios/[email protected]" width="640" height="1136"/>
<splash src="resources/splashs/ios/[email protected]" width="750" height="1334"/>
<splash src="resources/splashs/ios/[email protected]" width="1242" height="2208"/>
<splash src="resources/splashs/ios/[email protected]" width="2208" height="1242"/>
</platform>
</widget>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment