-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
executable file
·164 lines (164 loc) · 9.39 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<?xml version="1.0" ?>
<plugin id="cordova-plugin-scanditsdk" version="5.11.4"
xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>ScanditBarcodeScanner</name>
<description>Cross-Platform Barcode Scanner Plugin for Cordova/Phonegap</description>
<repo>https://github.com/codivoire/cordova-plugin-scanditsdk</repo>
<license>Apache 2.0</license>
<engines>
<engine name="cordova-android" version=">=4.0" />
<engine name="cordova-ios" version=">=3.9.2" />
</engines>
<js-module name="Barcode" src="www/barcode.js">
<clobbers target="Scandit.Barcode"/>
</js-module>
<js-module name="BarcodePicker" src="www/barcodepicker.js">
<clobbers target="Scandit.BarcodePicker"/>
</js-module>
<js-module name="Callbacks" src="www/callbacks.js">
<clobbers target="Scandit.Callbacks"/>
</js-module>
<js-module name="License" src="www/license.js">
<clobbers target="Scandit.License"/>
</js-module>
<js-module name="Margins" src="www/margins.js">
<clobbers target="Scandit.Margins"/>
</js-module>
<js-module name="Point" src="www/point.js">
<clobbers target="Scandit.Point"/>
</js-module>
<js-module name="Quadrilateral" src="www/quadrilateral.js">
<clobbers target="Scandit.Quadrilateral"/>
</js-module>
<js-module name="TextRecognitionSettings" src="www/textrecognitionsettings.js">
<clobbers target="Scandit.TextRecognitionSettings"/>
</js-module>
<js-module name="RecognizedText" src="www/recognizedtext.js">
<clobbers target="Scandit.RecognizedText"/>
</js-module>
<js-module name="Rect" src="www/rect.js">
<clobbers target="Scandit.Rect"/>
</js-module>
<js-module name="ScanOverlay" src="www/overlay.js">
<clobbers target="Scandit.ScanOverlay"/>
</js-module>
<js-module name="ScanSession" src="www/session.js">
<clobbers target="Scandit.ScanSession"/>
</js-module>
<js-module name="MatrixScanSession" src="www/matrixScanSession.js">
<clobbers target="Scandit.MatrixScanSession"/>
</js-module>
<js-module name="ScanSettings" src="www/settings.js">
<clobbers target="Scandit.ScanSettings"/>
</js-module>
<js-module name="SymbologySettings" src="www/symbologysettings.js">
<clobbers target="Scandit.SymbologySettings"/>
</js-module>
<js-module name="ScanCase" src="www/scancase.js">
<clobbers target="Scandit.ScanCase"/>
</js-module>
<js-module name="Constraints" src="www/constraints.js">
<clobbers target="Scandit.Constraints"/>
</js-module>
<platform name="ios">
<plugins-plist key="ScanditSDK" string="ScanditSDK"/>
<!-- feature tag in config.xml -->
<config-file parent="/widget" target="config.xml">
<feature name="ScanditSDK">
<param name="ios-package" value="ScanditSDK"/>
</feature>
<feature name="SBSScanCasePlugin">
<param name="ios-package" value="SBSScanCasePlugin"/>
</feature>
</config-file>
<!-- Declare Camera Usage for iOS10+ -->
<config-file parent="NSCameraUsageDescription" target="*-Info.plist">
<string>For Barcode Scanning</string>
</config-file>
<!-- Resource Bundle for Scandit SDK -->
<resource-file src="src/ios/sbs-ios_5.11.4/ScanditBarcodeScanner.bundle"/>
<!-- Scandit SDK Cordova Plugin Source for iOS -->
<header-file src="src/ios/ScanditSDK.h"/>
<source-file src="src/ios/ScanditSDK.mm"/>
<header-file src="src/ios/ScanditSDKRotatingBarcodePicker.h"/>
<source-file src="src/ios/ScanditSDKRotatingBarcodePicker.m"/>
<header-file src="src/ios/ScanditSDKSearchBar.h"/>
<source-file src="src/ios/ScanditSDKSearchBar.m"/>
<header-file src="src/ios/SBSPhonegapParamParser.h"/>
<source-file src="src/ios/SBSPhonegapParamParser.m"/>
<header-file src="src/ios/SBSUIParamParser.h"/>
<header-file src="src/ios/SBSTypeConversion.h"/>
<source-file src="src/ios/SBSTypeConversion.m"/>
<header-file src="src/ios/SBSScanCasePlugin.h"/>
<source-file src="src/ios/SBSScanCasePlugin.m"/>
<source-file src="src/ios/SBSUIParamParser.m"/>
<header-file src="src/ios/SBSConstraints.h"/>
<source-file src="src/ios/SBSConstraints.m"/>
<header-file src="src/ios/SBSPickerStateMachine.h"/>
<source-file src="src/ios/SBSPickerStateMachine.m"/>
<header-file src="src/ios/SBSSampleBufferConverter.h"/>
<source-file src="src/ios/SBSSampleBufferConverter.m"/>
<header-file src="src/ios/SBSResizeScannerProtocol.h"/>
<!-- Frameworks needed by Scandit SDK for iOS -->
<framework custom="true" src="src/ios/sbs-ios_5.11.4/ScanditBarcodeScanner.framework"/>
<framework src="OpenGLES.framework"/>
<framework src="AudioToolbox.framework"/>
<framework src="AVFoundation.framework"/>
<framework src="CoreGraphics.framework"/>
<framework src="CoreText.framework"/>
<framework src="CoreLocation.framework"/>
<framework src="CoreMedia.framework"/>
<framework src="CoreVideo.framework"/>
<framework src="QuartzCore.framework"/>
<framework src="Accelerate.framework"/>
<framework src="OpenGLES.framework"/>
<framework src="SystemConfiguration.framework"/>
<framework src="MediaPlayer.framework"/>
<framework src="libiconv.dylib"/>
<framework src="libz.dylib"/>
<framework src="libc++.dylib"/>
</platform>
<platform name="android">
<!-- register plugin -->
<config-file parent="/widget" target="res/xml/config.xml">
<feature name="ScanditSDK">
<param name="android-package" value="com.mirasense.scanditsdk.plugin.ScanditSDK"/>
</feature>
</config-file>
<!-- add permissions in AndroidManifest.xml file-->
<config-file parent="/manifest" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
</config-file>
<!-- add ScanditSDK Activity to the "application" section of AndroidManifest.xml file -->
<config-file parent="/manifest/application" target="AndroidManifest.xml">
<activity android:configChanges="orientation|screenSize" android:name="com.mirasense.scanditsdk.plugin.FullScreenPickerActivity"/>
</config-file>
<!-- The .so/.jar and resources are all contained in the ScanditBarcodeScanner.aar file, which we reference from build.gradle -->
<framework custom="true" src="src/android/build.gradle" type="gradleReference"/>
<resource-file src="src/android/sbs-android_5.11.4/ScanditBarcodeScanner.aar" target="libs/ScanditBarcodeScanner.aar"/>
<!-- These source files contain the Android-specific implementation of the Cordova/Phonegap plugin -->
<source-file src="src/android/com/mirasense/scanditsdk/plugin/BaseBarcodePicker.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/BarcodePickerWithSearchBar.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/FullScreenPickerActivity.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/FullscreenPickerController.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/IPickerController.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/Marshal.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/PhonegapParamParser.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/PickerControllerBase.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/PickerStateMachine.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/ResultRelay.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/SampleBufferConverter.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/ScanditSDK.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/ScanditWorker.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/SearchBar.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/SubViewPickerController.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/SubViewPickerOrientationHandler.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/UIParamParser.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/PermissionHelper.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/ResizeScannerInterface.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
<source-file src="src/android/com/mirasense/scanditsdk/plugin/ScanditCordovaTopView.java" target-dir="src/com/mirasense/scanditsdk/plugin"/>
</platform>
</plugin>