mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Unbreak Swift build - guard C++ header in #ifdef __cplusplus (#45941)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45941 Quick fix to avoid imports from Swift chaining to Objective-C++ headers. Will follow up with a redesign. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D60960077 fbshipit-source-id: 4ce9507900196d5298c7885a99a5e4d786f76982
This commit is contained in:
committed by
Facebook GitHub Bot
parent
92dff73ba2
commit
c8acbf55c5
@@ -5,10 +5,12 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#import <jsinspector-modern/ReactCdp.h>
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#import <jsinspector-modern/ReactCdp.h>
|
||||
|
||||
typedef facebook::react::jsinspector_modern::NetworkRequestListener RCTInspectorNetworkListener;
|
||||
|
||||
typedef facebook::react::jsinspector_modern::ScopedExecutor<RCTInspectorNetworkListener> RCTInspectorNetworkExecutor;
|
||||
@@ -23,3 +25,5 @@ typedef facebook::react::jsinspector_modern::LoadNetworkResourceRequest RCTInspe
|
||||
- (void)loadNetworkResourceWithParams:(const RCTInspectorLoadNetworkResourceRequest &)params
|
||||
executor:(RCTInspectorNetworkExecutor)executor;
|
||||
@end
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user