fbshipit-source-id: 2cd940396d650342920b28835f6e672febe6b55c

This commit is contained in:
Daniel Buchele
2018-06-12 03:39:09 -07:00
parent 1cc2d46be9
commit f7d487dd76
42 changed files with 1100 additions and 1080 deletions

View File

@@ -7,8 +7,7 @@
*/
#import "SonarCppBridgingConnection.h"
#import <FBCxxUtils/FBCxxFollyDynamicConvert.h>
#import "SKUtils.h"
#import "SonarCppBridgingResponder.h"
@implementation SonarCppBridgingConnection
@@ -28,7 +27,7 @@
- (void)send:(NSString *)method withParams:(NSDictionary *)params
{
conn_->send([method UTF8String], facebook::cxxutils::convertIdToFollyDynamic(params));
conn_->send([method UTF8String], [SKUtils convertIdToFollyDynamic:params]);
}
- (void)receive:(NSString *)method withBlock:(SonarReceiver)receiver
@@ -37,7 +36,7 @@
std::unique_ptr<facebook::sonar::SonarResponder> responder) {
SonarCppBridgingResponder *const objCResponder =
[[SonarCppBridgingResponder alloc] initWithCppResponder:std::move(responder)];
receiver(facebook::cxxutils::convertFollyDynamicToId(message), objCResponder);
receiver([SKUtils convertFollyDynamicToId: message], objCResponder);
};
conn_->receive([method UTF8String], lambda);
}