openEventsPlatformApp/plugins/cordova-plugin-camera/plugin.xml
plugins/cordova-plugin-camera/plugin.xmlRaw
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
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing,
14 software distributed under the License is distributed on an
15 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 KIND, either express or implied. See the License for the
17 specific language governing permissions and limitations
18 under the License.
19-->
20
21<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
22 xmlns:android="http://schemas.android.com/apk/res/android"
23 xmlns:rim="http://www.blackberry.com/ns/widgets"
24 id="cordova-plugin-camera"
25 version="2.4.1">
26 <name>Camera</name>
27 <description>Cordova Camera Plugin</description>
28 <license>Apache 2.0</license>
29 <keywords>cordova,camera</keywords>
30 <repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git</repo>
31 <issue>https://issues.apache.org/jira/browse/CB/component/12320645</issue>
32
33 <dependency id="cordova-plugin-compat" version="^1.1.0" />
34
35 <js-module src="www/CameraConstants.js" name="Camera">
36 <clobbers target="Camera" />
37 </js-module>
38
39 <js-module src="www/CameraPopoverOptions.js" name="CameraPopoverOptions">
40 <clobbers target="CameraPopoverOptions" />
41 </js-module>
42
43
44
45 <js-module src="www/Camera.js" name="camera">
46 <clobbers target="navigator.camera" />
47 </js-module>
48
49 <!-- firefoxos -->
50 <platform name="firefoxos">
51 <config-file target="config.xml" parent="/*">
52 <feature name="Camera">
53 <param name="firefoxos-package" value="Camera" />
54 </feature>
55 </config-file>
56
57 <js-module src="src/firefoxos/CameraProxy.js" name="CameraProxy">
58 <runs />
59 </js-module>
60 </platform>
61
62 <!-- android -->
63 <platform name="android">
64 <config-file target="res/xml/config.xml" parent="/*">
65 <feature name="Camera">
66 <param name="android-package" value="org.apache.cordova.camera.CameraLauncher"/>
67 </feature>
68 </config-file>
69 <config-file target="AndroidManifest.xml" parent="/*">
70 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
71 </config-file>
72 <config-file target="AndroidManifest.xml" parent="application">
73 <provider
74 android:name="android.support.v4.content.FileProvider"
75 android:authorities="${applicationId}.provider"
76 android:exported="false"
77 android:grantUriPermissions="true" >
78 <meta-data
79 android:name="android.support.FILE_PROVIDER_PATHS"
80 android:resource="@xml/provider_paths"/>
81 </provider>
82 </config-file>
83
84 <source-file src="src/android/CameraLauncher.java" target-dir="src/org/apache/cordova/camera" />
85 <source-file src="src/android/CordovaUri.java" target-dir="src/org/apache/cordova/camera" />
86 <source-file src="src/android/FileHelper.java" target-dir="src/org/apache/cordova/camera" />
87 <source-file src="src/android/ExifHelper.java" target-dir="src/org/apache/cordova/camera" />
88 <source-file src="src/android/xml/provider_paths.xml" target-dir="res/xml" />
89
90 <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
91 <clobbers target="CameraPopoverHandle" />
92 </js-module>
93
94 <framework src="com.android.support:support-v4:24.1.1+" />
95
96 </platform>
97
98 <!-- amazon-fireos -->
99 <platform name="amazon-fireos">
100 <config-file target="res/xml/config.xml" parent="/*">
101 <feature name="Camera">
102 <param name="android-package" value="org.apache.cordova.camera.CameraLauncher"/>
103 </feature>
104 </config-file>
105 <config-file target="AndroidManifest.xml" parent="/*">
106 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
107 </config-file>
108
109 <source-file src="src/android/CameraLauncher.java" target-dir="src/org/apache/cordova/camera" />
110 <source-file src="src/android/FileHelper.java" target-dir="src/org/apache/cordova/camera" />
111 <source-file src="src/android/ExifHelper.java" target-dir="src/org/apache/cordova/camera" />
112
113 <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
114 <clobbers target="CameraPopoverHandle" />
115 </js-module>
116
117 </platform>
118
119 <!-- ubuntu -->
120 <platform name="ubuntu">
121 <config-file target="config.xml" parent="/*">
122 <feature name="Camera">
123 <param policy_group="camera" policy_version="1" />
124 </feature>
125 </config-file>
126 <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
127 <clobbers target="CameraPopoverHandle" />
128 </js-module>
129 <header-file src="src/ubuntu/camera.h" />
130 <source-file src="src/ubuntu/camera.cpp" />
131
132 <resource-file src="src/ubuntu/back.png" />
133 <resource-file src="src/ubuntu/CaptureWidget.qml" />
134 <resource-file src="src/ubuntu/shoot.png" />
135 <resource-file src="src/ubuntu/toolbar-left.png" />
136 <resource-file src="src/ubuntu/toolbar-middle.png" />
137 <resource-file src="src/ubuntu/toolbar-right.png" />
138 </platform>
139
140 <!-- ios -->
141 <platform name="ios">
142 <config-file target="config.xml" parent="/*">
143 <feature name="Camera">
144 <param name="ios-package" value="CDVCamera" />
145 </feature>
146 <preference name="CameraUsesGeolocation" value="false" />
147 </config-file>
148
149 <js-module src="www/ios/CameraPopoverHandle.js" name="CameraPopoverHandle">
150 <clobbers target="CameraPopoverHandle" />
151 </js-module>
152
153 <header-file src="src/ios/UIImage+CropScaleOrientation.h" />
154 <source-file src="src/ios/UIImage+CropScaleOrientation.m" />
155 <header-file src="src/ios/CDVCamera.h" />
156 <source-file src="src/ios/CDVCamera.m" />
157 <header-file src="src/ios/CDVJpegHeaderWriter.h" />
158 <source-file src="src/ios/CDVJpegHeaderWriter.m" />
159 <header-file src="src/ios/CDVExif.h" />
160 <framework src="ImageIO.framework" weak="true" />
161 <framework src="CoreLocation.framework" />
162 <framework src="CoreGraphics.framework" />
163 <framework src="AssetsLibrary.framework" />
164 <framework src="MobileCoreServices.framework" />
165 <framework src="CoreGraphics.framework" />
166 <framework src="AVFoundation.framework" />
167
168 <preference name="CAMERA_USAGE_DESCRIPTION" default=" " />
169 <config-file target="*-Info.plist" parent="NSCameraUsageDescription">
170 <string>$CAMERA_USAGE_DESCRIPTION</string>
171 </config-file>
172
173 <preference name="PHOTOLIBRARY_USAGE_DESCRIPTION" default=" " />
174 <config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
175 <string>$PHOTOLIBRARY_USAGE_DESCRIPTION</string>
176 </config-file>
177
178 <config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
179 <string></string>
180 </config-file>
181
182 </platform>
183
184 <!-- blackberry10 -->
185 <platform name="blackberry10">
186 <source-file src="src/blackberry10/index.js" target-dir="Camera" />
187 <config-file target="www/config.xml" parent="/widget">
188 <feature name="Camera" value="Camera"/>
189 </config-file>
190 <config-file target="www/config.xml" parent="/widget/rim:permissions">
191 <rim:permit>access_shared</rim:permit>
192 <rim:permit>use_camera</rim:permit>
193 </config-file>
194 <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
195 <clobbers target="CameraPopoverHandle" />
196 </js-module>
197 <asset src="www/blackberry10/assets" target="chrome" />
198 </platform>
199
200 <!-- wp7 -->
201 <platform name="wp7">
202 <config-file target="config.xml" parent="/*">
203 <feature name="Camera">
204 <param name="wp-package" value="Camera"/>
205 </feature>
206 </config-file>
207
208 <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
209 <Capability Name="ID_CAP_ISV_CAMERA" />
210 <Capability Name="ID_CAP_MEDIALIB" />
211 </config-file>
212
213 <source-file src="src/wp/Camera.cs" />
214
215
216 <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
217 <clobbers target="CameraPopoverHandle" />
218 </js-module>
219 </platform>
220
221 <!-- wp8 -->
222 <platform name="wp8">
223 <config-file target="config.xml" parent="/*">
224 <feature name="Camera">
225 <param name="wp-package" value="Camera"/>
226 </feature>
227 </config-file>
228
229 <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
230 <Capability Name="ID_CAP_ISV_CAMERA" />
231 <Capability Name="ID_CAP_MEDIALIB_PHOTO"/>
232 </config-file>
233
234 <source-file src="src/wp/Camera.cs" />
235
236 <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
237 <clobbers target="CameraPopoverHandle" />
238 </js-module>
239 </platform>
240
241 <!-- windows8 -->
242 <platform name="windows8">
243
244 <config-file target="package.appxmanifest" parent="/Package/Capabilities">
245 <Capability Name="picturesLibrary" />
246 <DeviceCapability Name="webcam" />
247 </config-file>
248 <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
249 <clobbers target="CameraPopoverHandle" />
250 </js-module>
251 <js-module src="src/windows/CameraProxy.js" name="CameraProxy">
252 <runs />
253 </js-module>
254
255 </platform>
256
257 <!-- browser -->
258 <platform name="browser">
259 <config-file target="config.xml" parent="/*">
260 <feature name="Camera">
261 <param name="browser-package" value="Camera" />
262 </feature>
263 </config-file>
264
265 <js-module src="src/browser/CameraProxy.js" name="CameraProxy">
266 <runs />
267 </js-module>
268 </platform>
269
270 <!-- windows -->
271 <platform name="windows">
272 <config-file target="package.appxmanifest" parent="/Package/Capabilities">
273 <DeviceCapability Name="webcam" />
274 </config-file>
275 <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
276 <clobbers target="CameraPopoverHandle" />
277 </js-module>
278 <js-module src="src/windows/CameraProxy.js" name="CameraProxy">
279 <runs />
280 </js-module>
281 </platform>
282
283
284
285</plugin>