summaryrefslogtreecommitdiff
path: root/config.xml
blob: cb2f6a155443061de756466d346f5b57c75a0ee0 (plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<?xml version="1.0" encoding="UTF-8"?>

<!-- config.xml reference: https://build.phonegap.com/docs/config-xml -->
<widget xmlns     = "http://www.w3.org/ns/widgets"
        xmlns:gap = "http://phonegap.com/ns/1.0"
        id        = "si.uni-lj.fri.gameteam.codeq"
        version   = "1.0.0">

<!--
1.0 first release
-->

    <name>Code Q</name>

    <description>
        CodeQ is an e-service and a mobile app for teaching programming. The application enables the user to work on his or her own by solving a number of carefully prepared programming exercises and by guiding the user with automatically generated hints and test.
    </description>

    <author href="http://www.codeq.si" email="info@codeq.si">
        Artificial Intelligence Laboratory, Faculty of Computer and Information Science, University of Ljubljana.
    </author>

    <platform name="ios" />
    <platform name="android" />
    <platform name="winphone" />

    <!--
        If you do not want any permissions to be added to your app, add the
        following tag to your config.xml; you will still have the INTERNET
        permission on your app, which PhoneGap requires.
    -->
    <preference name="permissions"                value="none"/>

    <!-- Customize your app and platform with the preference element. -->
    <preference name="orientation"                value="default" />        <!-- all: default means both landscape and portrait are enabled -->
    <preference name="fullscreen"                 value="true" />           <!-- all: hides the status bar at the top of the screen -->
    <preference name="target-device"              value="universal" />      <!-- ios: possible values handset, tablet, or universal -->
    <preference name="prerendered-icon"           value="true" />           <!-- ios: if icon is prerendered, iOS will not apply it's gloss to the app's icon on the user's home screen -->
    <preference name="detect-data-types"          value="true" />           <!-- ios: controls whether data types (such as phone no. and dates) are automatically turned into links by the system -->
    <preference name="exit-on-suspend"            value="false" />          <!-- ios: if set to true, app will terminate when home button is pressed -->
    <preference name="deployment-target"          value="5.0" />            <!-- ios:-->
    <preference name="stay-in-webview"            value="true" />           <!-- ios: external links should open in the default browser, 'true' would use the webview the app lives in -->
    <preference name="DisallowOverscroll"         value="true" />           <!-- Don't allow overscroll effects (bounce-back on iOS, glow on Android. Not useful since app doesn't scroll. -->
    <preference name="webviewbounce"              value="false" />
    <!--preference name="OpenAllWhitelistURLsInWebView" value="true" /-->

    <preference name="android-minSdkVersion"      value="10" />             <!-- android:-->
    <!--preference name="android-maxSdkVersion" value="15" /-->
    <!--preference name="android-targetSdkVersion" value="12" /-->
    <preference name="android-installLocation"    value="auto" />           <!-- android: app install location. 'auto' will choose. 'internalOnly' is device memory. 'preferExternal' is SDCard. -->
    <!--preference name="android-windowSoftInputMode" value="stateVisible|adjustResize" /-->
    <!--preference name="android-build-tool" value="ant|gradle" /-->
    <!--preference name="SplashScreenDelay" value="10000"/-->

    <!--
        Define a specific version of PhoneGap to build into your app.
        <preference name="phonegap-version"       value="3.5.0" />
    -->
    <preference name="phonegap-version" value="cli-5.2.0" />

    <!-- Feature -->
    <!--
    <feature name="http://api.phonegap.com/1.0/camera" />
    <feature name="http://api.phonegap.com/1.0/notification" />
    <feature name="http://api.phonegap.com/1.0/geolocation" />
    <feature name="http://api.phonegap.com/1.0/media" />
    <feature name="http://api.phonegap.com/1.0/contacts" />
    <feature name="http://api.phonegap.com/1.0/file" />
    <feature name="http://api.phonegap.com/1.0/battery" />
    -->
    <feature name="http://api.phonegap.com/1.0/network" />
    <feature name="http://api.phonegap.com/1.0/device" />

    <!-- Plugins -->
    <!--
    <gap:plugin name="org.apache.cordova.battery-status" version="0.2.11" />
    <gap:plugin name="org.apache.cordova.camera" version="0.3.2" />
    <gap:plugin name="org.apache.cordova.console" version="0.2.11" />
    <gap:plugin name="org.apache.cordova.contacts" version="0.2.13" />
    <gap:plugin name="org.apache.cordova.device-motion" version="0.2.10" />
    <gap:plugin name="org.apache.cordova.device-orientation" version="0.3.9" />
    <gap:plugin name="org.apache.cordova.dialogs" version="0.2.10" />
    <gap:plugin name="org.apache.cordova.file" version="1.3.1" />
    <gap:plugin name="org.apache.cordova.file-transfer" version="0.4.6" />
    <gap:plugin name="org.apache.cordova.geolocation" version="0.3.10" />
    <gap:plugin name="org.apache.cordova.globalization" version="0.3.1" />
    <gap:plugin name="org.apache.cordova.inappbrowser" version="0.5.2" />
    <gap:plugin name="org.apache.cordova.media" version="0.2.13" />
    <gap:plugin name="org.apache.cordova.media-capture" version="0.3.3" />
    <gap:plugin name="org.apache.cordova.network-information" version="0.2.12" />
    <gap:plugin name="org.apache.cordova.vibration" version="0.3.11" />
    -->
    <gap:plugin name="org.apache.cordova.device" version="0.2.12" />
    <gap:plugin name="org.apache.cordova.splashscreen" version="0.3.4" />

    <!-- Third party plugins -->
    <!-- A list of available plugins are available at https://build.phonegap.com/plugins -->
    <!--
        <gap:plugin name="com.phonegap.plugins.barcodescanner" />
    -->

    <!-- Config File Elements -->
    <!-- As of Phonegap 3 you can now customize plist files via config.xml. -->

    <!-- status bar fix -->
    <gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance" overwrite="true"> <false/>
    </gap:config-file>

    <gap:config-file platform="ios" parent="UIStatusBarHidden" overwrite="true"> <true/>
    </gap:config-file>

    <!-- Define app icon for each platform. -->
    <icon src="icon.png" />

    <!-- iOS 7.0+ -->
    <!-- iPhone 6 / 6+ -->
    <icon src="res/icon/icon-180.png" gap:platform="ios" width="180" height="180" />

    <!-- iPhone / iPod Touch  -->
    <icon src="res/icon/icon-60.png" gap:platform="ios" width="60" height="60" />
    <icon src="res/icon/icon-120.png" gap:platform="ios" width="120" height="120" />

    <!-- iPad -->
    <icon src="res/icon/icon-76.png" gap:platform="ios" width="76" height="76" />
    <icon src="res/icon/icon-152.png" gap:platform="ios" width="152" height="152" />

    <!-- Settings Icon -->
    <icon src="res/icon/icon-small.png" gap:platform="ios" width="29" height="29" />
    <icon src="res/icon/icon-small@2x.png" gap:platform="ios" width="58" height="58" />

    <!-- Spotlight Icon -->
    <icon src="res/icon/icon-40.png" gap:platform="ios" width="40" height="40" />
    <icon src="res/icon/icon-80.png" gap:platform="ios" width="80" height="80" />

    <!-- Android -->
    <icon src="res/icon/icon-36.png" gap:platform="android" gap:qualifier="ldpi" />
    <icon src="res/icon/icon-48.png" gap:platform="android" gap:qualifier="mdpi" />
    <icon src="res/icon/icon-72.png" gap:platform="android" gap:qualifier="hdpi" />
    <icon src="res/icon/icon-144.png" gap:platform="android" gap:qualifier="xhdpi" />
    <icon src="res/icon/icon-192.png" gap:platform="android" gap:qualifier="xxhdpi" />

    <!-- Windows Phone -->
    <icon src="icon-48.png" gap:platform="winphone" />
    <icon src="icon-173.png" gap:platform="winphone" gap:role="background" />

    <!-- Define app splash screen for each platform. -->
    <gap:splash src="splash.png" />

    <!-- iOS -->
    <!-- iPhone and iPod touch -->
    <!--
    <gap:splash src="res/screen/Default.png" gap:platform="ios" width="320" height="480" />
    <gap:splash src="res/screen/Default@2x.png" gap:platform="ios" width="640" height="960" />
    -->

    <!-- iPhone 5 / iPod Touch (5th Generation) -->
    <!--
    <gap:splash src="res/screen/Default-568h@2x.png" gap:platform="ios" width="640" height="1136" />
    -->

    <!-- iPhone 6 -->
    <!--
    <gap:splash src="res/screen/Default-667h@2x.png" gap:platform="ios" width="750" height="1334" />
    <gap:splash src="res/screen/Default-Portrait-736h@3x.png" gap:platform="ios" width="1242" height="2208" />
    <gap:splash src="res/screen/Default-Landscape-736h@3x.png" gap:platform="ios" width="2208" height="1242" />
    -->

    <!-- iPad -->
    <!--
    <gap:splash src="res/screen/Default-Portrait.png" gap:platform="ios" width="768" height="1024" />
    <gap:splash src="res/screen/Default-Landscape.png" gap:platform="ios" width="1024" height="768" />
    -->

    <!-- Retina iPad -->
    <!--
    <gap:splash src="res/screen/Default-Portrait@2x.png" gap:platform="ios" width="1536" height="2048" />
    <gap:splash src="res/screen/Default-Landscape@2x.png" gap:platform="ios" width="2048" height="1536" />
    -->

    <!-- Android -->
    <!--
    <gap:splash src="res/screen/ldpi.png" gap:platform="android" gap:qualifier="ldpi" />
    <gap:splash src="res/screen/mdpi.png" gap:platform="android" gap:qualifier="mdpi" />
    <gap:splash src="res/screen/hdpi.png" gap:platform="android" gap:qualifier="hdpi" />
    <gap:splash src="res/screen/xhdpi.png" gap:platform="android" gap:qualifier="xhdpi" />
    <gap:splash src="res/screen/portrait-xxhdpi.png" gap:platform="android" gap:qualifier="port-xxhdpi" />
    <gap:splash src="res/screen/landscape-xxhdpi.png" gap:platform="android" gap:qualifier="land-xxhdpi" />
    -->
    <gap:splash src="splash.png" gap:platform="android" gap:qualifier="ldpi" />
    <gap:splash src="splash.png" gap:platform="android" gap:qualifier="mdpi" />
    <gap:splash src="splash.png" gap:platform="android" gap:qualifier="hdpi" />
    <gap:splash src="splash.png" gap:platform="android" gap:qualifier="xhdpi" />

    <!-- Windows Phone -->
    <!--
    <gap:splash src="res/screen/splash.jpg" gap:platform="winphone" />
    -->

    <gap:config-file platform="ios" parent="CFBundleShortVersionString">
        <string>100</string>
    </gap:config-file>

    <!--
        Define access to external domains.

        <access />            - a blank access tag denies access to all external resources.
        <access origin="*" /> - a wildcard access tag allows access to all external resource.

        Otherwise, you can specify specific domains:

        <access origin="http://phonegap.com" />                    - allow any secure requests to http://phonegap.com/
        <access origin="http://phonegap.com" subdomains="true" />  - same as above, but including subdomains, such as http://build.phonegap.com/
        <access origin="http://phonegap.com" browserOnly="true" /> - only allows http://phonegap.com to be opened by the child browser.
    -->

    <access origin="*"/>
    <!--access origin="*" browserOnly="false" /-->

    <!-- Whitelist configuration. Refer to https://github.com/apache/cordova-plugin-whitelist -->
    <!--plugin name="cordova-plugin-whitelist" version="1" /-->

    <!-- if you are using the online phonegap build service the syntax is different.  -->
    <gap:plugin name="cordova-plugin-whitelist" source="npm" />

    <!-- Intent Whitelist -->
    <!-- Controls which URLs the app is allowed to ask the system to open. By default, no external URLs are allowed. -->
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <platform name="android">
        <allow-intent href="market:*" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
    </platform>
    <allow-navigation href="*" />

</widget>