diff --git a/template/ios/HelloWorld/AppDelegate.m b/template/ios/HelloWorld/AppDelegate.m index 10b744eb01..4c93573a18 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 b8cf621ad1..d2308f1fa3 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)