mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Reland Bridging umbrella in generated modules (#58558)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/58558 Generate TurboModule interfaces using the public Bridging C++ entry point so generated consumers remain compatible with the strict API boundary. Export the bridging module include root from its CMake target so source-built consumers can resolve <React/Bridging.h>. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D120357994 fbshipit-source-id: 072d67197daf19acffbb66c110833a10a7094cfb
This commit is contained in:
1 parent
b439ef7c3f
commit
8de8e08db0
4 files changed
+17
-16
No files matched your search
+2
-2
@@ -13,7 +13,7 @@ exports[`GenerateModuleH can generate a header file NativeModule specs 1`] = `
|
||||
#pragma once
|
||||
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
#include <react/bridging/Bridging.h>
|
||||
#include <React/Bridging.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
@@ -1610,7 +1610,7 @@ exports[`GenerateModuleH can generate a header file NativeModule specs with assu
|
||||
#pragma once
|
||||
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
#include <react/bridging/Bridging.h>
|
||||
#include <React/Bridging.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
|
||||
@@ -213,7 +213,7 @@ const FileTemplate = ({
|
||||
#pragma once
|
||||
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
#include <react/bridging/Bridging.h>
|
||||
#include <React/Bridging.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
|
||||
+13
-13
@@ -14,7 +14,7 @@ Map {
|
||||
#pragma once
|
||||
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
#include <react/bridging/Bridging.h>
|
||||
#include <React/Bridging.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
@@ -52,7 +52,7 @@ Map {
|
||||
#pragma once
|
||||
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
#include <react/bridging/Bridging.h>
|
||||
#include <React/Bridging.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
@@ -113,7 +113,7 @@ Map {
|
||||
#pragma once
|
||||
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
#include <react/bridging/Bridging.h>
|
||||
#include <React/Bridging.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
@@ -156,7 +156,7 @@ Map {
|
||||
#pragma once
|
||||
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
#include <react/bridging/Bridging.h>
|
||||
#include <React/Bridging.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
@@ -253,7 +253,7 @@ Map {
|
||||
#pragma once
|
||||
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
#include <react/bridging/Bridging.h>
|
||||
#include <React/Bridging.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
@@ -972,7 +972,7 @@ Map {
|
||||
#pragma once
|
||||
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
#include <react/bridging/Bridging.h>
|
||||
#include <React/Bridging.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
@@ -1010,7 +1010,7 @@ Map {
|
||||
#pragma once
|
||||
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
#include <react/bridging/Bridging.h>
|
||||
#include <React/Bridging.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
@@ -1175,7 +1175,7 @@ Map {
|
||||
#pragma once
|
||||
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
#include <react/bridging/Bridging.h>
|
||||
#include <React/Bridging.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
@@ -1297,7 +1297,7 @@ Map {
|
||||
#pragma once
|
||||
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
#include <react/bridging/Bridging.h>
|
||||
#include <React/Bridging.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
@@ -1834,7 +1834,7 @@ Map {
|
||||
#pragma once
|
||||
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
#include <react/bridging/Bridging.h>
|
||||
#include <React/Bridging.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
@@ -2050,7 +2050,7 @@ Map {
|
||||
#pragma once
|
||||
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
#include <react/bridging/Bridging.h>
|
||||
#include <React/Bridging.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
@@ -2101,7 +2101,7 @@ Map {
|
||||
#pragma once
|
||||
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
#include <react/bridging/Bridging.h>
|
||||
#include <React/Bridging.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
@@ -2172,7 +2172,7 @@ Map {
|
||||
#pragma once
|
||||
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
#include <react/bridging/Bridging.h>
|
||||
#include <React/Bridging.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ file(GLOB react_bridging_SRC CONFIGURE_DEPENDS *.cpp)
|
||||
add_library(react_bridging OBJECT ${react_bridging_SRC})
|
||||
|
||||
target_include_directories(react_bridging PUBLIC ${REACT_COMMON_DIR})
|
||||
target_include_directories(react_bridging INTERFACE ${REACT_COMMON_DIR}/react/bridging)
|
||||
|
||||
target_link_libraries(react_bridging jsi callinvoker react_cxxstableapi react_timing)
|
||||
target_compile_reactnative_options(react_bridging PRIVATE)
|
||||
|
||||
Reference in new issue
Block a user