Summarise state in iOS diagnostics

Summary:
V1 ios diagnostics complete.

This change adds a new section to the ios diagnostics screen that shows the current state of each step required to get sonar working.
The logs (transitions between states) are displayed below it.

SonarClient.mm is technically involved in the UI, by converting enums to emojis, I don't like this
but didn't get obj-C working with C enums so have left it like this for now.

Reviewed By: priteshrnandgaonkar

Differential Revision: D9378212

fbshipit-source-id: 091ce00e898a8038c680555123640b90d753fc09
This commit is contained in:
John Knox
2018-08-28 04:04:29 -07:00
committed by Facebook Github Bot
parent 364883f661
commit f99ef6996e
4 changed files with 109 additions and 20 deletions

View File

@@ -5,8 +5,9 @@
* file in the root directory of this source tree.
*
*/
#import <Foundation/Foundation.h>
#ifdef FB_SONARKIT_ENABLED
#import <Foundation/Foundation.h>
#import "SonarPlugin.h"
#import "FlipperStateUpdateListener.h"
@@ -47,10 +48,15 @@ Stop the connection to the Sonar desktop.
- (void)stop;
/**
Get the current state of the sonar client
Get the log of state changes from the sonar client
*/
- (NSString *)getState;
/**
Get the current summarized state of the sonar client
*/
- (NSArray<NSDictionary *> *)getStateElements;
/**
Subscribe a ViewController to state update change notifications
*/
@@ -61,3 +67,5 @@ Subscribe a ViewController to state update change notifications
+ (instancetype)new NS_UNAVAILABLE;
@end
#endif