From e8541e03f46f52b15fd8aecdb156e68d6a1262ea Mon Sep 17 00:00:00 2001 From: Ram N Date: Fri, 6 Sep 2019 19:38:16 -0700 Subject: [PATCH] Add React Dev tools to the default template Reviewed By: PeteTheHeat Differential Revision: D17222891 fbshipit-source-id: ea3ce9b2285f67dc01cd11c66ce4a41a4c4ea958 --- template/ios/HelloWorld/AppDelegate.m | 4 +++- template/ios/Podfile | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/template/ios/HelloWorld/AppDelegate.m b/template/ios/HelloWorld/AppDelegate.m index 10b744eb01f..4c93573a182 100644 --- a/template/ios/HelloWorld/AppDelegate.m +++ b/template/ios/HelloWorld/AppDelegate.m @@ -17,6 +17,7 @@ #import #import #import +#import #endif @implementation AppDelegate @@ -53,7 +54,8 @@ FlipperClient *client = [FlipperClient sharedClient]; SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; [client addPlugin: [[FlipperKitLayoutPlugin alloc] initWithRootNode: application withDescriptorMapper: layoutDescriptorMapper]]; - [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; [client start]; + [client addPlugin: [[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; + [client addPlugin: [FlipperKitReactPlugin new]]; [client addPlugin: [[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; [client start]; #endif diff --git a/template/ios/Podfile b/template/ios/Podfile index b8cf621ad11..d2308f1fa32 100644 --- a/template/ios/Podfile +++ b/template/ios/Podfile @@ -3,11 +3,12 @@ require_relative '../node_modules/@react-native-community/cli-platform-ios/nativ # Add Flipper Poods def flipper_pods() - flipperkit_version = '0.23.4' + flipperkit_version = '0.23.6' pod 'FlipperKit', '~>' + flipperkit_version, :configuration => 'Debug' pod 'FlipperKit/FlipperKitLayoutPlugin', '~>' + flipperkit_version, :configuration => 'Debug' pod 'FlipperKit/SKIOSNetworkPlugin', '~>' + flipperkit_version, :configuration => 'Debug' pod 'FlipperKit/FlipperKitUserDefaultsPlugin', '~>' + flipperkit_version, :configuration => 'Debug' + pod 'FlipperKit/FlipperKitReactPlugin', '~>' + flipperkit_version, :configuration => 'Debug' end # Post Install processing for Flipper @@ -77,8 +78,8 @@ target 'HelloWorld' do use_native_modules! # For enabling Flipper. - # Note that if you use_framework!, flipper will no work. - # Disable these lines if you are doing use_framework! + # Note that if you use_framework!, flipper will no work. + # Disable these lines if you are doing use_framework! flipper_pods() post_install do |installer| flipper_post_install(installer)