From da351f1cb58ecfd7852fce6526024f06d7938d2a Mon Sep 17 00:00:00 2001 From: taoya7 Date: Thu, 19 May 2022 16:26:06 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BC=98=E5=8C=96=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/ZBarScannerActivity.java | 8 ++++++-- package.json | 19 ++++--------------- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/android/ZBarScannerActivity.java b/android/ZBarScannerActivity.java index 9f23fa2..ffad10f 100644 --- a/android/ZBarScannerActivity.java +++ b/android/ZBarScannerActivity.java @@ -17,8 +17,12 @@ import android.hardware.Camera.PreviewCallback; import android.hardware.Camera.AutoFocusCallback; import android.os.Bundle; 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.view.Gravity; import android.view.SurfaceHolder; diff --git a/package.json b/package.json index 3a59007..d93208b 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { - "name": "cordova-plugin-cszbar", - "version": "1.3.3", + "name": "cordova-plugin-cszbar-jsg", + "version": "1.4.0", "description": "Plugin to integrate with the ZBar barcode scanning library.", "cordova": { - "id": "cordova-plugin-cszbar", + "id": "cordova-plugin-cszbar-jsg", "platforms": [ "android", "ios" @@ -13,17 +13,6 @@ "type": "git", "url": "git+https://github.com/tjwoon/csZBar.git" }, - "keywords": [ - "cszbar", - "zbar", - "barcode", - "qr", - "qr code", - "scanner", - "ecosystem:cordova", - "cordova-android", - "cordova-ios" - ], "engines": [ { "name": "cordova-android", @@ -40,4 +29,4 @@ "url": "https://github.com/tjwoon/csZBar/issues" }, "homepage": "https://github.com/tjwoon/csZBar#readme" -} +} \ No newline at end of file