fix: Fix lint error for missing JNI func (3)

This commit is contained in:
Marc Rousavy 2021-07-07 13:17:41 +02:00
parent 91e81d7594
commit 7a5e879b92

View File

@ -1,13 +1,16 @@
package com.mrousavy.camera.frameprocessor; package com.mrousavy.camera.frameprocessor;
import androidx.annotation.Keep;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import androidx.camera.core.ImageProxy; import androidx.camera.core.ImageProxy;
import com.facebook.jni.HybridData; import com.facebook.jni.HybridData;
import com.facebook.proguard.annotations.DoNotStrip;
/** /**
* Declares a Frame Processor Plugin. * Declares a Frame Processor Plugin.
*/ */
@SuppressWarnings("JavaJniMissingFunction")
public abstract class FrameProcessorPlugin { public abstract class FrameProcessorPlugin {
static { static {
System.loadLibrary("VisionCamera"); System.loadLibrary("VisionCamera");
@ -23,6 +26,8 @@ public abstract class FrameProcessorPlugin {
* <a href="https://mrousavy.github.io/react-native-vision-camera/docs/guides/frame-processors-plugins-overview#types">Types</a> * <a href="https://mrousavy.github.io/react-native-vision-camera/docs/guides/frame-processors-plugins-overview#types">Types</a>
* table for a list of supported types. * table for a list of supported types.
*/ */
@DoNotStrip
@Keep
public abstract @Nullable Object callback(@NonNull ImageProxy image, @NonNull Object[] params); public abstract @Nullable Object callback(@NonNull ImageProxy image, @NonNull Object[] params);
/** /**