Skip to content

Instantly share code, notes, and snippets.

@taufiksu
Created March 26, 2018 03:54
Show Gist options
  • Save taufiksu/6fd917941603ad3d8241f76e06f970d0 to your computer and use it in GitHub Desktop.
Save taufiksu/6fd917941603ad3d8241f76e06f970d0 to your computer and use it in GitHub Desktop.
Cordova Config Template
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.studygo.admin" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>StudyGo Admin</name>
<description>
Application for Administrator
</description>
<author email="info@studygo.my" href="http://studygo.my">
S3 Education
</author>
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<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:*" />
<preference name="windows-target-version" value="10.0" />
<preference name="SplashScreenBackgroundColor" value="#33393D" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<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" />
</platform>
<platform name="android">
<splash density="land-hdpi" src="res/screen/android/screen-hdpi-landscape.png" />
<splash density="land-ldpi" src="res/screen/android/screen-ldpi-landscape.png" />
<splash density="land-mdpi" src="res/screen/android/screen-mdpi-landscape.png" />
<splash density="land-xhdpi" src="res/screen/android/screen-xhdpi-landscape.png" />
<splash density="port-hdpi" src="res/screen/android/screen-hdpi-portrait.png" />
<splash density="port-ldpi" src="res/screen/android/screen-ldpi-portrait.png" />
<splash density="port-mdpi" src="res/screen/android/screen-mdpi-portrait.png" />
<splash density="port-xhdpi" src="res/screen/android/screen-xhdpi-portrait.png" />
</platform>
<platform name="windows">
<icon height="150" src="res/icon/windows/Square150x150Logo.scale-100.png" width="150" />
<icon height="360" src="res/icon/windows/Square150x150Logo.scale-240.png" width="360" />
<icon height="30" src="res/icon/windows/Square30x30Logo.scale-100.png" width="30" />
<icon height="310" src="res/icon/windows/Square310x310Logo.scale-100.png" width="310" />
<icon height="44" src="res/icon/windows/Square44x44Logo.scale-100.png" width="44" />
<icon height="106" src="res/icon/windows/Square44x44Logo.scale-240.png" width="106" />
<icon height="70" src="res/icon/windows/Square70x70Logo.scale-100.png" width="70" />
<icon height="71" src="res/icon/windows/Square71x71Logo.scale-100.png" width="71" />
<icon height="170" src="res/icon/windows/Square71x71Logo.scale-240.png" width="170" />
<icon height="50" src="res/icon/windows/StoreLogo.scale-100.png" width="50" />
<icon height="120" src="res/icon/windows/StoreLogo.scale-240.png" width="120" />
<icon height="150" src="res/icon/windows/Wide310x150Logo.scale-100.png" width="310" />
<icon height="360" src="res/icon/windows/Wide310x150Logo.scale-240.png" width="744" />
</platform>
<platform name="windows">
<splash height="300" src="res/screen/windows/SplashScreen.scale-100.png" width="620" />
<splash height="1920" src="res/screen/windows/SplashScreen.scale-240.png" width="1152" />
<splash height="1920" src="res/screen/windows/SplashScreenPhone.scale-240.png" width="1152" />
</platform>
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
<plugin name="cordova-plugin-console" spec="^1.1.0" />
<plugin name="cordova-plugin-media" spec="^5.0.2" />
<plugin name="cordova-plugin-file" spec="^6.0.1" />
<plugin name="cordova-plugin-file-transfer" spec="^1.7.1" />
<plugin name="cordova-plugin-filechooser" spec="^1.0.1" />
<plugin name="cordova-plugin-windows-filepicker" spec="^0.1.7" />
<plugin name="cordova-plugin-camera" spec="^4.0.2" />
<plugin name="cordova-plugin-device" spec="^2.0.1" />
<plugin name="onesignal-cordova-plugin" spec="^2.3.2" />
<engine name="windows" spec="5.0.0" />
<engine name="android" spec="^7.0.0" />
</widget>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment