nativescript-barcodescanner
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -19,3 +19,3 @@ var barcodescanner = {}; | ||
return new Promise(function (resolve) { | ||
resolve(true); | ||
resolve(); | ||
}); | ||
@@ -22,0 +22,0 @@ }; |
@@ -53,3 +53,3 @@ var barcodescanner = require("./barcodescanner-common"); | ||
if (arg != null) { | ||
if (arg !== null) { | ||
// shown at the bottom of the scan UI, default is: "Place a barcode inside the viewfinder rectangle to scan it." | ||
@@ -67,3 +67,3 @@ if (arg.message) { | ||
if (intent.resolveActivity(appModule.android.context.getPackageManager()) != null) { | ||
if (intent.resolveActivity(appModule.android.context.getPackageManager()) !== null) { | ||
var previousResult = appModule.android.onActivityResult; | ||
@@ -70,0 +70,0 @@ appModule.android.onActivityResult = function (requestCode, resultCode, data) { |
{ | ||
"name": "nativescript-barcodescanner", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Scan QR/barcodes with a {N} app.", | ||
@@ -21,9 +21,14 @@ "main": "barcodescanner.js", | ||
"Aztec", | ||
"Codabar", | ||
"Code39", | ||
"Code93", | ||
"Code128", | ||
"Data Matrix", | ||
"EAN8", | ||
"EAN13", | ||
"ITF", | ||
"PDF417", | ||
"QR", | ||
"RSS14", | ||
"UPCA", | ||
"UPCE" | ||
@@ -30,0 +35,0 @@ ], |
@@ -18,2 +18,24 @@ # NativeScript BarcodeScanner | ||
## Supported barcode types | ||
### iOS and Android | ||
* Code39 | ||
* Code93 | ||
* Code128 | ||
* EAN8 | ||
* EAN13 | ||
* QR | ||
* UPC_E | ||
### iOS only | ||
* Aztec | ||
* PDF417 | ||
### Android only | ||
* DATA_MATRIX | ||
* CODABAR | ||
* ITF | ||
* RSS14 | ||
* UPC_A | ||
## Usage | ||
@@ -20,0 +42,0 @@ |
1268291
22
268
102