forked from CyrexEnterprise/ImageDetectionCordovaPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
89 lines (76 loc) · 3.95 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
78
79
80
81
82
83
84
85
86
87
88
89
<?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.cloudoki.imagedetectionplugin"
version="0.0.2">
<name>Image Detection Plugin</name>
<description>The ImageDetectionPlugin for Cordova enables the use of OpenCV SDK to detect an inputed image.</description>
<author>Délio Amaral</author>
<keywords>OpenCV, image detection, image matching</keywords>
<repo>https://github.com/</repo>
<license>See License.md for details of the license</license>
<engines>
<engine name="cordova" version=">=3.4.0" />
</engines>
<asset src="www/ImageDetectionPlugin.js" target="js/ImageDetectionPlugin.js"/>
<js-module src="www/ImageDetectionPlugin.js" name="ImageDetectionPlugin">
<clobbers target="ImageDetectionPlugin" />
</js-module>
<!-- Android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="ImageDetectionPlugin">
<param name="android-package" value="com.cloudoki.imagedetectionplugin.ImageDetectionPlugin"/>
<param name="onload" value="true" />
</feature>
</config-file>
<config-file parent="/manifest" target="AndroidManifest.xml">
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="23" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature android:name="android.hardware.camera.any" />
<uses-feature android:name="android.hardware.camera" android:required="true" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="true" />
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true" />
</config-file>
<framework src="com.android.support:support-v4:+" />
<framework src="com.android.support:appcompat-v7:+" />
<source-file src="src/android/libs/build-extras.gradle" target-dir="." />
<source-file src="src/android/libs/opencv-release.aar" target-dir="libs/" />
<source-file src="src/android/ImageDetectionPlugin.java" target-dir="src/com/cloudoki/imagedetectionplugin/" />
</platform>
<!-- iOS -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="ImageDetectionPlugin">
<param name="ios-package" value="ImageDetectionPlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<header-file src="src/ios/ImageDetectionPlugin.h" target-dir="ImageDetectionPlugin" />
<source-file src="src/ios/ImageDetectionPlugin.mm" target-dir="ImageDetectionPlugin" />
<header-file src="src/ios/ImageUtils.h" targer-dir="." />
<source-file src="src/ios/ImageUtils.mm" targer-dir="." />
<source-file src="src/ios/libjpeg.a" target-dir="." framework="true" />
<framework src="Accelerate.framework" />
<framework src="AssetsLibrary.framework" />
<framework src="AVFoundation.framework" />
<framework src="CoreGraphics.framework" />
<framework src="CoreImage.framework" />
<framework src="CoreMedia.framework" />
<framework src="CoreVideo.framework" />
<framework src="Foundation.framework" />
<framework src="QuartzCore.framework" />
<framework src="UIKit.framework" />
<framework src="src/ios/opencv2.framework" custom="true" />
</platform>
</plugin>