Run CLANGFORMAT on FlipperKit folder
Summary: This diff runs CLANGFORMAT lint on FlipperKit. I have added CLANGFORMAT as the lint engined for objc files in xplat/sonar. Right now the iOS folder is not formatted according to CLANGFORMAT. Ran `arc lint -a --paths-cmd "find ./iOS/FlipperKit -type f" --verbose` Reviewed By: passy Differential Revision: D19942170 fbshipit-source-id: af677323af4edb761f61f8f7e289cab743aa31f2
This commit is contained in:
committed by
Facebook Github Bot
parent
127eec5fa1
commit
ca513cf370
@@ -12,30 +12,32 @@
|
||||
#import "FlipperStateUpdateListener.h"
|
||||
|
||||
/**
|
||||
Represents a connection between the Sonar desktop och client side. Manages the lifecycle of attached
|
||||
plugin instances.
|
||||
Represents a connection between the Sonar desktop och client side. Manages the
|
||||
lifecycle of attached plugin instances.
|
||||
*/
|
||||
@interface FlipperClient : NSObject
|
||||
|
||||
/**
|
||||
The shared singleton FlipperClient instance. It is an error to call this on non-debug builds to avoid leaking data.
|
||||
The shared singleton FlipperClient instance. It is an error to call this on
|
||||
non-debug builds to avoid leaking data.
|
||||
*/
|
||||
+ (instancetype)sharedClient;
|
||||
|
||||
/**
|
||||
Register a plugin with the client.
|
||||
*/
|
||||
- (void)addPlugin:(NSObject<FlipperPlugin> *)plugin;
|
||||
- (void)addPlugin:(NSObject<FlipperPlugin>*)plugin;
|
||||
|
||||
/**
|
||||
Unregister a plugin with the client.
|
||||
*/
|
||||
- (void)removePlugin:(NSObject<FlipperPlugin> *)plugin;
|
||||
- (void)removePlugin:(NSObject<FlipperPlugin>*)plugin;
|
||||
|
||||
/**
|
||||
Retrieve the plugin with a given identifier which was previously registered with this client.
|
||||
Retrieve the plugin with a given identifier which was previously registered with
|
||||
this client.
|
||||
*/
|
||||
- (NSObject<FlipperPlugin> *)pluginWithIdentifier:(NSString *)identifier;
|
||||
- (NSObject<FlipperPlugin>*)pluginWithIdentifier:(NSString*)identifier;
|
||||
|
||||
/**
|
||||
Establish a connection to the Sonar desktop.
|
||||
@@ -50,19 +52,20 @@ Stop the connection to the Sonar desktop.
|
||||
/**
|
||||
Get the log of state changes from the sonar client
|
||||
*/
|
||||
- (NSString *)getState;
|
||||
- (NSString*)getState;
|
||||
|
||||
/**
|
||||
Get the current summarized state of the sonar client
|
||||
*/
|
||||
- (NSArray<NSDictionary *> *)getStateElements;
|
||||
- (NSArray<NSDictionary*>*)getStateElements;
|
||||
|
||||
/**
|
||||
Subscribe a ViewController to state update change notifications
|
||||
*/
|
||||
- (void)subscribeForUpdates:(id<FlipperStateUpdateListener>)controller;
|
||||
|
||||
// initializers are disabled. You must use `+[FlipperClient sharedClient]` instance.
|
||||
// initializers are disabled. You must use `+[FlipperClient sharedClient]`
|
||||
// instance.
|
||||
- (instancetype)init NS_UNAVAILABLE;
|
||||
+ (instancetype)new NS_UNAVAILABLE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user