mirror of
https://github.com/status-im/react-native.git
synced 2025-01-24 00:09:08 +00:00
Fix ENABLE_INSPECTOR ifdef not found during dev
Reviewed By: bnham Differential Revision: D5680963 fbshipit-source-id: d38c4575387ba58e3819f5aa5c35078ed8ed3e87
This commit is contained in:
parent
0b17524134
commit
edf60ce640
@ -14,7 +14,7 @@
|
||||
|
||||
#import "RCTConvert.h"
|
||||
#import "RCTEventDispatcher.h"
|
||||
#if ENABLE_INSPECTOR
|
||||
#if RCT_ENABLE_INSPECTOR
|
||||
#import "RCTInspectorDevServerHelper.h"
|
||||
#endif
|
||||
#import "RCTJSEnvironment.h"
|
||||
@ -258,7 +258,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
|
||||
|
||||
- (void)reload
|
||||
{
|
||||
#if ENABLE_INSPECTOR
|
||||
#if RCT_ENABLE_INSPECTOR
|
||||
// Disable debugger to resume the JsVM & avoid thread locks while reloading
|
||||
[RCTInspectorDevServerHelper disableDebugger];
|
||||
#endif
|
||||
|
@ -48,6 +48,14 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef RCT_ENABLE_INSPECTOR
|
||||
#if RCT_DEV && __has_include(<React/RCTInspectorDevServerHelper.h>)
|
||||
#define RCT_ENABLE_INSPECTOR 1
|
||||
#else
|
||||
#define RCT_ENABLE_INSPECTOR 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if RCT_DEV
|
||||
#define RCT_IF_DEV(...) __VA_ARGS__
|
||||
#else
|
||||
|
@ -42,9 +42,7 @@ static NSString *const kRCTDevSettingsUserDefaultsKey = @"RCTDevMenu";
|
||||
#import "RCTPackagerConnection.h"
|
||||
#endif
|
||||
|
||||
#define ENABLE_INSPECTOR RCT_DEV && __has_include("RCTInspectorDevServerHelper.h")
|
||||
|
||||
#if ENABLE_INSPECTOR
|
||||
#if RCT_ENABLE_INSPECTOR
|
||||
#import "RCTInspectorDevServerHelper.h"
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user