UNPKG

7.83 kBXMLView Raw
1<?xml version="1.0" encoding="UTF-8"?><plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
2 xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:rim="http://www.blackberry.com/ns/widgets"
4 id="phonegap-plugin-barcodescanner"
5 version="6.0.1">
6
7 <name>BarcodeScanner</name>
8 <description>You can use the BarcodeScanner plugin to scan different types of barcodes (using the device's camera) and get the metadata encoded in them for processing within your application.</description>
9 <license>MIT</license>
10
11 <repo>https://github.com/phonegap/phonegap-plugin-barcodescanner</repo>
12 <issue>https://github.com/phonegap/phonegap-plugin-barcodescanner/issues</issue>
13
14 <engines>
15 <engine name="cordova" version=">=3.0.0" />
16 </engines>
17
18 <js-module src="www/barcodescanner.js" name="BarcodeScanner">
19 <clobbers target="cordova.plugins.barcodeScanner" />
20 </js-module>
21
22 <!-- ios -->
23 <platform name="ios">
24 <!-- Cordova >= 2.8 -->
25 <config-file target="config.xml" parent="/*">
26 <feature name="BarcodeScanner">
27 <param name="ios-package" value="CDVBarcodeScanner" />
28 </feature>
29 </config-file>
30
31 <resource-file src="src/ios/scannerOverlay.xib" />
32 <resource-file src="src/ios/CDVBarcodeScanner.bundle" />
33
34 <header-file src="src/ios/zxing-all-in-one.h" />
35
36 <source-file src="src/ios/CDVBarcodeScanner.mm" compiler-flags="-fno-objc-arc" />
37 <source-file src="src/ios/zxing-all-in-one.cpp" />
38
39 <framework src="libiconv.dylib" />
40 <framework src="AVFoundation.framework" />
41 <framework src="AssetsLibrary.framework" />
42 <framework src="CoreVideo.framework" />
43 <framework src="QuartzCore.framework" />
44 <framework src="CoreGraphics.framework" />
45 <framework src="CoreImage.framework" />
46 <framework src="AudioToolbox.framework" />
47 </platform>
48
49 <!-- android -->
50 <platform name="android">
51
52 <source-file src="src/android/com/phonegap/plugins/barcodescanner/BarcodeScanner.java" target-dir="src/com/phonegap/plugins/barcodescanner" />
53
54 <config-file target="res/xml/config.xml" parent="/*">
55 <feature name="BarcodeScanner">
56 <param name="android-package" value="com.phonegap.plugins.barcodescanner.BarcodeScanner" />
57 </feature>
58 </config-file>
59
60 <config-file target="AndroidManifest.xml" parent="/manifest/application">
61 <activity
62 android:name="com.google.zxing.client.android.CaptureActivity"
63 android:clearTaskOnLaunch="true"
64 android:configChanges="orientation|keyboardHidden|screenSize"
65 android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
66 android:windowSoftInputMode="stateAlwaysHidden"
67 android:exported="false">
68 <intent-filter>
69 <action android:name="com.google.zxing.client.android.SCAN"/>
70 <category android:name="android.intent.category.DEFAULT"/>
71 </intent-filter>
72 </activity>
73 <activity android:name="com.google.zxing.client.android.encode.EncodeActivity" android:label="Share">
74 <intent-filter>
75 <action android:name="com.phonegap.plugins.barcodescanner.ENCODE"/>
76 <category android:name="android.intent.category.DEFAULT"/>
77 </intent-filter>
78 </activity>
79 <activity android:name="com.google.zxing.client.android.HelpActivity" android:label="Share">
80 <intent-filter>
81 <action android:name="android.intent.action.VIEW"/>
82 <category android:name="android.intent.category.DEFAULT"/>
83 </intent-filter>
84 </activity>
85 </config-file>
86
87 <config-file target="AndroidManifest.xml" parent="/manifest">
88 <uses-permission android:name="android.permission.CAMERA" />
89 <uses-permission android:name="android.permission.FLASHLIGHT" />
90 <!-- Not required to allow users to work around this -->
91 <uses-feature android:name="android.hardware.camera" android:required="false" />
92 </config-file>
93
94 <framework src="src/android/barcodescanner.gradle" custom="true" type="gradleReference"/>
95 <resource-file src="src/android/barcodescanner-release-2.0.1.aar" target="libs/barcodescanner.aar" />
96
97 <dependency id="cordova-plugin-compat" version="^1.0.0" />
98 </platform>
99
100 <platform name="windows">
101 <js-module src="src/windows/BarcodeScannerProxy.js" name="BarcodeScannerProxy">
102 <merges target="" />
103 </js-module>
104
105 <config-file target="package.appxmanifest" parent="/Package/Capabilities">
106 <DeviceCapability Name="webcam" />
107 </config-file>
108
109 <framework src="src/windows/lib.UW/x86/ZXing.winmd" target-dir="x86" arch="x86" custom="true" versions=">8.1" />
110 <framework src="src/windows/lib.UW/x64/ZXing.winmd" target-dir="x64" arch="x64" custom="true" versions=">8.1" />
111 <framework src="src/windows/lib.UW/ARM/ZXing.winmd" target-dir="ARM" arch="ARM" custom="true" versions=">8.1" />
112 <framework src="src/windows/lib/WinRTBarcodeReader.csproj" custom="true" type="projectReference" versions="&lt;=8.1"/>
113
114 <asset src="src/windows/assets/plugin-barcodeScanner.css" target="css/plugin-barcodeScanner.css" />
115 <hook src="hooks/windows/check-arch.js" type="before_compile" />
116 <hook src="hooks/windows/check-arch.js" type="before_run" />
117 </platform>
118
119 <!-- Windows Phone 8 -->
120 <platform name="wp8">
121 <config-file target="config.xml" parent="/*">
122 <feature name="BarcodeScanner">
123 <param name="wp-package" value="BarcodeScanner"/>
124 </feature>
125 </config-file>
126
127 <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
128 <Capability Name="ID_CAP_ISV_CAMERA" />
129 </config-file>
130
131 <framework src="src/wp8/lib/zxing.wp8.0.dll" custom="true" />
132
133 <asset src="src/wp8/assets/cancel.png" target="Images/appbar.cancel.png" />
134
135 <source-file src="src/wp8/BarcodeScanner.cs" />
136 <source-file src="src/wp8/BarcodeScannerTask.cs" />
137 <source-file src="src/wp8/BarcodeScannerUI.xaml" />
138 <source-file src="src/wp8/BarcodeScannerUI.xaml.cs" />
139 </platform>
140
141 <!-- browser -->
142 <platform name="browser">
143 <config-file target="config.xml" parent="/*">
144 <feature name="BarcodeScanner">
145 <param name="browser-package" value="BarcodeScanner" />
146 </feature>
147 </config-file>
148
149 <js-module src="src/browser/BarcodeScannerProxy.js" name="BarcodeScannerProxy">
150 <runs />
151 </js-module>
152 </platform>
153
154 <!-- BlackBerry 10 -->
155 <platform name="blackberry10">
156 <source-file src="src/blackberry10/index.js" target-dir="BarcodeScanner" />
157 <source-file src="src/blackberry10/qrcode.js" target-dir="BarcodeScanner" />
158 <lib-file src="src/blackberry10/native/device/libBarcodeScanner.so" arch="device"/>
159 <lib-file src="src/blackberry10/native/simulator/libBarcodeScanner.so" arch="simulator"/>
160 <config-file target="www/config.xml" parent="/widget">
161 <feature name="BarcodeScanner">
162 <param name="blackberry-package" value="phonegap-plugin-barcodescanner" />
163 </feature>
164 </config-file>
165 <config-file target="www/config.xml" parent="/widget/rim:permissions">
166 <rim:permit>use_camera</rim:permit>
167 </config-file>
168 <dependency id="cordova-plugin-bb-app" />
169 </platform>
170</plugin>