plugin.xml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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="2.0.2">
  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. <!-- android -->
  33. <platform name="android">
  34. <config-file target="res/xml/config.xml" parent="/*">
  35. <feature name="Device" >
  36. <param name="android-package" value="org.apache.cordova.device.Device"/>
  37. </feature>
  38. </config-file>
  39. <source-file src="src/android/Device.java" target-dir="src/org/apache/cordova/device" />
  40. </platform>
  41. <!-- ios -->
  42. <platform name="ios">
  43. <config-file target="config.xml" parent="/*">
  44. <feature name="Device">
  45. <param name="ios-package" value="CDVDevice"/>
  46. </feature>
  47. </config-file>
  48. <header-file src="src/ios/CDVDevice.h" />
  49. <source-file src="src/ios/CDVDevice.m" />
  50. </platform>
  51. <!-- windows -->
  52. <platform name="windows">
  53. <js-module src="src/windows/DeviceProxy.js" name="DeviceProxy">
  54. <runs />
  55. </js-module>
  56. </platform>
  57. <!-- browser -->
  58. <platform name="browser">
  59. <config-file target="config.xml" parent="/*">
  60. <feature name="Device">
  61. <param name="browser-package" value="Device" />
  62. </feature>
  63. </config-file>
  64. <js-module src="src/browser/DeviceProxy.js" name="DeviceProxy">
  65. <runs />
  66. </js-module>
  67. </platform>
  68. <!-- osx -->
  69. <platform name="osx">
  70. <config-file target="config.xml" parent="/*">
  71. <feature name="Device">
  72. <param name="ios-package" value="CDVDevice"/>
  73. </feature>
  74. </config-file>
  75. <header-file src="src/osx/CDVDevice.h" />
  76. <source-file src="src/osx/CDVDevice.m" />
  77. </platform>
  78. </plugin>