Skip to content

Commit

Permalink
#278 [fix] BarcodeAnalyser analyze 함수 SuppressLint를 OptIn으로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
2zerozu committed Nov 27, 2023
1 parent 1324263 commit 3fe1591
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.sopt.peekabookaos.presentation.barcodeScanner

import android.annotation.SuppressLint
import androidx.annotation.OptIn
import androidx.camera.core.ExperimentalGetImage
import androidx.camera.core.ImageAnalysis
import androidx.camera.core.ImageProxy
import com.google.mlkit.vision.barcode.BarcodeScannerOptions
Expand All @@ -24,7 +25,7 @@ class BarcodeAnalyser(private val barcodeListener: BarcodeAnalyzerListener) :

private val scanner by lazy { BarcodeScanning.getClient(options) }

@SuppressLint("UnsafeOptInUsageError")
@OptIn(ExperimentalGetImage::class)
override fun analyze(imageProxy: ImageProxy) {
val mediaImage = imageProxy.image
if (mediaImage != null) {
Expand Down

0 comments on commit 3fe1591

Please sign in to comment.