Rename SonarCppBridgingConnection to FlipperCppBridgingConnection
Summary: Renames SonarCppBridgingConnection to FlipperCppBridgingConnection Reviewed By: passy Differential Revision: D9946932 fbshipit-source-id: 58437feba9164453f0bed54f9f57a6e578dceb73
This commit is contained in:
committed by
Facebook Github Bot
parent
71458b97b3
commit
6ac6ac61e3
@@ -9,10 +9,10 @@
|
||||
#import <FlipperKit/FlipperConnection.h>
|
||||
|
||||
/**
|
||||
SonarCppBridgingConnection is a simple ObjC wrapper around SonarConnection
|
||||
FlipperCppBridgingConnection 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 <FlipperConnection>
|
||||
@interface FlipperCppBridgingConnection : NSObject <FlipperConnection>
|
||||
- (instancetype)initWithCppConnection:(std::shared_ptr<facebook::flipper::SonarConnection>)conn;
|
||||
@end
|
||||
@@ -5,13 +5,13 @@
|
||||
* file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
#import "SonarCppBridgingConnection.h"
|
||||
#import "FlipperCppBridgingConnection.h"
|
||||
|
||||
#import <FBCxxUtils/FBCxxFollyDynamicConvert.h>
|
||||
|
||||
#import "SonarCppBridgingResponder.h"
|
||||
|
||||
@implementation SonarCppBridgingConnection
|
||||
@implementation FlipperCppBridgingConnection
|
||||
{
|
||||
std::shared_ptr<facebook::flipper::SonarConnection> conn_;
|
||||
}
|
||||
@@ -10,7 +10,7 @@
|
||||
#endif
|
||||
|
||||
#import <Sonar/SonarPlugin.h>
|
||||
#import <FlipperKit/CppBridge/SonarCppBridgingConnection.h>
|
||||
#import <FlipperKit/CppBridge/FlipperCppBridgingConnection.h>
|
||||
#import <FlipperKit/FlipperPlugin.h>
|
||||
|
||||
namespace facebook {
|
||||
@@ -32,7 +32,7 @@ public:
|
||||
|
||||
void didConnect(std::shared_ptr<facebook::flipper::SonarConnection> conn) override
|
||||
{
|
||||
SonarCppBridgingConnection *const bridgingConn = [[SonarCppBridgingConnection alloc] initWithCppConnection:conn];
|
||||
FlipperCppBridgingConnection *const bridgingConn = [[FlipperCppBridgingConnection alloc] initWithCppConnection:conn];
|
||||
[_objCPlugin didConnect:bridgingConn];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user