mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Cover react/renderer/consistency:consistency with Stable API guards (#58046)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/58046 Classifies `react/renderer/consistency:consistency` as a private target under the C++ stable API three-tier visibility model. Adds `#include <react/cxxstableapi/PrivateGuard.h>` to both headers in the module and declares the guard dependency in BUCK, CMake and the podspec. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D116601683 fbshipit-source-id: 51d9e197dc44396f60f6349d853b0a48d00f50d0
This commit is contained in:
1 parent
f2d65961c5
commit
bc64b2665d
4 files changed
+8
No files matched your search
@@ -12,5 +12,7 @@ file(GLOB react_renderer_consistency_SRC CONFIGURE_DEPENDS *.cpp)
|
||||
add_library(react_renderer_consistency OBJECT ${react_renderer_consistency_SRC})
|
||||
|
||||
target_include_directories(react_renderer_consistency PUBLIC ${REACT_COMMON_DIR})
|
||||
|
||||
target_link_libraries(react_renderer_consistency react_cxxstableapi)
|
||||
target_compile_reactnative_options(react_renderer_consistency PRIVATE)
|
||||
target_compile_options(react_renderer_consistency PRIVATE -Wpedantic)
|
||||
+2
@@ -40,5 +40,7 @@ Pod::Spec.new do |s|
|
||||
|
||||
resolve_use_frameworks(s, header_mappings_dir: "../../..", module_name: "React_rendererconsistency")
|
||||
|
||||
s.dependency "React-cxxstableapi"
|
||||
|
||||
mark_as_react_native_build(s)
|
||||
end
|
||||
+2
@@ -7,6 +7,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <react/cxxstableapi/PrivateGuard.h>
|
||||
|
||||
#include <react/renderer/consistency/ShadowTreeRevisionConsistencyManager.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
+2
@@ -7,6 +7,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <react/cxxstableapi/PrivateGuard.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user