Skip to content

Commit

Permalink
Fix CocoaPods integration without DevSupport subspec
Browse files Browse the repository at this point in the history
This is the thing which is handled in https://github.com/orta/cocoapods-fix-react-native today.
  • Loading branch information
ikesyo committed May 24, 2018
1 parent e1a36fc commit ed6b8ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion React/Modules/RCTDevSettings.mm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#import "RCTEventDispatcher.h"
#import "RCTJSCSamplingProfiler.h"
#import "RCTLog.h"
#import "RCTPackagerClient.h"
#import "RCTProfile.h"
#import "RCTUtils.h"

Expand All @@ -35,6 +34,7 @@
static NSString *const kRCTDevSettingsUserDefaultsKey = @"RCTDevMenu";

#if ENABLE_PACKAGER_CONNECTION
#import "RCTPackagerClient.h"
#import "RCTPackagerConnection.h"
#endif

Expand Down Expand Up @@ -201,6 +201,7 @@ - (void)setBridge:(RCTBridge *)bridge
#endif
}

#if ENABLE_PACKAGER_CONNECTION
static void pokeSamplingProfiler(RCTBridge *const bridge, RCTPackagerClientResponder *const responder)
{
if (!bridge) {
Expand All @@ -224,6 +225,7 @@ static void pokeSamplingProfiler(RCTBridge *const bridge, RCTPackagerClientRespo
[responder respondWithResult:results];
}
}
#endif

- (dispatch_queue_t)methodQueue
{
Expand Down

0 comments on commit ed6b8ff

Please sign in to comment.