diff --git a/iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SonarKitLayoutPlugin.mm b/iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SonarKitLayoutPlugin.mm index 71836e6cb..45c1f13fc 100644 --- a/iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SonarKitLayoutPlugin.mm +++ b/iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SonarKitLayoutPlugin.mm @@ -84,15 +84,15 @@ __weak SonarKitLayoutPlugin *weakSelf = self; [connection receive:@"getRoot" withBlock:^(NSDictionary *params, id responder) { - SonarPerformBlockOnMainThread(^{ [weakSelf onCallGetRoot: responder]; }); + FlipperPerformBlockOnMainThread(^{ [weakSelf onCallGetRoot: responder]; }); }]; [connection receive:@"getNodes" withBlock:^(NSDictionary *params, id responder) { - SonarPerformBlockOnMainThread(^{ [weakSelf onCallGetNodes: params[@"ids"] withResponder: responder]; }); + FlipperPerformBlockOnMainThread(^{ [weakSelf onCallGetNodes: params[@"ids"] withResponder: responder]; }); }]; [connection receive:@"setData" withBlock:^(NSDictionary *params, id responder) { - SonarPerformBlockOnMainThread(^{ + FlipperPerformBlockOnMainThread(^{ [weakSelf onCallSetData: params[@"id"] withPath: params[@"path"] toValue: params[@"value"] @@ -101,19 +101,19 @@ }]; [connection receive:@"setHighlighted" withBlock:^(NSDictionary *params, id responder) { - SonarPerformBlockOnMainThread(^{ [weakSelf onCallSetHighlighted: params[@"id"] withResponder: responder]; }); + FlipperPerformBlockOnMainThread(^{ [weakSelf onCallSetHighlighted: params[@"id"] withResponder: responder]; }); }]; [connection receive:@"setSearchActive" withBlock:^(NSDictionary *params, id responder) { - SonarPerformBlockOnMainThread(^{ [weakSelf onCallSetSearchActive: [params[@"active"] boolValue] withConnection: connection]; }); + FlipperPerformBlockOnMainThread(^{ [weakSelf onCallSetSearchActive: [params[@"active"] boolValue] withConnection: connection]; }); }]; [connection receive:@"isConsoleEnabled" withBlock:^(NSDictionary *params, id responder) { - SonarPerformBlockOnMainThread(^{ [responder success: @{@"isEnabled": @NO}];}); + FlipperPerformBlockOnMainThread(^{ [responder success: @{@"isEnabled": @NO}];}); }]; [connection receive:@"getSearchResults" withBlock:^(NSDictionary *params, id responder) { - SonarPerformBlockOnMainThread(^{ [weakSelf onCallGetSearchResults: params[@"query"] withResponder: responder]; }); + FlipperPerformBlockOnMainThread(^{ [weakSelf onCallGetSearchResults: params[@"query"] withResponder: responder]; }); }]; } diff --git a/iOS/SonarKit/FlipperPlugin.h b/iOS/SonarKit/FlipperPlugin.h index b1cb50f0d..6ad6deb32 100644 --- a/iOS/SonarKit/FlipperPlugin.h +++ b/iOS/SonarKit/FlipperPlugin.h @@ -10,7 +10,7 @@ #import "SKMacros.h" SK_EXTERN_C_BEGIN -void SonarPerformBlockOnMainThread(void(^block)()); +void FlipperPerformBlockOnMainThread(void(^block)()); SK_EXTERN_C_END @protocol FlipperConnection; diff --git a/iOS/SonarKit/SonarUtil.m b/iOS/SonarKit/FlipperUtil.m similarity index 87% rename from iOS/SonarKit/SonarUtil.m rename to iOS/SonarKit/FlipperUtil.m index 9517e7c3b..46e47177a 100644 --- a/iOS/SonarKit/SonarUtil.m +++ b/iOS/SonarKit/FlipperUtil.m @@ -8,7 +8,7 @@ #import #import "FlipperPlugin.h" -void SonarPerformBlockOnMainThread(void(^block)()) +void FlipperPerformBlockOnMainThread(void(^block)()) { if ([NSThread isMainThread]) { block();