From 6fbf042d937d9c073fd7c26aa70807ddf6c9f98a Mon Sep 17 00:00:00 2001 From: David Vacca Date: Fri, 19 Jan 2024 13:21:37 -0800 Subject: [PATCH] Mark CallInvokerHolder APIs as FrameworkAPI only (#42399) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42399 Mark CallInvokerHolder APIs as FrameworkAPI only, these APIs are meant to be used only for partner frameworks changelog: [internal] internal Reviewed By: cortinico Differential Revision: D52913739 fbshipit-source-id: 5a2c8be629e90a33e0cfb66b28e0171c71f5940d --- .../facebook/react/turbomodule/core/CallInvokerHolderImpl.java | 2 ++ .../turbomodule/core/NativeMethodCallInvokerHolderImpl.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/CallInvokerHolderImpl.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/CallInvokerHolderImpl.java index e652516e37b06c..99e5e80c399edc 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/CallInvokerHolderImpl.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/CallInvokerHolderImpl.java @@ -9,6 +9,7 @@ import com.facebook.jni.HybridData; import com.facebook.proguard.annotations.DoNotStrip; +import com.facebook.react.common.annotations.FrameworkAPI; import com.facebook.react.internal.turbomodule.core.NativeModuleSoLoader; import com.facebook.react.turbomodule.core.interfaces.CallInvokerHolder; @@ -17,6 +18,7 @@ * TurboModuleManager. Therefore, we need to wrap JSCallInvoker within a hybrid class so that we may * pass it from CatalystInstance, through Java, to TurboModuleManager::initHybrid. */ +@FrameworkAPI public class CallInvokerHolderImpl implements CallInvokerHolder { @DoNotStrip private final HybridData mHybridData; diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/NativeMethodCallInvokerHolderImpl.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/NativeMethodCallInvokerHolderImpl.java index 8892fa4ba2235f..96cc9761832df6 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/NativeMethodCallInvokerHolderImpl.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/NativeMethodCallInvokerHolderImpl.java @@ -9,6 +9,7 @@ import com.facebook.jni.HybridData; import com.facebook.proguard.annotations.DoNotStrip; +import com.facebook.react.common.annotations.FrameworkAPI; import com.facebook.react.internal.turbomodule.core.NativeModuleSoLoader; import com.facebook.react.turbomodule.core.interfaces.NativeMethodCallInvokerHolder; @@ -18,6 +19,7 @@ * class so that we may pass it from CatalystInstance, through Java, to * TurboModuleManager::initHybrid. */ +@FrameworkAPI public class NativeMethodCallInvokerHolderImpl implements NativeMethodCallInvokerHolder { @DoNotStrip private final HybridData mHybridData;