Skip to content

Commit

Permalink
Mark CallInvokerHolder APIs as FrameworkAPI only (#42399)
Browse files Browse the repository at this point in the history
Summary:

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
  • Loading branch information
mdvacca authored and facebook-github-bot committed Jan 19, 2024
1 parent 461edd2 commit 04fa812
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down

0 comments on commit 04fa812

Please sign in to comment.