Rename SonarCppBridgingConnection to FlipperCppBridgingConnection

Summary: Renames SonarCppBridgingConnection to FlipperCppBridgingConnection

Reviewed By: passy

Differential Revision: D9946932

fbshipit-source-id: 58437feba9164453f0bed54f9f57a6e578dceb73
This commit is contained in:
Pritesh Nandgaonkar
2018-09-20 04:27:06 -07:00
committed by Facebook Github Bot
parent 71458b97b3
commit 6ac6ac61e3
3 changed files with 6 additions and 6 deletions

View File

@@ -9,10 +9,10 @@
#import <FlipperKit/FlipperConnection.h> #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 that forwards messages to the underlying C++ connection. This class allows
pure Objective-C plugins to send messages to the underlying connection. 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; - (instancetype)initWithCppConnection:(std::shared_ptr<facebook::flipper::SonarConnection>)conn;
@end @end

View File

@@ -5,13 +5,13 @@
* file in the root directory of this source tree. * file in the root directory of this source tree.
* *
*/ */
#import "SonarCppBridgingConnection.h" #import "FlipperCppBridgingConnection.h"
#import <FBCxxUtils/FBCxxFollyDynamicConvert.h> #import <FBCxxUtils/FBCxxFollyDynamicConvert.h>
#import "SonarCppBridgingResponder.h" #import "SonarCppBridgingResponder.h"
@implementation SonarCppBridgingConnection @implementation FlipperCppBridgingConnection
{ {
std::shared_ptr<facebook::flipper::SonarConnection> conn_; std::shared_ptr<facebook::flipper::SonarConnection> conn_;
} }

View File

@@ -10,7 +10,7 @@
#endif #endif
#import <Sonar/SonarPlugin.h> #import <Sonar/SonarPlugin.h>
#import <FlipperKit/CppBridge/SonarCppBridgingConnection.h> #import <FlipperKit/CppBridge/FlipperCppBridgingConnection.h>
#import <FlipperKit/FlipperPlugin.h> #import <FlipperKit/FlipperPlugin.h>
namespace facebook { namespace facebook {
@@ -32,7 +32,7 @@ public:
void didConnect(std::shared_ptr<facebook::flipper::SonarConnection> conn) override 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]; [_objCPlugin didConnect:bridgingConn];
} }