From c1b94a328aacc8093695b65bf4ee4aa181de620b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=B5=E1=84=88=E1=85=A1=E1=86=BC=E1=84=8C?= =?UTF-8?q?=E1=85=AE?= Date: Mon, 27 Nov 2023 13:00:00 +0900 Subject: [PATCH] =?UTF-8?q?#278=20[refactor]=20BarcodeAnalyzer=20=ED=81=B4?= =?UTF-8?q?=EB=9E=98=EC=8A=A4=EB=AA=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../barcodeScanner/{BarcodeAnalyser.kt => BarcodeAnalyzer.kt} | 2 +- .../presentation/barcodeScanner/BarcodeScannerFragment.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename app/src/main/java/com/sopt/peekabookaos/presentation/barcodeScanner/{BarcodeAnalyser.kt => BarcodeAnalyzer.kt} (96%) diff --git a/app/src/main/java/com/sopt/peekabookaos/presentation/barcodeScanner/BarcodeAnalyser.kt b/app/src/main/java/com/sopt/peekabookaos/presentation/barcodeScanner/BarcodeAnalyzer.kt similarity index 96% rename from app/src/main/java/com/sopt/peekabookaos/presentation/barcodeScanner/BarcodeAnalyser.kt rename to app/src/main/java/com/sopt/peekabookaos/presentation/barcodeScanner/BarcodeAnalyzer.kt index cbe489fb..29a4c6f5 100644 --- a/app/src/main/java/com/sopt/peekabookaos/presentation/barcodeScanner/BarcodeAnalyser.kt +++ b/app/src/main/java/com/sopt/peekabookaos/presentation/barcodeScanner/BarcodeAnalyzer.kt @@ -9,7 +9,7 @@ import com.google.mlkit.vision.barcode.BarcodeScanning import com.google.mlkit.vision.barcode.common.Barcode import com.google.mlkit.vision.common.InputImage -class BarcodeAnalyser(private val barcodeListener: BarcodeAnalyzerListener) : +class BarcodeAnalyzer(private val barcodeListener: BarcodeAnalyzerListener) : ImageAnalysis.Analyzer { private val options = BarcodeScannerOptions.Builder().setBarcodeFormats( Barcode.FORMAT_CODE_39, diff --git a/app/src/main/java/com/sopt/peekabookaos/presentation/barcodeScanner/BarcodeScannerFragment.kt b/app/src/main/java/com/sopt/peekabookaos/presentation/barcodeScanner/BarcodeScannerFragment.kt index 8770ecd9..4e8fb809 100644 --- a/app/src/main/java/com/sopt/peekabookaos/presentation/barcodeScanner/BarcodeScannerFragment.kt +++ b/app/src/main/java/com/sopt/peekabookaos/presentation/barcodeScanner/BarcodeScannerFragment.kt @@ -131,7 +131,7 @@ class BarcodeScannerFragment : .setTargetRotation(rotation).build().also { it.setAnalyzer( executor, - BarcodeAnalyser { barcode -> + BarcodeAnalyzer { barcode -> if (processingBarcode.compareAndSet(false, false)) { onBarcodeDetected(barcode) }