phonegap-plugin-barcodescanner
Advanced tools
Comparing version 6.0.6 to 6.0.7
{ | ||
"name": "phonegap-plugin-barcodescanner", | ||
"version": "6.0.6", | ||
"version": "6.0.7", | ||
"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.", | ||
@@ -48,4 +48,4 @@ "cordova": { | ||
"jasmine-node": "1.14.5", | ||
"pluginpub": "^0.0.6" | ||
"pluginpub": "^0.0.8" | ||
} | ||
} |
@@ -56,2 +56,9 @@ # PhoneGap Plugin BarcodeScanner | ||
If you are using Phonegap Build you can add this to your config.xml | ||
``` | ||
<gap:config-file platform="ios" parent="NSCameraUsageDescription" overwrite="true"> | ||
<string>We are using the Camera for something..</string> | ||
</gap:config-file> | ||
``` | ||
### PhoneGap Build | ||
@@ -61,3 +68,3 @@ If you're using [PhoneGap Build](https://build.phonegap.com/) please make sure you specify `gradle` as your Android build tool in `config.xml`: `<preference name="android-build-tool" value="gradle" />`. | ||
## Using the plugin ## | ||
The plugin creates the object `cordova/plugin/BarcodeScanner` with the method `scan(success, fail)`. | ||
The plugin creates the object `cordova.plugins.barcodeScanner` with the method `scan(success, fail)`. | ||
@@ -82,3 +89,3 @@ The following barcode types are currently supported: | ||
Not by default, but supported if you pass in the "formats" option: | ||
* PDF417 | ||
* PDF_417 | ||
* AZTEC | ||
@@ -114,3 +121,3 @@ | ||
* AZTEC | ||
* PDF417 | ||
* PDF_417 | ||
@@ -133,3 +140,3 @@ ### Windows Phone 8 | ||
* AZTEC | ||
* PDF417 | ||
* PDF_417 | ||
@@ -136,0 +143,0 @@ ### BlackBerry 10 |
/** | ||
* cordova is available under *either* the terms of the modified BSD license *or* the | ||
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text. | ||
* cordova is available under the MIT License (2008). | ||
* See http://opensource.org/licenses/alphabetical for full text. | ||
* | ||
* Copyright (c) Matt Kane 2010 | ||
* Copyright (c) 2011, IBM Corporation | ||
* Copyright (c) 2012-2017, Adobe Systems | ||
*/ | ||
@@ -81,2 +82,6 @@ | ||
if (typeof(config) === 'object') { | ||
// string spaces between formats, ZXing does not like that | ||
if (config.formats) { | ||
config.formats = config.formats.replace(/\s+/g, ''); | ||
} | ||
config = [ config ]; | ||
@@ -83,0 +88,0 @@ } else { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
241
6603006
78
1804