forked from techieyann/CordovaCameraPreview
-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
76 lines (62 loc) · 3.27 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?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="com.mbppower.camerapreview"
version="0.0.8">
<name>CameraPreview</name>
<description>Cordova plugin that allows camera interaction from HTML code. Show camera preview popup on top of the HTML.</description>
<license>Apache 2.0</license>
<keywords>Ionic,Cordova,Camera, Preview, Popup, Floating, Box</keywords>
<repo>https://github.com/mbppower/CordovaCameraPreview.git</repo>
<issue>https://github.com/mbppower/CordovaCameraPreview/issues</issue>
<js-module src="www/CameraPreview.js" name="CameraPreview">
<clobbers target="cordova.plugins.camerapreview" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="CameraPreview">
<param name="android-package" value="com.mbppower.CameraPreview" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-permission android:name="android.permission.CAMERA" />
<!--<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>-->
<!--<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>-->
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.mbppower.CameraActivity" android:screenOrientation="portrait" android:theme="@style/CameraPreviewTheme" />
</config-file>
<source-file src="src/android/com/mbppower/CameraPreview.java" target-dir="src/com/mbppower" />
<source-file src="src/android/com/mbppower/CameraActivity.java" target-dir="src/com/mbppower" />
<source-file src="src/android/com/mbppower/camera_activity.xml" target-dir="res/layout" />
<source-file src="src/android/com/mbppower/camera_theme.xml" target-dir="res/values" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="CameraPreview">
<param name="ios-package" value="CameraPreview" onload="true" />
</feature>
</config-file>
<header-file src="src/ios/CameraPreview.h" />
<source-file src="src/ios/CameraPreview.m" />
<header-file src="src/ios/CameraSessionManager.h" />
<source-file src="src/ios/CameraSessionManager.m" />
<header-file src="src/ios/CameraRenderController.h" />
<source-file src="src/ios/CameraRenderController.m" />
<framework src="ImageIO.framework" weak="true" />
<framework src="MobileCoreServices.framework" />
<framework src="CoreLocation.framework" />
<framework src="CoreGraphics.framework" />
<framework src="AssetsLibrary.framework" />
<framework src="CoreGraphics.framework" />
<framework src="CoreImage.framework" />
<framework src="OpenGLES.framework" />
<framework src="GLKit.framework" />
<framework src="CoreVideo.framework" />
</platform>
</plugin>