diff --git a/app/src/main/java/com/mosect/app/scanpanel/ZxingDecoder.java b/app/src/main/java/com/mosect/app/scanpanel/ZxingDecoder.java index 4685abf..35ed60f 100644 --- a/app/src/main/java/com/mosect/app/scanpanel/ZxingDecoder.java +++ b/app/src/main/java/com/mosect/app/scanpanel/ZxingDecoder.java @@ -1,9 +1,6 @@ package com.mosect.app.scanpanel; -import android.graphics.Bitmap; -import android.graphics.BitmapFactory; import android.graphics.Rect; -import android.graphics.YuvImage; import com.google.zxing.BinaryBitmap; import com.google.zxing.MultiFormatReader; @@ -12,8 +9,6 @@ import com.google.zxing.common.HybridBinarizer; import com.mosect.lib.scanpanel.coder.FrameDecoder; -import java.io.ByteArrayOutputStream; - public class ZxingDecoder implements FrameDecoder { private final MultiFormatReader multiFormatReader; @@ -24,12 +19,6 @@ public ZxingDecoder() { @Override public String decodeFrame(int format, byte[] data, int width, int height, Rect clip) throws Exception { -// YuvImage image = new YuvImage(data, format, width, height, new int[]{width, width}); -// ByteArrayOutputStream temp = new ByteArrayOutputStream(512); -// image.compressToJpeg(clip, 100, temp); -// byte[] jpeg = temp.toByteArray(); -// Bitmap bm = BitmapFactory.decodeByteArray(jpeg, 0, jpeg.length); -// bm.recycle(); int cl = 0, ct = 0, cw = width, ch = height; if (null != clip) { cl = clip.left; diff --git a/lib/build.gradle b/lib/build.gradle index 8fd43e0..713af27 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -3,7 +3,7 @@ plugins { id 'maven-publish' } -def libVersion = '1.0.1' +def libVersion = '1.0.2' android { compileSdk 32