plugin.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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-media-capture"
  22. version="1.3.0">
  23. <name>Capture</name>
  24. <description>Cordova Media Capture Plugin</description>
  25. <license>Apache 2.0</license>
  26. <keywords>cordova,media,capture</keywords>
  27. <repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture.git</repo>
  28. <issue>https://issues.apache.org/jira/browse/CB/component/12320646</issue>
  29. <dependency id="cordova-plugin-file" version="^4.0.0" />
  30. <dependency id="cordova-plugin-compat" version="^1.0.0" />
  31. <js-module src="www/CaptureAudioOptions.js" name="CaptureAudioOptions">
  32. <clobbers target="CaptureAudioOptions" />
  33. </js-module>
  34. <js-module src="www/CaptureImageOptions.js" name="CaptureImageOptions">
  35. <clobbers target="CaptureImageOptions" />
  36. </js-module>
  37. <js-module src="www/CaptureVideoOptions.js" name="CaptureVideoOptions">
  38. <clobbers target="CaptureVideoOptions" />
  39. </js-module>
  40. <js-module src="www/CaptureError.js" name="CaptureError">
  41. <clobbers target="CaptureError" />
  42. </js-module>
  43. <js-module src="www/MediaFileData.js" name="MediaFileData">
  44. <clobbers target="MediaFileData" />
  45. </js-module>
  46. <js-module src="www/MediaFile.js" name="MediaFile">
  47. <clobbers target="MediaFile" />
  48. </js-module>
  49. <js-module src="www/capture.js" name="capture">
  50. <clobbers target="navigator.device.capture" />
  51. </js-module>
  52. <!-- android -->
  53. <platform name="android">
  54. <config-file target="res/xml/config.xml" parent="/*">
  55. <feature name="Capture" >
  56. <param name="android-package" value="org.apache.cordova.mediacapture.Capture"/>
  57. </feature>
  58. </config-file>
  59. <config-file target="AndroidManifest.xml" parent="/*">
  60. <uses-permission android:name="android.permission.RECORD_AUDIO" />
  61. <uses-permission android:name="android.permission.RECORD_VIDEO"/>
  62. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  63. </config-file>
  64. <source-file src="src/android/Capture.java" target-dir="src/org/apache/cordova/mediacapture" />
  65. <source-file src="src/android/FileHelper.java" target-dir="src/org/apache/cordova/mediacapture" />
  66. <source-file src="src/android/PendingRequests.java" target-dir="src/org/apache/cordova/mediacapture" />
  67. </platform>
  68. <!-- amazon-fireos -->
  69. <platform name="amazon-fireos">
  70. <config-file target="res/xml/config.xml" parent="/*">
  71. <feature name="Capture" >
  72. <param name="android-package" value="org.apache.cordova.mediacapture.Capture"/>
  73. </feature>
  74. </config-file>
  75. <config-file target="AndroidManifest.xml" parent="/*">
  76. <uses-permission android:name="android.permission.RECORD_AUDIO" />
  77. <uses-permission android:name="android.permission.RECORD_VIDEO"/>
  78. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  79. </config-file>
  80. <source-file src="src/android/Capture.java" target-dir="src/org/apache/cordova/mediacapture" />
  81. <source-file src="src/android/FileHelper.java" target-dir="src/org/apache/cordova/mediacapture" />
  82. </platform>
  83. <!-- ubuntu -->
  84. <platform name="ubuntu">
  85. <header-file src="src/ubuntu/capture.h" />
  86. <source-file src="src/ubuntu/capture.cpp" />
  87. <resource-file src="src/ubuntu/back.png" />
  88. <resource-file src="src/ubuntu/MediaCaptureWidget.qml" />
  89. <resource-file src="src/ubuntu/shoot.png" />
  90. <resource-file src="src/ubuntu/microphone.png" />
  91. <resource-file src="src/ubuntu/record_on.png" />
  92. <resource-file src="src/ubuntu/record_off.png" />
  93. <resource-file src="src/ubuntu/toolbar-left.png" />
  94. <resource-file src="src/ubuntu/toolbar-middle.png" />
  95. <resource-file src="src/ubuntu/toolbar-right.png" />
  96. <config-file target="config.xml" parent="/*">
  97. <feature name="Capture">
  98. <param policy_group="audio" policy_version="1" />
  99. <param policy_group="camera" policy_version="1" />
  100. <param policy_group="microphone" policy_version="1" />
  101. </feature>
  102. </config-file>
  103. </platform>
  104. <!-- ios -->
  105. <platform name="ios">
  106. <config-file target="config.xml" parent="/*">
  107. <feature name="Capture">
  108. <param name="ios-package" value="CDVCapture" />
  109. </feature>
  110. </config-file>
  111. <header-file src="src/ios/CDVCapture.h" />
  112. <source-file src="src/ios/CDVCapture.m" />
  113. <resource-file src="src/ios/CDVCapture.bundle" />
  114. <framework src="CoreGraphics.framework" />
  115. <framework src="MobileCoreServices.framework" />
  116. </platform>
  117. <!-- blackberry10 -->
  118. <platform name="blackberry10">
  119. <source-file src="src/blackberry10/index.js" target-dir="Capture" />
  120. <config-file target="www/config.xml" parent="/widget">
  121. <feature name="media-capture" value="Capture"/>
  122. </config-file>
  123. <config-file target="www/config.xml" parent="/widget/rim:permissions">
  124. <rim:permit>access_shared</rim:permit>
  125. </config-file>
  126. </platform>
  127. <!-- wp7 -->
  128. <platform name="wp7">
  129. <config-file target="config.xml" parent="/*">
  130. <feature name="Capture">
  131. <param name="wp-package" value="Capture"/>
  132. </feature>
  133. </config-file>
  134. <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
  135. <Capability Name="ID_CAP_MEDIALIB"/>
  136. <Capability Name="ID_CAP_MICROPHONE"/>
  137. <Capability Name="ID_CAP_ISV_CAMERA" />
  138. </config-file>
  139. <source-file src="src/wp/Capture.cs" />
  140. <source-file src="src/wp/UI/AudioCaptureTask.cs" />
  141. <source-file src="src/wp/UI/AudioRecorder.xaml" />
  142. <source-file src="src/wp/UI/AudioRecorder.xaml.cs" />
  143. <source-file src="src/wp/UI/VideoCaptureTask.cs" />
  144. <source-file src="src/wp/UI/VideoRecorder.xaml" />
  145. <source-file src="src/wp/UI/VideoRecorder.xaml.cs" />
  146. </platform>
  147. <!-- wp8 -->
  148. <platform name="wp8">
  149. <config-file target="config.xml" parent="/*">
  150. <feature name="Capture">
  151. <param name="wp-package" value="Capture"/>
  152. </feature>
  153. </config-file>
  154. <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
  155. <Capability Name="ID_CAP_MEDIALIB_AUDIO"/>
  156. <Capability Name="ID_CAP_MEDIALIB_PHOTO"/>
  157. <Capability Name="ID_CAP_MEDIALIB_PLAYBACK"/>
  158. <Capability Name="ID_CAP_MICROPHONE"/>
  159. <Capability Name="ID_CAP_ISV_CAMERA" />
  160. </config-file>
  161. <source-file src="src/wp/Capture.cs" />
  162. <source-file src="src/wp/UI/AudioCaptureTask.cs" />
  163. <source-file src="src/wp/UI/AudioRecorder.xaml" />
  164. <source-file src="src/wp/UI/AudioRecorder.xaml.cs" />
  165. <source-file src="src/wp/UI/VideoCaptureTask.cs" />
  166. <source-file src="src/wp/UI/VideoRecorder.xaml" />
  167. <source-file src="src/wp/UI/VideoRecorder.xaml.cs" />
  168. </platform>
  169. <!-- windows8 -->
  170. <platform name="windows8">
  171. <config-file target="package.appxmanifest" parent="/Package/Capabilities">
  172. <DeviceCapability Name="microphone" />
  173. <DeviceCapability Name="webcam" />
  174. </config-file>
  175. <js-module src="src/windows/MediaFile.js" name="MediaFile2">
  176. <merges target="MediaFile" />
  177. </js-module>
  178. <js-module src="src/windows/CaptureProxy.js" name="CaptureProxy">
  179. <merges target="" />
  180. </js-module>
  181. </platform>
  182. <!-- windows -->
  183. <platform name="windows">
  184. <config-file target="package.appxmanifest" parent="/Package/Capabilities">
  185. <DeviceCapability Name="microphone" />
  186. <DeviceCapability Name="webcam" />
  187. </config-file>
  188. <js-module src="src/windows/MediaFile.js" name="MediaFile2">
  189. <merges target="MediaFile" />
  190. </js-module>
  191. <js-module src="src/windows/CaptureProxy.js" name="CaptureProxy">
  192. <merges target="" />
  193. </js-module>
  194. </platform>
  195. <!-- browser -->
  196. <platform name="browser">
  197. <!-- this overrides navigator.device.capture namespace with browser-specific implementation -->
  198. <js-module src="src/browser/CaptureProxy.js" name="CaptureProxy">
  199. <runs />
  200. </js-module>
  201. </platform>
  202. </plugin>