Created
August 13, 2019 20:40
-
-
Save janicduplessis/b2006ce0a63f73f9b6da16c47474c141 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
#if DEBUG | |
#import <FlipperKit/FlipperClient.h> | |
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h> | |
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h> | |
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h> | |
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h> | |
#endif | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
#if DEBUG | |
FlipperClient *client = [FlipperClient sharedClient]; | |
SKDescriptorMapper *mapper = [[SKDescriptorMapper alloc] initWithDefaults]; | |
[client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:mapper]]; | |
[client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; [client start]; | |
[client addPlugin: [[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; | |
[client start]; | |
#endif | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
pod 'FlipperKit', :configurations => ['Debug'] | |
pod 'FlipperKit/FlipperKitLayoutPlugin', :configurations => ['Debug'] | |
pod 'FlipperKit/SKIOSNetworkPlugin', :configurations => ['Debug'] | |
pod 'FlipperKit/FlipperKitUserDefaultsPlugin', :configurations => ['Debug'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment