-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathplugin.xml
52 lines (39 loc) · 2.34 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-camerapicturebackground"
version="0.0.4"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>CameraPictureBackground</name>
<description>Take Picture from the camera without any interaction from the user.</description>
<keywords>android camera,background camera, camera background picture, background picture</keywords>
<license>Apache 2.0</license>
<author>Rahul Pandey</author>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<js-module name="CameraPictureBackground" src="www/CameraPictureBackground.js">
<clobbers target="window.plugins.CameraPictureBackground" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="CameraPictureBackground" >
<param name="android-package" value="me.rahul.plugins.camerapicturebackground.CameraPictureBackground"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.RECORD_VIDEO" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
<uses-feature android:name="android.hardware.camera.setParameters" android:required="false"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service android:enabled="true" android:exported="false" android:name="me.rahul.plugins.camerapicturebackground.CameraSurfacePreview" />
</config-file>
<source-file src="src/android/CameraPictureBackground.java" target-dir="src/me/rahul/plugins/camerapicturebackground" />
<source-file src="src/android/CameraSurfacePreview.java" target-dir="src/me/rahul/plugins/camerapicturebackground" />
</platform>
</plugin>