plugin.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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:android="http://schemas.android.com/apk/res/android"
  20. xmlns:rim="http://www.blackberry.com/ns/widgets"
  21. id="cordova-plugin-camera"
  22. version="2.3.0">
  23. <name>Camera</name>
  24. <description>Cordova Camera Plugin</description>
  25. <license>Apache 2.0</license>
  26. <keywords>cordova,camera</keywords>
  27. <repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git</repo>
  28. <issue>https://issues.apache.org/jira/browse/CB/component/12320645</issue>
  29. <dependency id="cordova-plugin-compat" version="^1.0.0" />
  30. <js-module src="www/CameraConstants.js" name="Camera">
  31. <clobbers target="Camera" />
  32. </js-module>
  33. <js-module src="www/CameraPopoverOptions.js" name="CameraPopoverOptions">
  34. <clobbers target="CameraPopoverOptions" />
  35. </js-module>
  36. <js-module src="www/Camera.js" name="camera">
  37. <clobbers target="navigator.camera" />
  38. </js-module>
  39. <!-- firefoxos -->
  40. <platform name="firefoxos">
  41. <config-file target="config.xml" parent="/*">
  42. <feature name="Camera">
  43. <param name="firefoxos-package" value="Camera" />
  44. </feature>
  45. </config-file>
  46. <js-module src="src/firefoxos/CameraProxy.js" name="CameraProxy">
  47. <runs />
  48. </js-module>
  49. </platform>
  50. <!-- android -->
  51. <platform name="android">
  52. <config-file target="res/xml/config.xml" parent="/*">
  53. <feature name="Camera">
  54. <param name="android-package" value="org.apache.cordova.camera.CameraLauncher"/>
  55. </feature>
  56. </config-file>
  57. <config-file target="AndroidManifest.xml" parent="/*">
  58. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  59. </config-file>
  60. <source-file src="src/android/CameraLauncher.java" target-dir="src/org/apache/cordova/camera" />
  61. <source-file src="src/android/FileHelper.java" target-dir="src/org/apache/cordova/camera" />
  62. <source-file src="src/android/ExifHelper.java" target-dir="src/org/apache/cordova/camera" />
  63. <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
  64. <clobbers target="CameraPopoverHandle" />
  65. </js-module>
  66. </platform>
  67. <!-- amazon-fireos -->
  68. <platform name="amazon-fireos">
  69. <config-file target="res/xml/config.xml" parent="/*">
  70. <feature name="Camera">
  71. <param name="android-package" value="org.apache.cordova.camera.CameraLauncher"/>
  72. </feature>
  73. </config-file>
  74. <config-file target="AndroidManifest.xml" parent="/*">
  75. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  76. </config-file>
  77. <source-file src="src/android/CameraLauncher.java" target-dir="src/org/apache/cordova/camera" />
  78. <source-file src="src/android/FileHelper.java" target-dir="src/org/apache/cordova/camera" />
  79. <source-file src="src/android/ExifHelper.java" target-dir="src/org/apache/cordova/camera" />
  80. <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
  81. <clobbers target="CameraPopoverHandle" />
  82. </js-module>
  83. </platform>
  84. <!-- ubuntu -->
  85. <platform name="ubuntu">
  86. <config-file target="config.xml" parent="/*">
  87. <feature name="Camera">
  88. <param policy_group="camera" policy_version="1" />
  89. </feature>
  90. </config-file>
  91. <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
  92. <clobbers target="CameraPopoverHandle" />
  93. </js-module>
  94. <header-file src="src/ubuntu/camera.h" />
  95. <source-file src="src/ubuntu/camera.cpp" />
  96. <resource-file src="src/ubuntu/back.png" />
  97. <resource-file src="src/ubuntu/CaptureWidget.qml" />
  98. <resource-file src="src/ubuntu/shoot.png" />
  99. <resource-file src="src/ubuntu/toolbar-left.png" />
  100. <resource-file src="src/ubuntu/toolbar-middle.png" />
  101. <resource-file src="src/ubuntu/toolbar-right.png" />
  102. </platform>
  103. <!-- ios -->
  104. <platform name="ios">
  105. <config-file target="config.xml" parent="/*">
  106. <feature name="Camera">
  107. <param name="ios-package" value="CDVCamera" />
  108. </feature>
  109. <preference name="CameraUsesGeolocation" value="false" />
  110. </config-file>
  111. <js-module src="www/ios/CameraPopoverHandle.js" name="CameraPopoverHandle">
  112. <clobbers target="CameraPopoverHandle" />
  113. </js-module>
  114. <header-file src="src/ios/UIImage+CropScaleOrientation.h" />
  115. <source-file src="src/ios/UIImage+CropScaleOrientation.m" />
  116. <header-file src="src/ios/CDVCamera.h" />
  117. <source-file src="src/ios/CDVCamera.m" />
  118. <header-file src="src/ios/CDVJpegHeaderWriter.h" />
  119. <source-file src="src/ios/CDVJpegHeaderWriter.m" />
  120. <header-file src="src/ios/CDVExif.h" />
  121. <framework src="ImageIO.framework" weak="true" />
  122. <framework src="CoreLocation.framework" />
  123. <framework src="CoreGraphics.framework" />
  124. <framework src="AssetsLibrary.framework" />
  125. <framework src="MobileCoreServices.framework" />
  126. <framework src="CoreGraphics.framework" />
  127. <framework src="AVFoundation.framework" />
  128. <preference name="CAMERA_USAGE_DESCRIPTION" default=" " />
  129. <config-file target="*-Info.plist" parent="NSCameraUsageDescription">
  130. <string>$CAMERA_USAGE_DESCRIPTION</string>
  131. </config-file>
  132. <preference name="PHOTOLIBRARY_USAGE_DESCRIPTION" default=" " />
  133. <config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
  134. <string>$PHOTOLIBRARY_USAGE_DESCRIPTION</string>
  135. </config-file>
  136. <config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
  137. <string></string>
  138. </config-file>
  139. </platform>
  140. <!-- blackberry10 -->
  141. <platform name="blackberry10">
  142. <source-file src="src/blackberry10/index.js" target-dir="Camera" />
  143. <config-file target="www/config.xml" parent="/widget">
  144. <feature name="Camera" value="Camera"/>
  145. </config-file>
  146. <config-file target="www/config.xml" parent="/widget/rim:permissions">
  147. <rim:permit>access_shared</rim:permit>
  148. <rim:permit>use_camera</rim:permit>
  149. </config-file>
  150. <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
  151. <clobbers target="CameraPopoverHandle" />
  152. </js-module>
  153. <asset src="www/blackberry10/assets" target="chrome" />
  154. </platform>
  155. <!-- wp7 -->
  156. <platform name="wp7">
  157. <config-file target="config.xml" parent="/*">
  158. <feature name="Camera">
  159. <param name="wp-package" value="Camera"/>
  160. </feature>
  161. </config-file>
  162. <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
  163. <Capability Name="ID_CAP_ISV_CAMERA" />
  164. <Capability Name="ID_CAP_MEDIALIB" />
  165. </config-file>
  166. <source-file src="src/wp/Camera.cs" />
  167. <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
  168. <clobbers target="CameraPopoverHandle" />
  169. </js-module>
  170. </platform>
  171. <!-- wp8 -->
  172. <platform name="wp8">
  173. <config-file target="config.xml" parent="/*">
  174. <feature name="Camera">
  175. <param name="wp-package" value="Camera"/>
  176. </feature>
  177. </config-file>
  178. <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
  179. <Capability Name="ID_CAP_ISV_CAMERA" />
  180. <Capability Name="ID_CAP_MEDIALIB_PHOTO"/>
  181. </config-file>
  182. <source-file src="src/wp/Camera.cs" />
  183. <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
  184. <clobbers target="CameraPopoverHandle" />
  185. </js-module>
  186. </platform>
  187. <!-- windows8 -->
  188. <platform name="windows8">
  189. <config-file target="package.appxmanifest" parent="/Package/Capabilities">
  190. <Capability Name="picturesLibrary" />
  191. <DeviceCapability Name="webcam" />
  192. </config-file>
  193. <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
  194. <clobbers target="CameraPopoverHandle" />
  195. </js-module>
  196. <js-module src="src/windows/CameraProxy.js" name="CameraProxy">
  197. <merges target="" />
  198. </js-module>
  199. </platform>
  200. <!-- browser -->
  201. <platform name="browser">
  202. <config-file target="config.xml" parent="/*">
  203. <feature name="Camera">
  204. <param name="browser-package" value="Camera" />
  205. </feature>
  206. </config-file>
  207. <js-module src="src/browser/CameraProxy.js" name="CameraProxy">
  208. <runs />
  209. </js-module>
  210. </platform>
  211. <!-- windows -->
  212. <platform name="windows">
  213. <config-file target="package.appxmanifest" parent="/Package/Capabilities">
  214. <DeviceCapability Name="webcam" />
  215. </config-file>
  216. <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
  217. <clobbers target="CameraPopoverHandle" />
  218. </js-module>
  219. <js-module src="src/windows/CameraProxy.js" name="CameraProxy">
  220. <merges target="" />
  221. </js-module>
  222. </platform>
  223. </plugin>