diff --git a/package/android/src/main/java/com/mrousavy/camera/core/CameraSession+Configuration.kt b/package/android/src/main/java/com/mrousavy/camera/core/CameraSession+Configuration.kt index e125827e43..2d4e3042dd 100644 --- a/package/android/src/main/java/com/mrousavy/camera/core/CameraSession+Configuration.kt +++ b/package/android/src/main/java/com/mrousavy/camera/core/CameraSession+Configuration.kt @@ -3,7 +3,6 @@ package com.mrousavy.camera.core import android.annotation.SuppressLint import android.util.Log import android.util.Range -import android.util.Size import androidx.annotation.OptIn import androidx.camera.core.CameraSelector import androidx.camera.core.CameraState @@ -211,11 +210,7 @@ internal fun CameraSession.configureOutputs(configuration: CameraConfiguration) val codeScannerConfig = configuration.codeScanner as? CameraConfiguration.Output.Enabled if (codeScannerConfig != null) { Log.i(CameraSession.TAG, "Creating CodeScanner output...") - val analyzer = ImageAnalysis.Builder().also { analysis -> - val targetSize = Size(1280, 720) - val resolutionSelector = ResolutionSelector.Builder().forSize(targetSize).build() - analysis.setResolutionSelector(resolutionSelector) - }.build() + val analyzer = ImageAnalysis.Builder().build() val pipeline = CodeScannerPipeline(codeScannerConfig.config, callback) analyzer.setAnalyzer(CameraQueues.analyzerExecutor, pipeline) codeScannerOutput = analyzer