Upgrade CameraX to 1.1.0-alpha04 (#128)

* Upgrade CameraX to 1.1.0-alpha4

* Upgrade Kotlin to 1.4.32

* Suppress `UnsafeOptInUsageError` CameraSelector override

* Suppress `UnsafeOptInUsageError` for takePhoto

* Suppress `MissingPermission` for recordVideo

* Remove unreported lint suppressions
This commit is contained in:
Marc Rousavy
2021-04-26 12:56:36 +02:00
committed by GitHub
parent 5e2e9b6912
commit f2a89570c5
7 changed files with 17 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ import java.io.File
private const val TAG = "CameraView.performance"
@SuppressLint("UnsafeExperimentalUsageError")
@SuppressLint("UnsafeOptInUsageError")
suspend fun CameraView.takePhoto(options: ReadableMap): WritableMap = coroutineScope {
val startFunc = System.nanoTime()
Log.d(CameraView.REACT_CLASS, "takePhoto() called")