mirror of
https://github.com/react/react-native.git
synced 2026-09-29 16:58:04 +08:00
Cover react/nativemodule/defaults:defaults with Stable API guards (#58118)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/58118 Classifies `react/nativemodule/defaults` as a private target under the three-tier C++ stable API visibility model. `DefaultTurboModules.h` now includes `<react/cxxstableapi/PrivateGuard.h>`, and the module picks up a dependency on the guard target so the include resolves for every build. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D116287984 fbshipit-source-id: c0018bba702b7885cd4acac744625c5e2d42dd35
This commit is contained in:
committed by
meta-codesync[bot]
parent
70f172d29f
commit
e988b12176
@@ -15,6 +15,7 @@ target_include_directories(react_nativemodule_defaults PUBLIC ${REACT_COMMON_DIR
|
||||
|
||||
target_link_libraries(react_nativemodule_defaults
|
||||
react_codegen_rncore
|
||||
react_cxxstableapi
|
||||
react_nativemodule_core
|
||||
react_nativemodule_dom
|
||||
react_nativemodule_devtoolsruntimesettings
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#include <react/cxxstableapi/PrivateGuard.h>
|
||||
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
+1
@@ -58,6 +58,7 @@ Pod::Spec.new do |s|
|
||||
s.dependency "React-viewtransitionnativemodule"
|
||||
s.dependency "React-webperformancenativemodule"
|
||||
s.dependency "React-Fabric/animated"
|
||||
s.dependency "React-cxxstableapi"
|
||||
add_dependency(s, "React-RCTFBReactNativeSpec")
|
||||
add_dependency(s, "React-featureflags")
|
||||
add_dependency(s, "React-featureflagsnativemodule")
|
||||
|
||||
Reference in New Issue
Block a user