forked from bitpay/cordova-plugin-qrscanner
-
Notifications
You must be signed in to change notification settings - Fork 3
/
plugin.xml
executable file
·53 lines (42 loc) · 1.91 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
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="cordova-plugin-background-barcode-scanner"
version="3.1.0">
<name>BBScanner</name>
<engines>
<engine name="cordova" version=">=3.4.0"/>
</engines>
<js-module src="www/background-barcode-scanner.js" name="BBScanner">
<clobbers target="cordova.plugins.BBScanner" />
</js-module>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="BBScanner">
<param name="android-package" value="info.belluco.cordova.bbscanner.BBScanner"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.CAMERA" android:required="false" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.front" android:required="false" />
</config-file>
<source-file src="src/android/BBScanner.java" target-dir="src/info/belluco/cordova/bbscanner"/>
<dependency id="cordova-plugin-compat" version="^1.0.0" />
<framework src="src/android/bbscanner.gradle" custom="true" type="gradleReference"/>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="BBScanner">
<param name="ios-package" value="BBScanner"/>
</feature>
</config-file>
<dependency id="cordova-plugin-add-swift-support" spec="~1.7.2" />
<dependency id="cordova-plugin-cocoapod-support" version="1.5.0" />
<pods-config ios-min-version="9.0" use-frameworks="true" />
<pod name="ZXingObjC" version="3.2.2" />
<source-file src="src/ios/BBScanner.swift"/>
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
<string>The camera is used to scan QR codes and barcodes.</string>
</config-file>
</platform>
</plugin>