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: Quick fix to avoid imports from Swift chaining to Objective-C++ headers. Will follow up with a redesign. Changelog: [Internal] Differential Revision: D60960077
This commit is contained in:
committed by
Facebook GitHub Bot
parent
03c0e5e2af
commit
c97b52decb
@@ -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