-
Notifications
You must be signed in to change notification settings - Fork 3
/
plugin.xml
43 lines (38 loc) · 2.35 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-camera-preview2" version="0.0.1">
<name>CameraPreview</name>
<js-module name="CameraPreview" src="www/CameraPreview.js">
<clobbers target="cordova.plugins.CameraPreview" />
</js-module>
<framework src="plugin.gradle" custom="true" type="gradleReference" />
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="CameraPreview">
<param name="android-package" value="com.jackbayliss.camerapreview2.CameraPreview" />
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml" />
<source-file src="src/android/CameraActivity.java" target-dir="src/com/jackbayliss/camerapreview2/CameraActivity" />
<source-file src="src/android/CameraPreview.java" target-dir="src/com/jackbayliss/camerapreview2/CameraPreview" />
<source-file src="src/android/layout/activity_main.xml" target-dir="res/layout" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="CameraPreview">
<param name="android-package" value="com.jackbayliss.camerapreview2.CameraPreview" />
<param name="onload" value="true"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.jackbayliss.camerapreview2.CameraActivity" android:screenOrientation="portrait"/>
<activity android:name="com.jackbayliss.camerapreview2.CameraPreview" android:screenOrientation="portrait"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.FLASHLIGHT"></uses-permission>
<uses-permission android:name="android.permission.CAMERA"></uses-permission>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-feature android:name="android.hardware.location.gps" />
<uses-feature android:name="android.hardware.camera.flash" />
</config-file>
</platform>
</plugin>