Skip to content

Commit 7a5e879

Browse files
committed
fix: Fix lint error for missing JNI func (3)
1 parent 91e81d7 commit 7a5e879

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

android/src/main/java/com/mrousavy/camera/frameprocessor/FrameProcessorPlugin.java

+5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
package com.mrousavy.camera.frameprocessor;
22

3+
import androidx.annotation.Keep;
34
import androidx.annotation.NonNull;
45
import androidx.annotation.Nullable;
56
import androidx.camera.core.ImageProxy;
67
import com.facebook.jni.HybridData;
8+
import com.facebook.proguard.annotations.DoNotStrip;
79

810
/**
911
* Declares a Frame Processor Plugin.
1012
*/
13+
@SuppressWarnings("JavaJniMissingFunction")
1114
public abstract class FrameProcessorPlugin {
1215
static {
1316
System.loadLibrary("VisionCamera");
@@ -23,6 +26,8 @@ public abstract class FrameProcessorPlugin {
2326
* <a href="https://mrousavy.github.io/react-native-vision-camera/docs/guides/frame-processors-plugins-overview#types">Types</a>
2427
* table for a list of supported types.
2528
*/
29+
@DoNotStrip
30+
@Keep
2631
public abstract @Nullable Object callback(@NonNull ImageProxy image, @NonNull Object[] params);
2732

2833
/**

0 commit comments

Comments
 (0)