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