1 // Copyright © 2021-present 650 Industries, Inc. (aka Expo)
2 
3 #include "JNIDeallocator.h"
4 
5 namespace expo {
6 
addReference(jni::local_ref<Destructible::javaobject> jniObject)7 void JNIDeallocator::addReference(
8   jni::local_ref<Destructible::javaobject> jniObject
9 ) {
10   const static auto method = JNIDeallocator::javaClassLocal()
11     ->getMethod<void(jni::local_ref<Destructible>)>(
12       "addReference"
13     );
14   method(self(), std::move(jniObject));
15 }
16 
17 } // namespace expo
18