Compare commits
6 Commits
9865024ebf
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| da351f1cb5 | |||
|
|
bc14607662 | ||
|
|
2545e40ed6 | ||
|
|
fc5dcc300b | ||
|
|
31e2eda04b | ||
|
|
b0342bfa4c |
@@ -1,11 +1,13 @@
|
|||||||
**This repository is looking for a maintainer! If you believe you are the right person, please [leave a comment](https://github.com/tjwoon/csZBar/issues/60)!**
|
**This repository is unmaintained. Thank you to all collaborators who have helped to maintain it so far.**
|
||||||
|
|
||||||
|
~~**This repository is looking for a maintainer! If you believe you are the right person, please [leave a comment](https://github.com/tjwoon/csZBar/issues/60)!**~~
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ZBar Barcode Scanner Plugin
|
# ZBar Barcode Scanner Plugin
|
||||||
|
|
||||||
This plugin integrates with the [ZBar](http://zbar.sourceforge.net/) library,
|
This plugin integrates with the [ZBar](http://zbar.sourceforge.net/) library,
|
||||||
exposing a JavaScript interface for scanning barcodes (QR, 2D, etc).
|
exposing a JavaScript interface for scanning barcodes (QR Code, EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5, etc).
|
||||||
In this fork a button has been added to turn off and on device flash. In addition the plugin can now handle the device orientation change.
|
In this fork a button has been added to turn off and on device flash. In addition the plugin can now handle the device orientation change.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|||||||
@@ -17,8 +17,12 @@ import android.hardware.Camera.PreviewCallback;
|
|||||||
import android.hardware.Camera.AutoFocusCallback;
|
import android.hardware.Camera.AutoFocusCallback;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.support.v4.app.ActivityCompat;
|
|
||||||
import android.support.v4.content.ContextCompat;
|
|
||||||
|
import androidx.core.content.ContextCompat;
|
||||||
|
import androidx.core.app.ActivityCompat;
|
||||||
|
|
||||||
|
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
import android.view.SurfaceHolder;
|
import android.view.SurfaceHolder;
|
||||||
|
|||||||
17
package.json
17
package.json
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "cordova-plugin-cszbar",
|
"name": "cordova-plugin-cszbar-jsg",
|
||||||
"version": "1.3.3",
|
"version": "1.4.0",
|
||||||
"description": "Plugin to integrate with the ZBar barcode scanning library.",
|
"description": "Plugin to integrate with the ZBar barcode scanning library.",
|
||||||
"cordova": {
|
"cordova": {
|
||||||
"id": "cordova-plugin-cszbar",
|
"id": "cordova-plugin-cszbar-jsg",
|
||||||
"platforms": [
|
"platforms": [
|
||||||
"android",
|
"android",
|
||||||
"ios"
|
"ios"
|
||||||
@@ -13,17 +13,6 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/tjwoon/csZBar.git"
|
"url": "git+https://github.com/tjwoon/csZBar.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
|
||||||
"cszbar",
|
|
||||||
"zbar",
|
|
||||||
"barcode",
|
|
||||||
"qr",
|
|
||||||
"qr code",
|
|
||||||
"scanner",
|
|
||||||
"ecosystem:cordova",
|
|
||||||
"cordova-android",
|
|
||||||
"cordova-ios"
|
|
||||||
],
|
|
||||||
"engines": [
|
"engines": [
|
||||||
{
|
{
|
||||||
"name": "cordova-android",
|
"name": "cordova-android",
|
||||||
|
|||||||
@@ -71,6 +71,12 @@
|
|||||||
<param name="ios-package" value="CsZBar"/>
|
<param name="ios-package" value="CsZBar"/>
|
||||||
</feature>
|
</feature>
|
||||||
</config-file>
|
</config-file>
|
||||||
|
|
||||||
|
<!-- Declare Camera Usage for iOS10+ -->
|
||||||
|
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
|
||||||
|
<string>For Barcode Scanning</string>
|
||||||
|
</config-file>
|
||||||
|
|
||||||
<framework src="AVFoundation.framework" />
|
<framework src="AVFoundation.framework" />
|
||||||
<framework src="CoreMedia.framework" />
|
<framework src="CoreMedia.framework" />
|
||||||
<framework src="CoreVideo.framework" />
|
<framework src="CoreVideo.framework" />
|
||||||
|
|||||||
Reference in New Issue
Block a user