forked from dekwilde/CanvasCameraPlugin
-
Notifications
You must be signed in to change notification settings - Fork 30
/
plugin.xml
77 lines (59 loc) · 3.09 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
77
<?xml version='1.0' encoding='utf-8'?>
<plugin id="com.virtuoworks.cordova-plugin-canvascamera"
version="1.2.2" xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>Canvas Camera</name>
<description>Canvas Camera plug-in for Android and iOS.</description>
<repo>https://github.com/VirtuoWorks/CanvasCameraPlugin.git</repo>
<keywords>camera, canvas, canvas camera, cordova-android, cordova-ios, cordova</keywords>
<license>MIT</license>
<author>VirtuoWorks</author>
<js-module name="CanvasCamera" src="www/CanvasCamera.js">
<clobbers target="plugin.CanvasCamera" />
<clobbers target="CanvasCamera" />
</js-module>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="CanvasCamera">
<param name="ios-package" value="CanvasCamera" />
<param name="onload" value="true" />
</feature>
</config-file>
<preference name="CAMERA_USAGE_DESCRIPTION" default="Display video preview" />
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
<string>$CAMERA_USAGE_DESCRIPTION</string>
</config-file>
<header-file src="src/ios/CanvasCamera.h" />
<source-file src="src/ios/CanvasCamera.m" />
<framework src="AssetsLibrary.framework" weak="true" />
<framework src="ImageIO.framework" weak="true" />
<framework src="CoreImage.framework" weak="true" />
<framework src="CoreVideo.framework" weak="true" />
<framework src="CoreMedia.framework" weak="true" />
<framework src="CoreGraphics.framework" weak="true" />
<framework src="MobileCoreServices.framework" weak="true" />
</platform>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="CanvasCamera">
<param name="android-package" value="com.virtuoworks.cordova.plugin.canvascamera.CanvasCamera" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file parent="/manifest" target="AndroidManifest.xml">
<uses-feature android:name="android.hardware.camera"/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
</config-file>
<config-file parent="/manifest/application" target="AndroidManifest.xml">
<activity
android:name="com.virtuoworks.cordova.plugin.canvascamera.CanvasCamera"
android:label="@string/app_name"
android:theme="@android:style/Theme.Black.NoTitleBar">
</activity>
</config-file>
<source-file src="src/android/CanvasCamera.java" target-dir="src/com/virtuoworks/cordova/plugin/canvascamera" />
<source-file src="src/android/CanvasCameraInterface.java" target-dir="src/com/virtuoworks/cordova/plugin/canvascamera" />
</platform>
</plugin>