Skip to content

Commit c6d0900

Browse files
j-piaseckifacebook-github-bot
authored andcommitted
Cover react/nativemodule/fantomtestspecificmethods with Stable API guards
Summary: Marks `react/nativemodule/fantomtestspecificmethods` as a private target under the C++ Stable API: `NativeFantomTestSpecificMethods.h` includes `<react/cxxstableapi/PrivateGuard.h>`, and BUCK and CMake depend on `cxxstableapi`. The guard is inert unless `RN_STRICT_API` is defined, so there is no behavior change. Changelog: [Internal] Differential Revision: D125185297
1 parent d6d816c commit c6d0900

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ target_include_directories(react_nativemodule_fantomspecificmethods PRIVATE ${CM
1717
target_link_libraries(react_nativemodule_fantomspecificmethods
1818
react_codegen_rncore
1919
react_cxxreact
20+
react_cxxstableapi
2021
react_renderer_bridging
2122
react_renderer_core
2223
react_renderer_graphics

‎packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/NativeFantomTestSpecificMethods.h‎

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

88
#pragma once
99

10+
#include <react/cxxstableapi/PrivateGuard.h>
11+
1012
#include <FBReactNativeSpec/FBReactNativeSpecJSI.h>
1113

1214
namespace facebook::react {

0 commit comments

Comments
 (0)