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.

174 lines
5.8 KiB

7 years ago
  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-device"
  22. version="1.1.4">
  23. <name>Device</name>
  24. <description>Cordova Device Plugin</description>
  25. <license>Apache 2.0</license>
  26. <keywords>cordova,device</keywords>
  27. <repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git</repo>
  28. <issue>https://issues.apache.org/jira/browse/CB/component/12320648</issue>
  29. <js-module src="www/device.js" name="device">
  30. <clobbers target="device" />
  31. </js-module>
  32. <!-- firefoxos -->
  33. <platform name="firefoxos">
  34. <config-file target="config.xml" parent="/*">
  35. <feature name="Device">
  36. <param name="firefoxos-package" value="Device" />
  37. </feature>
  38. </config-file>
  39. <js-module src="src/firefoxos/DeviceProxy.js" name="DeviceProxy">
  40. <runs />
  41. </js-module>
  42. </platform>
  43. <!-- tizen -->
  44. <platform name="tizen">
  45. <js-module src="src/tizen/DeviceProxy.js" name="DeviceProxy">
  46. <runs />
  47. </js-module>
  48. </platform>
  49. <!-- android -->
  50. <platform name="android">
  51. <config-file target="res/xml/config.xml" parent="/*">
  52. <feature name="Device" >
  53. <param name="android-package" value="org.apache.cordova.device.Device"/>
  54. </feature>
  55. </config-file>
  56. <source-file src="src/android/Device.java" target-dir="src/org/apache/cordova/device" />
  57. </platform>
  58. <!-- amazon-fireos -->
  59. <platform name="amazon-fireos">
  60. <config-file target="res/xml/config.xml" parent="/*">
  61. <feature name="Device" >
  62. <param name="android-package" value="org.apache.cordova.device.Device"/>
  63. </feature>
  64. </config-file>
  65. <source-file src="src/android/Device.java" target-dir="src/org/apache/cordova/device" />
  66. </platform>
  67. <!-- ubuntu -->
  68. <platform name="ubuntu">
  69. <header-file src="src/ubuntu/device.h" />
  70. <source-file src="src/ubuntu/device.cpp" />
  71. <js-module src="src/ubuntu/device.js" name="DeviceProxy">
  72. <merges target="device" />
  73. </js-module>
  74. </platform>
  75. <!-- ios -->
  76. <platform name="ios">
  77. <config-file target="config.xml" parent="/*">
  78. <feature name="Device">
  79. <param name="ios-package" value="CDVDevice"/>
  80. </feature>
  81. </config-file>
  82. <header-file src="src/ios/CDVDevice.h" />
  83. <source-file src="src/ios/CDVDevice.m" />
  84. </platform>
  85. <!-- blackberry10 -->
  86. <platform name="blackberry10">
  87. <source-file src="src/blackberry10/index.js" target-dir="Device" />
  88. <config-file target="www/config.xml" parent="/widget">
  89. <feature name="Device" value="Device"/>
  90. </config-file>
  91. <config-file target="www/config.xml" parent="/widget/rim:permissions">
  92. <rim:permit>read_device_identifying_information</rim:permit>
  93. </config-file>
  94. </platform>
  95. <!-- wp7 -->
  96. <platform name="wp7">
  97. <config-file target="config.xml" parent="/*">
  98. <feature name="Device">
  99. <param name="wp-package" value="Device"/>
  100. </feature>
  101. </config-file>
  102. <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
  103. <Capability Name="ID_CAP_IDENTITY_DEVICE" />
  104. </config-file>
  105. <source-file src="src/wp/Device.cs" />
  106. </platform>
  107. <!-- wp8 -->
  108. <platform name="wp8">
  109. <config-file target="config.xml" parent="/*">
  110. <feature name="Device">
  111. <param name="wp-package" value="Device"/>
  112. </feature>
  113. </config-file>
  114. <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
  115. <Capability Name="ID_CAP_IDENTITY_DEVICE" />
  116. </config-file>
  117. <source-file src="src/wp/Device.cs" />
  118. </platform>
  119. <!-- windows -->
  120. <platform name="windows">
  121. <js-module src="src/windows/DeviceProxy.js" name="DeviceProxy">
  122. <merges target="" />
  123. </js-module>
  124. </platform>
  125. <!-- browser -->
  126. <platform name="browser">
  127. <config-file target="config.xml" parent="/*">
  128. <feature name="Device">
  129. <param name="browser-package" value="Device" />
  130. </feature>
  131. </config-file>
  132. <js-module src="src/browser/DeviceProxy.js" name="DeviceProxy">
  133. <runs />
  134. </js-module>
  135. </platform>
  136. <!-- osx -->
  137. <platform name="osx">
  138. <config-file target="config.xml" parent="/*">
  139. <feature name="Device">
  140. <param name="ios-package" value="CDVDevice"/>
  141. </feature>
  142. </config-file>
  143. <header-file src="src/osx/CDVDevice.h" />
  144. <source-file src="src/osx/CDVDevice.m" />
  145. </platform>
  146. </plugin>