fix: Fix VideoPipeline
crash because ProGuard removed mHybridData
(#2169)
This commit is contained in:
parent
1055430cbb
commit
c9dbd412be
@ -8,7 +8,9 @@ import android.media.ImageWriter
|
||||
import android.os.Build
|
||||
import android.util.Log
|
||||
import android.view.Surface
|
||||
import androidx.annotation.Keep
|
||||
import com.facebook.jni.HybridData
|
||||
import com.facebook.proguard.annotations.DoNotStrip
|
||||
import com.mrousavy.camera.frameprocessor.Frame
|
||||
import com.mrousavy.camera.frameprocessor.FrameProcessor
|
||||
import com.mrousavy.camera.types.Orientation
|
||||
@ -51,6 +53,8 @@ class VideoPipeline(
|
||||
}
|
||||
}
|
||||
|
||||
@DoNotStrip
|
||||
@Keep
|
||||
private val mHybridData: HybridData
|
||||
private var openGLTextureId: Int? = null
|
||||
private var transformMatrix = FloatArray(16)
|
||||
|
@ -1,5 +1,6 @@
|
||||
package com.mrousavy.camera.frameprocessor;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
import com.facebook.jni.HybridData;
|
||||
import com.facebook.proguard.annotations.DoNotStrip;
|
||||
import com.mrousavy.camera.core.CameraQueues;
|
||||
@ -8,6 +9,7 @@ import com.mrousavy.camera.core.CameraQueues;
|
||||
public class VisionCameraScheduler {
|
||||
@SuppressWarnings({"unused", "FieldCanBeLocal"})
|
||||
@DoNotStrip
|
||||
@Keep
|
||||
private final HybridData mHybridData;
|
||||
|
||||
public VisionCameraScheduler() {
|
||||
|
Loading…
Reference in New Issue
Block a user