Rename iOS SonarConnection to FlipperConnection
Summary: Rename iOS SonarConnection to FlipperConnection Reviewed By: jknoxville Differential Revision: D9916509 fbshipit-source-id: 7253ab37f5ab28dc8063fb6b3765afd1c2aee645
This commit is contained in:
committed by
Facebook Github Bot
parent
f970e60edd
commit
fdc4f7a5c8
@@ -6,13 +6,13 @@
|
||||
*
|
||||
*/
|
||||
#import <Sonar/SonarConnection.h>
|
||||
#import <SonarKit/SonarConnection.h>
|
||||
#import <SonarKit/FlipperConnection.h>
|
||||
|
||||
/**
|
||||
SonarCppBridgingConnection is a simple ObjC wrapper around SonarConnection
|
||||
that forwards messages to the underlying C++ connection. This class allows
|
||||
pure Objective-C plugins to send messages to the underlying connection.
|
||||
*/
|
||||
@interface SonarCppBridgingConnection : NSObject <SonarConnection>
|
||||
@interface SonarCppBridgingConnection : NSObject <FlipperConnection>
|
||||
- (instancetype)initWithCppConnection:(std::shared_ptr<facebook::flipper::SonarConnection>)conn;
|
||||
@end
|
||||
|
||||
@@ -15,7 +15,7 @@ typedef void (^SonarReceiver)(NSDictionary*, id<SonarResponder>);
|
||||
/**
|
||||
Represents a connection between the Desktop and mobile plugins with corresponding identifiers.
|
||||
*/
|
||||
@protocol SonarConnection
|
||||
@protocol FlipperConnection
|
||||
|
||||
/**
|
||||
Invoke a method on the Sonar desktop plugin with with a matching identifier.
|
||||
@@ -13,7 +13,7 @@ SK_EXTERN_C_BEGIN
|
||||
void SonarPerformBlockOnMainThread(void(^block)());
|
||||
SK_EXTERN_C_END
|
||||
|
||||
@protocol SonarConnection;
|
||||
@protocol FlipperConnection;
|
||||
|
||||
@protocol FlipperPlugin
|
||||
|
||||
@@ -28,7 +28,7 @@ Called when a connection has been established between this plugin and the corres
|
||||
the Sonar desktop app. The provided connection can be used to register method receivers as well
|
||||
as send messages back to the desktop app.
|
||||
*/
|
||||
- (void)didConnect:(id<SonarConnection>)connection;
|
||||
- (void)didConnect:(id<FlipperConnection>)connection;
|
||||
|
||||
/**
|
||||
Called when a plugin has been disconnected and the SonarConnection provided in didConnect is no
|
||||
|
||||
Reference in New Issue
Block a user