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) }