You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

270 lines
9.2 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one
  4. or more contributor license agreements. See the NOTICE file
  5. distributed with this work for additional information
  6. regarding copyright ownership. The ASF licenses this file
  7. to you under the Apache License, Version 2.0 (the
  8. "License"); you may not use this file except in compliance
  9. with the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing,
  12. software distributed under the License is distributed on an
  13. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. KIND, either express or implied. See the License for the
  15. specific language governing permissions and limitations
  16. under the License.
  17. -->
  18. <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
  19. xmlns:rim="http://www.blackberry.com/ns/widgets"
  20. xmlns:android="http://schemas.android.com/apk/res/android"
  21. id="cordova-plugin-geolocation"
  22. version="2.4.3">
  23. <name>Geolocation</name>
  24. <description>Cordova Geolocation Plugin</description>
  25. <license>Apache 2.0</license>
  26. <keywords>cordova,geolocation</keywords>
  27. <repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git</repo>
  28. <issue>https://issues.apache.org/jira/browse/CB/component/12320638</issue>
  29. <dependency id="cordova-plugin-compat" version="^1.0.0" />
  30. <!-- android -->
  31. <platform name="android">
  32. <config-file target="AndroidManifest.xml" parent="/*">
  33. <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
  34. <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
  35. <uses-feature android:name="android.hardware.location.gps" />
  36. </config-file>
  37. <config-file target="res/xml/config.xml" parent="/*">
  38. <feature name="Geolocation">
  39. <param name="android-package" value="org.apache.cordova.geolocation.Geolocation" />
  40. </feature>
  41. </config-file>
  42. <source-file src="src/android/Geolocation.java" target-dir="src/org/apache/cordova/geolocation/" />
  43. <js-module src="www/android/geolocation.js" name="geolocation">
  44. <clobbers target="navigator.geolocation" />
  45. </js-module>
  46. <!-- We don't expose PositionError via clobber on Android as we use it internally only -->
  47. <js-module src="www/PositionError.js" name="PositionError">
  48. <runs />
  49. </js-module>
  50. </platform>
  51. <!-- amazon-fireos -->
  52. <platform name="amazon-fireos">
  53. <config-file target="AndroidManifest.xml" parent="/*">
  54. <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
  55. <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
  56. </config-file>
  57. </platform>
  58. <!-- ios -->
  59. <platform name="ios">
  60. <js-module src="www/Coordinates.js" name="Coordinates">
  61. <clobbers target="Coordinates" />
  62. </js-module>
  63. <js-module src="www/PositionError.js" name="PositionError">
  64. <clobbers target="PositionError" />
  65. </js-module>
  66. <js-module src="www/Position.js" name="Position">
  67. <clobbers target="Position" />
  68. </js-module>
  69. <js-module src="www/geolocation.js" name="geolocation">
  70. <clobbers target="navigator.geolocation" />
  71. </js-module>
  72. <config-file target="config.xml" parent="/*">
  73. <feature name="Geolocation">
  74. <param name="ios-package" value="CDVLocation"/>
  75. </feature>
  76. </config-file>
  77. <header-file src="src/ios/CDVLocation.h" />
  78. <source-file src="src/ios/CDVLocation.m" />
  79. <framework src="CoreLocation.framework" />
  80. <preference name="GEOLOCATION_USAGE_DESCRIPTION" default=" " />
  81. <config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
  82. <string>$GEOLOCATION_USAGE_DESCRIPTION</string>
  83. </config-file>
  84. </platform>
  85. <!-- blackberry10 -->
  86. <platform name="blackberry10">
  87. <js-module src="www/blackberry10/GeolocationProxy.js" name="GeolocationProxy">
  88. <runs />
  89. </js-module>
  90. <js-module src="www/Coordinates.js" name="Coordinates">
  91. <clobbers target="Coordinates" />
  92. </js-module>
  93. <js-module src="www/PositionError.js" name="PositionError">
  94. <clobbers target="PositionError" />
  95. </js-module>
  96. <js-module src="www/Position.js" name="Position">
  97. <clobbers target="Position" />
  98. </js-module>
  99. <js-module src="www/geolocation.js" name="geolocation">
  100. <clobbers target="navigator.geolocation" />
  101. </js-module>
  102. <config-file target="www/config.xml" parent="/widget">
  103. <feature name="Geolocation" value="Geolocation"/>
  104. </config-file>
  105. <config-file target="www/config.xml" parent="/widget/rim:permissions">
  106. <rim:permit>read_geolocation</rim:permit>
  107. </config-file>
  108. </platform>
  109. <!-- ubuntu -->
  110. <platform name="ubuntu">
  111. <js-module src="www/Coordinates.js" name="Coordinates">
  112. <clobbers target="Coordinates" />
  113. </js-module>
  114. <js-module src="www/PositionError.js" name="PositionError">
  115. <clobbers target="PositionError" />
  116. </js-module>
  117. <js-module src="www/Position.js" name="Position">
  118. <clobbers target="Position" />
  119. </js-module>
  120. <js-module src="www/geolocation.js" name="geolocation">
  121. <clobbers target="navigator.geolocation" />
  122. </js-module>
  123. <source-file src="src/ubuntu/geolocation.cpp" />
  124. <header-file src="src/ubuntu/geolocation.h" />
  125. <config-file target="config.xml" parent="/*">
  126. <feature name="Geolocation">
  127. <param policy_group="location" policy_version="1" />
  128. </feature>
  129. </config-file>
  130. </platform>
  131. <!-- wp7 -->
  132. <platform name="wp7">
  133. <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
  134. <Capability Name="ID_CAP_LOCATION" />
  135. </config-file>
  136. <source-file src="src/wp/Geolocation.cs" />
  137. </platform>
  138. <!-- wp8 -->
  139. <platform name="wp8">
  140. <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
  141. <Capability Name="ID_CAP_LOCATION" />
  142. </config-file>
  143. <source-file src="src/wp/Geolocation.cs" />
  144. </platform>
  145. <!-- windows8 -->
  146. <platform name="windows8">
  147. <config-file target="package.appxmanifest" parent="/Package/Capabilities">
  148. <DeviceCapability Name="location" />
  149. </config-file>
  150. <js-module src="src/windows/GeolocationProxy.js" name="GeolocationProxy">
  151. <runs />
  152. </js-module>
  153. <js-module src="www/Coordinates.js" name="Coordinates">
  154. <clobbers target="Coordinates" />
  155. </js-module>
  156. <js-module src="www/PositionError.js" name="PositionError">
  157. <clobbers target="PositionError" />
  158. </js-module>
  159. <js-module src="www/Position.js" name="Position">
  160. <clobbers target="Position" />
  161. </js-module>
  162. <js-module src="www/geolocation.js" name="geolocation">
  163. <clobbers target="navigator.geolocation" />
  164. </js-module>
  165. </platform>
  166. <!-- windows universal apps (Windows 8.1, Windows Phone 8.1, Windows 8.0) -->
  167. <platform name="windows">
  168. <config-file target="package.appxmanifest" parent="/Package/Capabilities">
  169. <DeviceCapability Name="location" />
  170. </config-file>
  171. <js-module src="src/windows/GeolocationProxy.js" name="GeolocationProxy">
  172. <runs />
  173. </js-module>
  174. <js-module src="www/Coordinates.js" name="Coordinates">
  175. <clobbers target="Coordinates" />
  176. </js-module>
  177. <js-module src="www/PositionError.js" name="PositionError">
  178. <clobbers target="PositionError" />
  179. </js-module>
  180. <js-module src="www/Position.js" name="Position">
  181. <clobbers target="Position" />
  182. </js-module>
  183. <js-module src="www/geolocation.js" name="geolocation">
  184. <clobbers target="navigator.geolocation" />
  185. </js-module>
  186. </platform>
  187. <!-- firefoxos -->
  188. <platform name="firefoxos">
  189. <config-file target="config.xml" parent="/*">
  190. <permission name="geolocation" description="Required for accessing user location." />
  191. </config-file>
  192. <js-module src="src/firefoxos/GeolocationProxy.js" name="GeolocationProxy">
  193. <runs />
  194. </js-module>
  195. <js-module src="www/Coordinates.js" name="Coordinates">
  196. <clobbers target="Coordinates" />
  197. </js-module>
  198. <js-module src="www/PositionError.js" name="PositionError">
  199. <clobbers target="PositionError" />
  200. </js-module>
  201. <js-module src="www/Position.js" name="Position">
  202. <clobbers target="Position" />
  203. </js-module>
  204. <js-module src="www/geolocation.js" name="geolocation">
  205. <clobbers target="navigator.geolocation" />
  206. </js-module>
  207. </platform>
  208. </plugin>