Rename SonarUtil file and method to Flipper
Summary: Rename SonarUtil file and method to Flipper Reviewed By: passy Differential Revision: D9920194 fbshipit-source-id: 3d1e360ccce613b7fbba10fb6b1fcaf0f15442a7
This commit is contained in:
committed by
Facebook Github Bot
parent
bc4e6705b7
commit
ab00f3360e
@@ -84,15 +84,15 @@
|
|||||||
__weak SonarKitLayoutPlugin *weakSelf = self;
|
__weak SonarKitLayoutPlugin *weakSelf = self;
|
||||||
|
|
||||||
[connection receive:@"getRoot" withBlock:^(NSDictionary *params, id<SonarResponder> responder) {
|
[connection receive:@"getRoot" withBlock:^(NSDictionary *params, id<SonarResponder> responder) {
|
||||||
SonarPerformBlockOnMainThread(^{ [weakSelf onCallGetRoot: responder]; });
|
FlipperPerformBlockOnMainThread(^{ [weakSelf onCallGetRoot: responder]; });
|
||||||
}];
|
}];
|
||||||
|
|
||||||
[connection receive:@"getNodes" withBlock:^(NSDictionary *params, id<SonarResponder> responder) {
|
[connection receive:@"getNodes" withBlock:^(NSDictionary *params, id<SonarResponder> responder) {
|
||||||
SonarPerformBlockOnMainThread(^{ [weakSelf onCallGetNodes: params[@"ids"] withResponder: responder]; });
|
FlipperPerformBlockOnMainThread(^{ [weakSelf onCallGetNodes: params[@"ids"] withResponder: responder]; });
|
||||||
}];
|
}];
|
||||||
|
|
||||||
[connection receive:@"setData" withBlock:^(NSDictionary *params, id<SonarResponder> responder) {
|
[connection receive:@"setData" withBlock:^(NSDictionary *params, id<SonarResponder> responder) {
|
||||||
SonarPerformBlockOnMainThread(^{
|
FlipperPerformBlockOnMainThread(^{
|
||||||
[weakSelf onCallSetData: params[@"id"]
|
[weakSelf onCallSetData: params[@"id"]
|
||||||
withPath: params[@"path"]
|
withPath: params[@"path"]
|
||||||
toValue: params[@"value"]
|
toValue: params[@"value"]
|
||||||
@@ -101,19 +101,19 @@
|
|||||||
}];
|
}];
|
||||||
|
|
||||||
[connection receive:@"setHighlighted" withBlock:^(NSDictionary *params, id<SonarResponder> responder) {
|
[connection receive:@"setHighlighted" withBlock:^(NSDictionary *params, id<SonarResponder> responder) {
|
||||||
SonarPerformBlockOnMainThread(^{ [weakSelf onCallSetHighlighted: params[@"id"] withResponder: responder]; });
|
FlipperPerformBlockOnMainThread(^{ [weakSelf onCallSetHighlighted: params[@"id"] withResponder: responder]; });
|
||||||
}];
|
}];
|
||||||
|
|
||||||
[connection receive:@"setSearchActive" withBlock:^(NSDictionary *params, id<SonarResponder> responder) {
|
[connection receive:@"setSearchActive" withBlock:^(NSDictionary *params, id<SonarResponder> responder) {
|
||||||
SonarPerformBlockOnMainThread(^{ [weakSelf onCallSetSearchActive: [params[@"active"] boolValue] withConnection: connection]; });
|
FlipperPerformBlockOnMainThread(^{ [weakSelf onCallSetSearchActive: [params[@"active"] boolValue] withConnection: connection]; });
|
||||||
}];
|
}];
|
||||||
|
|
||||||
[connection receive:@"isConsoleEnabled" withBlock:^(NSDictionary *params, id<SonarResponder> responder) {
|
[connection receive:@"isConsoleEnabled" withBlock:^(NSDictionary *params, id<SonarResponder> responder) {
|
||||||
SonarPerformBlockOnMainThread(^{ [responder success: @{@"isEnabled": @NO}];});
|
FlipperPerformBlockOnMainThread(^{ [responder success: @{@"isEnabled": @NO}];});
|
||||||
}];
|
}];
|
||||||
|
|
||||||
[connection receive:@"getSearchResults" withBlock:^(NSDictionary *params, id<SonarResponder> responder) {
|
[connection receive:@"getSearchResults" withBlock:^(NSDictionary *params, id<SonarResponder> responder) {
|
||||||
SonarPerformBlockOnMainThread(^{ [weakSelf onCallGetSearchResults: params[@"query"] withResponder: responder]; });
|
FlipperPerformBlockOnMainThread(^{ [weakSelf onCallGetSearchResults: params[@"query"] withResponder: responder]; });
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#import "SKMacros.h"
|
#import "SKMacros.h"
|
||||||
|
|
||||||
SK_EXTERN_C_BEGIN
|
SK_EXTERN_C_BEGIN
|
||||||
void SonarPerformBlockOnMainThread(void(^block)());
|
void FlipperPerformBlockOnMainThread(void(^block)());
|
||||||
SK_EXTERN_C_END
|
SK_EXTERN_C_END
|
||||||
|
|
||||||
@protocol FlipperConnection;
|
@protocol FlipperConnection;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import "FlipperPlugin.h"
|
#import "FlipperPlugin.h"
|
||||||
|
|
||||||
void SonarPerformBlockOnMainThread(void(^block)())
|
void FlipperPerformBlockOnMainThread(void(^block)())
|
||||||
{
|
{
|
||||||
if ([NSThread isMainThread]) {
|
if ([NSThread isMainThread]) {
|
||||||
block();
|
block();
|
||||||
Reference in New Issue
Block a user