forked from jessemonroy650/Phonegap-Splashscreen-Test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.xml
61 lines (54 loc) · 4.1 KB
/
config.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.bsdmasterindex.phonegapsplashscreen-test"
version = "1.2.0"
versionCode = "10" >
<!-- versionCode is optional and Android only -->
<!-- <preference name="phonegap-version" value="3.5.0" /> -->
<preference name="phonegap-version" value="cli-5.2.0" />
<name>Phonegap Splash Screen test</name>
<description>Splash Screen and Icon test</description>
<author href="http://bsdmasterindex.com" email="[email protected]">
Jesse Monroy
</author>
<gap:platform name="android" />
<gap:platform name="ios" />
<preference name="permissions" value="none"/>
<!-- PHONEGAP Master Example: https://github.com/phonegap/phonegap-start/blob/master/www/config.xml -->
<!-- device required so we can detect if we are using iOS -->
<plugin name="cordova-plugin-device" source="npm" spec="1.0.1" />
<plugin name="cordova-plugin-splashscreen" source="npm" spec="2.1.0" />
<!-- ANDROID * ANDROID * ANDROID -->
<preference name="SplashScreen" value="splash" />
<preference name="SplashScreenDelay" value="5000" />
<!-- iOS * iOS * iOS -->
<preference name="auto-hide-splash-screen" value="false" /> <!-- iOS -->
<preference name="show-splash-screen-spinner" value="false" /> <!-- iOS -->
<!-- ANDROID * ANDROID * ANDROID -->
<!-- the subdirectory 'drawable' is somehow tie via the AndoidManifest.xml -->
<!-- according to: http://tekeye.biz/2013/android-icon-size -->
<!-- NOTE: This cause an error with the iOS icons as well. -->
<icon src="res/drawable-ldpi/icon_48x48_ldpi.png" gap:platform="android" gap:qualifier="ldpi" />
<icon src="res/drawable-mdpi/icon_48x48_mdpi.png" gap:platform="android" gap:qualifier="mdpi" />
<icon src="res/drawable-hdpi/icon_72x72_hdpi.png" gap:platform="android" gap:qualifier="hdpi" />
<icon src="res/drawable-xhdpi/icon_96x96_xhpdi.png" gap:platform="android" gap:qualifier="xhdpi" />
<gap:splash src="splash.png" /> <!-- I have not found any documentation for this, but it appears deprecated -->
<gap:splash src="res/android/splashscreen-200x320-ldpi.png" gap:platform="android" gap:qualifier="port-ldpi" />
<gap:splash src="res/android/splashscreen-320x480-mdpi.png" gap:platform="android" gap:qualifier="port-mdpi" />
<gap:splash src="res/android/splashscreen-480x800-hdpi.png" gap:platform="android" gap:qualifier="port-hdpi" />
<gap:splash src="res/android/splashscreen-720x1280-xhdpi.png" gap:platform="android" gap:qualifier="port-xhdpi" />
<!-- iOS * iOS * iOS -->
<icon src="res/ios/icon_57x57.png" gap:platform="ios" width="57" height="57" />
<icon src="res/ios/icon_76x76.png" gap:platform="ios" width="76" height="76" />
<icon src="res/ios/icon_120x120.png" gap:platform="ios" width="120" height="120" />
<icon src="res/ios/icon_152x152.png" gap:platform="ios" width="152" height="152" />
<icon src="res/ios/icon_180x180.png" gap:platform="ios" width="180" height="180" />
<gap:splash src="res/ios/splashscreen~iphone-320x480" gap:platform="ios" width="320" height="480" />
<gap:splash src="res/ios/splashscreen~iphone-640x960.png" gap:platform="ios" width="640" height="960" />
<gap:splash src="res/ios/splashscreen~iphone-640x1136.png" gap:platform="ios" width="640" height="1136" />
<!-- landscape not supported at this time: 2015-06-07. Already reported see NOTES -->
<gap:splash src="res/ios/splashscreen-landscape~iphone-1136x640.png" gap:platform="ios" width="1136" height="640" />
<gap:splash src="res/ios/splashscreen-portrait~ipad-768x1024.png" gap:platform="ios" width="768" height="1024" />
<gap:splash src="res/ios/splashscreen-landscape~ipad-1024x768.png" gap:platform="ios" width="1024" height="768" />
</widget>