Fix CocoaPods integration without DevSupport subspec

Summary:
This is the thing which is handled in https://github.com/orta/cocoapods-fix-react-native today.

89a78ad349/lib/cocoapods-fix-react-native/versions/0_55_3-post.rb (L140-L164)

This should be the correct fix for #17799.

<!--
  Required: Write your test plan here. If you changed any code, please provide us with
  clear instructions on how you verified your changes work. Bonus points for screenshots and videos!
-->

Integrating React Native into an existing iOS project using CocoaPods without `DevSupport` subspec and seeing if the project successfully compiles.

<!--
  Required.
  Help reviewers and the release process by writing your own release notes. See below for an example.
-->

[IOS] [BUGFIX] [DevSupport] - Fix CocoaPods integration without DevSupport subspec
Closes https://github.com/facebook/react-native/pull/19265

Differential Revision: D8149786

Pulled By: hramos

fbshipit-source-id: c665e463b76aacdfb2022e82e36eb381d2d9ff2b
This commit is contained in:
Sho Ikeda 2018-05-24 12:37:32 -07:00 коммит произвёл Facebook Github Bot
Родитель e1a36fcf7a
Коммит c09d509c2b
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -18,7 +18,6 @@
#import "RCTEventDispatcher.h"
#import "RCTJSCSamplingProfiler.h"
#import "RCTLog.h"
#import "RCTPackagerClient.h"
#import "RCTProfile.h"
#import "RCTUtils.h"
@ -35,6 +34,7 @@ static NSString *const kRCTDevSettingStartSamplingProfilerOnLaunch = @"startSamp
static NSString *const kRCTDevSettingsUserDefaultsKey = @"RCTDevMenu";
#if ENABLE_PACKAGER_CONNECTION
#import "RCTPackagerClient.h"
#import "RCTPackagerConnection.h"
#endif
@ -201,6 +201,7 @@ RCT_EXPORT_MODULE()
#endif
}
#if ENABLE_PACKAGER_CONNECTION
static void pokeSamplingProfiler(RCTBridge *const bridge, RCTPackagerClientResponder *const responder)
{
if (!bridge) {
@ -224,6 +225,7 @@ static void pokeSamplingProfiler(RCTBridge *const bridge, RCTPackagerClientRespo
[responder respondWithResult:results];
}
}
#endif
- (dispatch_queue_t)methodQueue
{