mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Cover react/nativemodule/devtoolsruntimesettings with Stable API guards (#58122)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/58122 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] Reviewed By: cortinico Differential Revision: D117320628 fbshipit-source-id: 2f7b4c3ca5d1908775825b3ab7b4fb3d659baf41
This commit is contained in:
1 parent
ce621bbd5b
commit
db1d29e979
2 files changed
+3
No files matched your search
+1
@@ -15,6 +15,7 @@ target_include_directories(react_nativemodule_devtoolsruntimesettings PUBLIC ${R
|
||||
|
||||
target_link_libraries(react_nativemodule_devtoolsruntimesettings
|
||||
devtoolsruntimesettings
|
||||
react_cxxstableapi
|
||||
)
|
||||
target_compile_reactnative_options(react_nativemodule_devtoolsruntimesettings PRIVATE)
|
||||
target_compile_options(react_nativemodule_devtoolsruntimesettings PRIVATE -Wpedantic)
|
||||
+2
@@ -7,6 +7,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <react/cxxstableapi/PrivateGuard.h>
|
||||
|
||||
#include <devtoolsruntimesettings/DevToolsRuntimeSettings.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
Reference in new issue
Block a user