File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -252,6 +252,7 @@ val preparePrefab by
252252 " react/renderer/leakchecker/" ,
253253 ),
254254 Pair (" ../ReactCommon/react/renderer/mapbuffer/" , " react/renderer/mapbuffer/" ),
255+ Pair (" ../ReactCommon/react/renderer/mapbuffer/React/" , " React/" ),
255256 Pair (" ../ReactCommon/react/renderer/mounting/" , " react/renderer/mounting/" ),
256257 Pair (
257258 " ../ReactCommon/react/renderer/runtimescheduler/" ,
Original file line number Diff line number Diff line change @@ -26,14 +26,21 @@ Pod::Spec.new do |s|
2626 s . platforms = min_supported_versions
2727 s . source = source
2828 s . source_files = podspec_sources ( "react/renderer/mapbuffer/*.{cpp,h}" , "react/renderer/mapbuffer/*.h" )
29- s . exclude_files = "react/renderer/mapbuffer/tests"
29+ s . exclude_files = [ "react/renderer/mapbuffer/tests" , "react/renderer/mapbuffer/React" ]
3030 s . public_header_files = 'react/renderer/mapbuffer/*.h'
3131 s . header_dir = "react/renderer/mapbuffer"
3232 s . pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => [ "\" $(PODS_TARGET_SRCROOT)\" " ] , "USE_HEADERMAP" => "YES" ,
3333 "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard ( ) }
3434
35+ s . subspec "MapBufferUmbrella" do |ss |
36+ ss . source_files = "react/renderer/mapbuffer/React/*.h"
37+ ss . header_dir = "React"
38+ ss . header_mappings_dir = "react/renderer/mapbuffer/React"
39+ end
40+
3541 resolve_use_frameworks ( s , header_mappings_dir : './' , module_name : "React_Mapbuffer" )
3642
43+ s . dependency "React-cxxstableapi"
3744 add_dependency ( s , "React-debug" )
3845 add_rn_third_party_dependencies ( s )
3946 add_rncore_dependency ( s )
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ file(GLOB react_renderer_mapbuffer_SRC CONFIGURE_DEPENDS *.cpp)
1111add_library (react_renderer_mapbuffer OBJECT ${react_renderer_mapbuffer_SRC} )
1212
1313target_include_directories (react_renderer_mapbuffer PUBLIC ${REACT_COMMON_DIR} )
14- target_link_libraries (react_renderer_mapbuffer glog glog_init react_debug )
14+ target_link_libraries (react_renderer_mapbuffer glog glog_init react_cxxstableapi react_debug )
1515target_compile_reactnative_options (react_renderer_mapbuffer PRIVATE )
1616target_compile_options (react_renderer_mapbuffer PRIVATE -Wpedantic )
Original file line number Diff line number Diff line change 77
88#pragma once
99
10+ #include < react/cxxstableapi/UmbrellaGuard.h>
1011#include < react/debug/react_native_assert.h>
1112
1213#include < glog/logging.h>
Original file line number Diff line number Diff line change 77
88#pragma once
99
10+ #include < react/cxxstableapi/UmbrellaGuard.h>
1011#include < react/debug/react_native_assert.h>
1112#include < vector>
1213#include " MapBuffer.h"
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3+ *
4+ * This source code is licensed under the MIT license found in the
5+ * LICENSE file in the root directory of this source tree.
6+ */
7+
8+ #pragma once
9+
10+ // =============================================================================
11+ // Umbrella header for the `react/renderer/mapbuffer` module - public entry point.
12+ //
13+ // #include <React/MapBuffer.h>
14+ //
15+ // Re-exports the module's public interface headers. React Native's own code
16+ // should keep using the fine-grained `<react/renderer/mapbuffer/...>` includes;
17+ // only outside consumers use this umbrella.
18+ // =============================================================================
19+
20+ // Marks that the following headers are pulled in through the umbrella, so their
21+ // shared guard (<react/cxxstableapi/UmbrellaGuard.h>) accepts them.
22+ #define RN_UMBRELLA_CONTEXT
23+
24+ #include <react/renderer/mapbuffer/MapBuffer.h>
25+ #include <react/renderer/mapbuffer/MapBufferBuilder.h>
26+
27+ #undef RN_UMBRELLA_CONTEXT
Original file line number Diff line number Diff line change @@ -466,6 +466,22 @@ const PodspecExceptions /*: {[key: string]: PodSpecConfiguration} */ = {
466466 } ,
467467 ] ,
468468 } ,
469+ 'ReactCommon/React-Mapbuffer.podspec' : {
470+ name : 'React-Mapbuffer' ,
471+ headerPatterns : [ 'react/renderer/mapbuffer/**/*.h' ] ,
472+ excludePatterns : [
473+ 'react/renderer/mapbuffer/tests' ,
474+ 'react/renderer/mapbuffer/React' ,
475+ ] ,
476+ headerDir : 'react/renderer/mapbuffer' ,
477+ subSpecs : [
478+ {
479+ name : 'MapBufferUmbrella' ,
480+ headerPatterns : [ 'react/renderer/mapbuffer/React/*.h' ] ,
481+ headerDir : 'React' ,
482+ } ,
483+ ] ,
484+ } ,
469485 'ReactCommon/React-FabricImage.podspec' : {
470486 name : 'React-FabricImage' ,
471487 headerPatterns : [ 'react/renderer/components/image/**/*.h' ] ,
You can’t perform that action at this time.
0 commit comments