Compare commits

..

6 Commits

Author SHA1 Message Date
da351f1cb5 [update] 优化打包 2022-05-19 16:26:06 +08:00
TJ Woon
bc14607662 Update README.md 2020-10-01 22:29:19 +08:00
TJ Woon
2545e40ed6 Update README.md 2020-10-01 22:27:24 +08:00
Jacob
fc5dcc300b Update README.md 2017-01-13 14:15:42 -05:00
Daniel Cousens
31e2eda04b Merge pull request #83 from tylervz5/iOS_10
Fix for the plugin crashing on iOS 10
2016-09-17 16:22:21 +10:00
tylervz
b0342bfa4c Add NSCameraUsageDescription to info.plist when adding the plugin to the project. 2016-09-16 09:36:46 -05:00
4 changed files with 20 additions and 19 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -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",
@@ -40,4 +29,4 @@
"url": "https://github.com/tjwoon/csZBar/issues" "url": "https://github.com/tjwoon/csZBar/issues"
}, },
"homepage": "https://github.com/tjwoon/csZBar#readme" "homepage": "https://github.com/tjwoon/csZBar#readme"
} }

View File

@@ -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" />