diff --git a/android/src/main/cpp/FrameProcessorPlugin.cpp b/android/src/main/cpp/FrameProcessorPlugin.cpp index e26b54a..1edc49f 100644 --- a/android/src/main/cpp/FrameProcessorPlugin.cpp +++ b/android/src/main/cpp/FrameProcessorPlugin.cpp @@ -11,7 +11,7 @@ using namespace facebook; using namespace jni; using TSelf = local_ref::jhybriddata>; -using TFrameProcessorPlugin = jobject(alias_ref, alias_ref>); +using TFrameProcessorPlugin = jobject(local_ref, local_ref>); TSelf vision::FrameProcessorPlugin::initHybrid(alias_ref jThis, const std::string& name) { return makeCxxInstance(jThis, name); @@ -24,7 +24,7 @@ void FrameProcessorPlugin::registerNatives() { }); } -local_ref FrameProcessorPlugin::callback(alias_ref image, alias_ref> params) { +local_ref FrameProcessorPlugin::callback(local_ref image, local_ref> params) { static const auto func = javaPart_->getClass()->getMethod("callback"); auto result = func(javaPart_.get(), image, params); return make_local(result); diff --git a/android/src/main/cpp/FrameProcessorPlugin.h b/android/src/main/cpp/FrameProcessorPlugin.h index fe440bc..4b66c98 100644 --- a/android/src/main/cpp/FrameProcessorPlugin.h +++ b/android/src/main/cpp/FrameProcessorPlugin.h @@ -22,7 +22,7 @@ class FrameProcessorPlugin: public HybridClass { const std::string& name); static void registerNatives(); - local_ref callback(alias_ref image, alias_ref> params); + local_ref callback(local_ref image, local_ref> params); std::string getName(); private: