-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
executable file
·78 lines (67 loc) · 3.49 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
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0" id="cordova-plugin-document-scanner" version="4.2.1">
<name>Scan</name>
<description>Cordova Document Scanner Plugin</description>
<keywords>cordova,camera,document,scan</keywords>
<engines>
<engine name="cordova-android" version=">=6.0.0" />
</engines>
<asset src="www/scan.js" target="js/scan.js"/>
<js-module src="www/scan.js" name="scan">
<clobbers target="scan" />
</js-module>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="Scan">
<param name="android-package" value="com.neutrinos.plugin.Scan"/>
</feature>
</config-file>
<source-file src="src/android/Scan.java" target-dir="src/com/neutrinos/plugin/" />
<source-file src="src/android/FileHelper.java" target-dir="src/com/neutrinos/plugin/" />
<framework src="src/android/build.gradle" custom="true" type="gradleReference"/>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="Scan">
<param name="ios-package" value="Scan" />
</feature>
</config-file>
<preference name="CAMERA_USAGE_DESCRIPTION" default="This app needs camera access"/>
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
<string>$CAMERA_USAGE_DESCRIPTION</string>
</config-file>
<preference name="PHOTOLIBRARY_USAGE_DESCRIPTION" default="This app needs read/write-access photo library access"/>
<config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
<string>$PHOTOLIBRARY_USAGE_DESCRIPTION</string>
</config-file>
<header-file src="src/ios/Scan.h" target-dir="ScanPlugin"/>
<source-file src="src/ios/Scan.m" target-dir="ScanPlugin"/>
<framework src="src/ios/TOCropViewController.framework" custom="true" embed="true"/>
<framework src="src/ios/IRLDocumentScanner.framework" custom="true" embed="true"/>
</platform>
<platform name="windows">
<js-module src="src/windows/documentScannerProxy.js" name="DocumentScannerProxy">
<merges target=""/>
</js-module>
<config-file target="package.appxmanifest" parent="/Package/Capabilities">
<DeviceCapability Name="webcam"/>
</config-file>
<config-file target="package.appxmanifest" parent="/Package/Extensions" versions="8.1">
<Extension Category="windows.activatableClass.inProcessServer">
<InProcessServer>
<Path>ClippingCamera.dll</Path>
<ActivatableClass ActivatableClassId="ClippingCamera.ImageClipping" ThreadingModel="both" />
</InProcessServer>
</Extension>
</config-file>
<config-file target="CordovaApp.jsproj" parent="/Project" versions="8.1">
<ImportGroup Label="PropertySheets">
<Import Project="..\..\plugins\cordova-plugin-document-scanner\src\windows\filter\ClippingCamera\opencvDeploy.props" />
</ImportGroup>
</config-file>
<framework src="src/windows/filter/ClippingCamera/ClippingCamera.vcxproj" custom="true" type="projectReference" target="windows" versions="8.1"/>
<framework src="src/windows/filter/ClippingCamera/ClippingCamera.Phone.vcxproj" custom="true" type="projectReference" target="phone" versions="8.1"/>
<framework src="src/windows/lib/OpenCVBridge/OpenCVBridge.vcxproj" custom="true" type="projectReference" versions="10.*"/>
<asset src="src/windows/assets/plugin-document-scanner.css" target="css/plugin-document-scanner.css"/>
</platform>
</plugin>