Skip to content

Commit 4c09e53

Browse files
j-piaseckifacebook-github-bot
authored andcommitted
Cover react/nativemodule/devtoolsruntimesettings with Stable API guards
Summary: Classifies `react/nativemodule/devtoolsruntimesettings:devtoolsruntimesettings` as a private target under the C++ stable API three-tier visibility model. Adds `#include <react/cxxstableapi/PrivateGuard.h>` to the module's single exported header (`DevToolsRuntimeSettingsModule.h`), and wires the guard dependency into BUCK and CMake. The guards are inert unless a consumer defines `RN_STRICT_API`, so there is no behavior change. Changelog: [Internal] Differential Revision: D117320628
1 parent 5b680c5 commit 4c09e53

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

packages/react-native/ReactCommon/react/nativemodule/devtoolsruntimesettings/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ target_include_directories(react_nativemodule_devtoolsruntimesettings PUBLIC ${R
1515

1616
target_link_libraries(react_nativemodule_devtoolsruntimesettings
1717
devtoolsruntimesettings
18+
react_cxxstableapi
1819
)
1920
target_compile_reactnative_options(react_nativemodule_devtoolsruntimesettings PRIVATE)
2021
target_compile_options(react_nativemodule_devtoolsruntimesettings PRIVATE -Wpedantic)

packages/react-native/ReactCommon/react/nativemodule/devtoolsruntimesettings/DevToolsRuntimeSettingsModule.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 <devtoolsruntimesettings/DevToolsRuntimeSettings.h>
1113

1214
namespace facebook::react {

0 commit comments

Comments
 (0)