Skip to content

Commit 6fbf042

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Mark CallInvokerHolder APIs as FrameworkAPI only (#42399)
Summary: Pull Request resolved: #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
1 parent 461edd2 commit 6fbf042

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/CallInvokerHolderImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import com.facebook.jni.HybridData;
1111
import com.facebook.proguard.annotations.DoNotStrip;
12+
import com.facebook.react.common.annotations.FrameworkAPI;
1213
import com.facebook.react.internal.turbomodule.core.NativeModuleSoLoader;
1314
import com.facebook.react.turbomodule.core.interfaces.CallInvokerHolder;
1415

@@ -17,6 +18,7 @@
1718
* TurboModuleManager. Therefore, we need to wrap JSCallInvoker within a hybrid class so that we may
1819
* pass it from CatalystInstance, through Java, to TurboModuleManager::initHybrid.
1920
*/
21+
@FrameworkAPI
2022
public class CallInvokerHolderImpl implements CallInvokerHolder {
2123

2224
@DoNotStrip private final HybridData mHybridData;

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/NativeMethodCallInvokerHolderImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import com.facebook.jni.HybridData;
1111
import com.facebook.proguard.annotations.DoNotStrip;
12+
import com.facebook.react.common.annotations.FrameworkAPI;
1213
import com.facebook.react.internal.turbomodule.core.NativeModuleSoLoader;
1314
import com.facebook.react.turbomodule.core.interfaces.NativeMethodCallInvokerHolder;
1415

@@ -18,6 +19,7 @@
1819
* class so that we may pass it from CatalystInstance, through Java, to
1920
* TurboModuleManager::initHybrid.
2021
*/
22+
@FrameworkAPI
2123
public class NativeMethodCallInvokerHolderImpl implements NativeMethodCallInvokerHolder {
2224

2325
@DoNotStrip private final HybridData mHybridData;

0 commit comments

Comments
 (0)