Rename SonarResponder to FlipperResponder
Summary: Rename SonarResponder to FlipperResponder Reviewed By: passy Differential Revision: D9939713 fbshipit-source-id: 6792ec6529907ee98a070af9e26064bb5fcc07ef
This commit is contained in:
committed by
Facebook Github Bot
parent
0e753e684f
commit
79b2cf712d
@@ -6,13 +6,13 @@
|
||||
*
|
||||
*/
|
||||
#import <Sonar/FlipperResponder.h>
|
||||
#import <FlipperKit/SonarResponder.h>
|
||||
#import <FlipperKit/FlipperResponder.h>
|
||||
|
||||
/**
|
||||
SonarCppBridgingResponder is a simple ObjC wrapper around SonarResponder
|
||||
SonarCppBridgingResponder is a simple ObjC wrapper around FlipperResponder
|
||||
that forwards messages to the underlying C++ responder. This class allows
|
||||
pure Objective-C plugins to send messages to the underlying responder.
|
||||
*/
|
||||
@interface SonarCppBridgingResponder : NSObject <SonarResponder>
|
||||
@interface SonarCppBridgingResponder : NSObject <FlipperResponder>
|
||||
- (instancetype)initWithCppResponder:(std::unique_ptr<facebook::flipper::FlipperResponder>)responder;
|
||||
@end
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
return self;
|
||||
}
|
||||
|
||||
#pragma mark - SonarResponder
|
||||
#pragma mark - FlipperResponder
|
||||
|
||||
- (void)success:(NSDictionary *)response { responder_->success(facebook::cxxutils::convertIdToFollyDynamic(response, true)); }
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
*/
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@protocol SonarResponder;
|
||||
@protocol FlipperResponder;
|
||||
@protocol SonarWebSocket;
|
||||
|
||||
typedef void (^SonarReceiver)(NSDictionary*, id<SonarResponder>);
|
||||
typedef void (^SonarReceiver)(NSDictionary*, id<FlipperResponder>);
|
||||
|
||||
/**
|
||||
Represents a connection between the Desktop and mobile plugins with corresponding identifiers.
|
||||
|
||||
25
iOS/FlipperKit/FlipperResponder.h
Normal file
25
iOS/FlipperKit/FlipperResponder.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (c) 2018-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the LICENSE
|
||||
* file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
/**
|
||||
Acts as a hook for providing return values to remote called from Sonar desktop plugins.
|
||||
*/
|
||||
@protocol FlipperResponder
|
||||
|
||||
/**
|
||||
Respond with a successful return value.
|
||||
*/
|
||||
- (void)success:(NSDictionary *)response;
|
||||
|
||||
/**
|
||||
Respond with an error.
|
||||
*/
|
||||
- (void)error:(NSDictionary *)response;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user