Rename all The c++ JNI classes
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/272 Reviewed By: passy Differential Revision: D9861432 Pulled By: jknoxville fbshipit-source-id: 523b8fc28541b922bbcc0939514f4ddd0a3fc1b0
This commit is contained in:
committed by
Facebook Github Bot
parent
a480be90a2
commit
9d9fa17134
@@ -34,7 +34,7 @@
|
||||
- (void)receive:(NSString *)method withBlock:(SonarReceiver)receiver
|
||||
{
|
||||
const auto lambda = [receiver](const folly::dynamic &message,
|
||||
std::unique_ptr<facebook::flipper::SonarResponder> responder) {
|
||||
std::unique_ptr<facebook::flipper::FlipperResponder> responder) {
|
||||
@autoreleasepool {
|
||||
SonarCppBridgingResponder *const objCResponder =
|
||||
[[SonarCppBridgingResponder alloc] initWithCppResponder:std::move(responder)];
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
#import <Sonar/SonarResponder.h>
|
||||
#import <Sonar/FlipperResponder.h>
|
||||
#import <SonarKit/SonarResponder.h>
|
||||
|
||||
/**
|
||||
@@ -14,5 +14,5 @@ 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>
|
||||
- (instancetype)initWithCppResponder:(std::unique_ptr<facebook::flipper::SonarResponder>)responder;
|
||||
- (instancetype)initWithCppResponder:(std::unique_ptr<facebook::flipper::FlipperResponder>)responder;
|
||||
@end
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
#import <FBCxxUtils/FBCxxFollyDynamicConvert.h>
|
||||
|
||||
@implementation SonarCppBridgingResponder {
|
||||
std::unique_ptr<facebook::flipper::SonarResponder> responder_;
|
||||
std::unique_ptr<facebook::flipper::FlipperResponder> responder_;
|
||||
}
|
||||
|
||||
- (instancetype)initWithCppResponder:(std::unique_ptr<facebook::flipper::SonarResponder>)responder
|
||||
- (instancetype)initWithCppResponder:(std::unique_ptr<facebook::flipper::FlipperResponder>)responder
|
||||
{
|
||||
if (!responder) {
|
||||
return nil;
|
||||
|
||||
Reference in New Issue
Block a user