Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.84 KB | None | 0 0
  1. <widget xmlns="http://www.w3.org/ns/widgets"
  2. xmlns:gap="http://phonegap.com/ns/1.0"
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. id="uk.ac.aber.dcs.cwl.conference"
  5. version="1.0.0">
  6. <!--
  7. The name and description are used in the PhoneGap Build website
  8. -->
  9. <name>Conference app</name>
  10. <description>Browse conference sessions and discover venues</description>
  11. <!--
  12. Identifies the author and their contact details. The email is displayed on the
  13. PhoneGap Build website
  14. -->
  15. <author href="http://users.aber.ac.uk/cwl"
  16. email="cwl@aber.ac.uk">
  17. Chris Loftus
  18. </author>
  19.  
  20. <content src="index.html"/>
  21.  
  22. <!--gap:config-file platform="android">
  23. <application android:debuggable="true"/>
  24. </gap:config-file-->
  25.  
  26. <!--platform name="android" >
  27. <preference name="debuggable" value="true" />
  28. </platform-->
  29.  
  30. <!--
  31. A set of preferences generated by the PhoneGap desktop
  32. build tool. I've not changed any of the defaults.
  33. See http://docs.build.phonegap.com/en_US/configuring_preferences.md.html#Preferences
  34. -->
  35. <!-- No Android permissions allowed. Default is all permissions! -->
  36. <preference name="permissions" value="none"/>
  37. <!-- Other values are portrait and landscape -->
  38. <preference name="orientation" value="default"/>
  39. <!-- Other values are handset or tablet -->
  40. <preference name="target-device" value="universal"/>
  41. <!-- Hid the status bar at the top of the screen -->
  42. <preference name="fullscreen" value="true"/>
  43. <!-- Rubber band bouncing effect -->
  44. <preference name="webviewbounce" value="true"/>
  45. <!-- iOS only: to not apply iOS gloss to the app's icon -->
  46. <preference name="prerendered-icon" value="true"/>
  47. <preference name="stay-in-webview" value="false"/>
  48. <preference name="ios-statusbarstyle" value="black-opaque"/>
  49. <!-- iOS only: Data types such as phone numbers are automatically turned into links -->
  50. <preference name="detect-data-types" value="true"/>
  51. <!-- iOS only: App will not terminate when suspended -->
  52. <preference name="exit-on-suspend" value="false"/>
  53. <preference name="show-splash-screen-spinner" value="true"/>
  54. <preference name="auto-hide-splash-screen" value="true"/>
  55. <preference name="disable-cursor" value="false"/>
  56. <!-- Minimum Android SDK version supported -->
  57. <preference name="android-minSdkVersion" value="14"/>
  58. <!-- Where an Android app can be installed. Other values
  59. internalOnly and preferExternal, i.e. SD card -->
  60. <preference name="android-installLocation" value="auto"/>
  61.  
  62. <!--
  63. The Cordova plugin libraries. These are the defaults
  64. generated by the PhoneGap desktop build tool. We are
  65. only using the geolocation plugin, but I've left
  66. them all uncommented.
  67. -->
  68.  
  69. <gap:plugin name="org.apache.cordova.battery-status" source="npm"/>
  70. <gap:plugin name="org.apache.cordova.camera" source="npm"/>
  71. <gap:plugin name="org.apache.cordova.media-capture" source="npm"/>
  72. <gap:plugin name="org.apache.cordova.console" source="npm"/>
  73. <gap:plugin name="org.apache.cordova.contacts" source="npm"/>
  74. <gap:plugin name="org.apache.cordova.device" source="npm"/>
  75. <gap:plugin name="org.apache.cordova.device-motion" source="npm"/>
  76. <gap:plugin name="org.apache.cordova.device-orientation" source="npm"/>
  77. <gap:plugin name="org.apache.cordova.dialogs" source="npm"/>
  78. <gap:plugin name="org.apache.cordova.file" source="npm"/>
  79. <gap:plugin name="org.apache.cordova.file-transfer" source="npm"/>
  80. <gap:plugin name="org.apache.cordova.geolocation" source="npm"/>
  81. <gap:plugin name="org.apache.cordova.globalization" source="npm"/>
  82. <gap:plugin name="org.apache.cordova.inappbrowser" source="npm"/>
  83. <gap:plugin name="org.apache.cordova.media" source="npm"/>
  84. <gap:plugin name="org.apache.cordova.network-information" source="npm"/>
  85. <gap:plugin name="org.apache.cordova.splashscreen" source="npm"/>
  86. <gap:plugin name="org.apache.cordova.vibration" source="npm"/>
  87.  
  88. <icon src="icon.png"/>
  89. <!--
  90. We can specify the icons to use for different platforms. In this case we
  91. have only included the Android icons (for the launcher screen) and at
  92. four levels of resolution so that the correct version will be used depending
  93. on the device screen. Note that PhoneGap will also look for a default icon
  94. in the project's top level folder called icon.png.
  95. -->
  96. <icon src="www/icons/android/ldpi.png" gap:platform="android" gap:qualifier="ldpi" />
  97. <icon src="www/icons/android/mdpi.png" gap:platform="android" gap:qualifier="mdpi" />
  98. <icon src="www/icons/android/hdpi.png" gap:platform="android" gap:qualifier="hdpi" />
  99. <icon src="www/icons/android/xhdpi.png" gap:platform="android" gap:qualifier="xhdpi" />
  100.  
  101. <!--
  102. How you do splashscreens. I've not done this for this app, so commented out
  103. -->
  104. <!--
  105. <gap:splash src="www/res/screen/android/screen-ldpi-portrait.png" gap:platform="android" gap:qualifier="port-ldpi"/>
  106. -->
  107.  
  108. <!--
  109. See the W3C Widget Access specification. Allows network access to specific
  110. domains (XHR, images etc). Here we allow access to everything. You may wish to restrict this,
  111. e.g. just to http://maps.google.com for the map.
  112. This whitelist is for webviews that don't support Content Security Policy.
  113. See https://github.com/apache/cordova-plugin-whitelist for details
  114. -->
  115. <access origin="*"/>
  116.  
  117. <!--
  118. The plugin that implements Cordova 4.0+ webview component whitlisting policy
  119. -->
  120. <plugin name="cordova-plugin-whitelist" version="1"/>
  121.  
  122. <!--
  123. Intent whitelisting: Controls which URLs the app is allowed to ask the system
  124. to open. On Android, this equates to sending an intent of type BROWSEABLE.
  125.  
  126. This whitelist does not apply to plugins, only hyperlinks and calls to window.open().
  127.  
  128. The following is more permissive than it should be for this app!
  129. -->
  130. <!-- Allow links to web pages to open in a browser -->
  131. <allow-intent href="http://*/*"/>
  132. <allow-intent href="https://*/*"/>
  133.  
  134. <!-- Allow tel: links to open the dialer -->
  135. <allow-intent href="tel:*"/>
  136.  
  137. <!-- Allow SMS links to open messaging app -->
  138. <allow-intent href="sms:*"/>
  139.  
  140. <!-- Allow geo: links to open the mail app -->
  141. <allow-intent href="mailto:*"/>
  142.  
  143. <!-- Allow geo: links to open maps via the map app -->
  144. <allow-intent href="geo:*"/>
  145.  
  146. <!-- Allow opening of Android Play Store to show a specific app -->
  147. <platform name="android">
  148. <allow-intent href="market:*"/>
  149. </platform>
  150.  
  151. <!-- Allow opening of App Store to show a specific app,
  152. e.g. ads that redirect users to install an app -->
  153. <platform name="ios">
  154. <allow-intent href="itms:*"/>
  155. <allow-intent href="itms-apps:*"/>
  156. </platform>
  157.  
  158.  
  159. </widget>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement