Rename iOS SonarPlugin to FlipperPlugin
Summary: Rename iOS SonarPlugin to FlipperPlugin Reviewed By: jknoxville Differential Revision: D9915094 fbshipit-source-id: ea2ca60ab578aca8c8f028e3deea4a3b9a48a63b
This commit is contained in:
committed by
Facebook Github Bot
parent
a488e34514
commit
f970e60edd
@@ -11,12 +11,12 @@
|
||||
|
||||
#import <Sonar/SonarPlugin.h>
|
||||
#import <SonarKit/CppBridge/SonarCppBridgingConnection.h>
|
||||
#import <SonarKit/SonarPlugin.h>
|
||||
#import <SonarKit/FlipperPlugin.h>
|
||||
|
||||
namespace facebook {
|
||||
namespace flipper {
|
||||
|
||||
using ObjCPlugin = NSObject<SonarPlugin> *;
|
||||
using ObjCPlugin = NSObject<FlipperPlugin> *;
|
||||
|
||||
/**
|
||||
SonarCppWrapperPlugin is a simple C++ wrapper around Objective-C Sonar plugins
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#ifdef FB_SONARKIT_ENABLED
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "SonarPlugin.h"
|
||||
#import "FlipperPlugin.h"
|
||||
#import "FlipperStateUpdateListener.h"
|
||||
|
||||
/**
|
||||
@@ -25,17 +25,17 @@ The shared singleton FlipperClient instance. It is an error to call this on non-
|
||||
/**
|
||||
Register a plugin with the client.
|
||||
*/
|
||||
- (void)addPlugin:(NSObject<SonarPlugin> *)plugin;
|
||||
- (void)addPlugin:(NSObject<FlipperPlugin> *)plugin;
|
||||
|
||||
/**
|
||||
Unregister a plugin with the client.
|
||||
*/
|
||||
- (void)removePlugin:(NSObject<SonarPlugin> *)plugin;
|
||||
- (void)removePlugin:(NSObject<FlipperPlugin> *)plugin;
|
||||
|
||||
/**
|
||||
Retrieve the plugin with a given identifier which was previously registered with this client.
|
||||
*/
|
||||
- (NSObject<SonarPlugin> *)pluginWithIdentifier:(NSString *)identifier;
|
||||
- (NSObject<FlipperPlugin> *)pluginWithIdentifier:(NSString *)identifier;
|
||||
|
||||
/**
|
||||
Establish a connection to the Sonar desktop.
|
||||
|
||||
@@ -84,17 +84,17 @@ using WrapperPlugin = facebook::flipper::SonarCppWrapperPlugin;
|
||||
_cppClient->refreshPlugins();
|
||||
}
|
||||
|
||||
- (void)addPlugin:(NSObject<SonarPlugin> *)plugin
|
||||
- (void)addPlugin:(NSObject<FlipperPlugin> *)plugin
|
||||
{
|
||||
_cppClient->addPlugin(std::make_shared<WrapperPlugin>(plugin));
|
||||
}
|
||||
|
||||
- (void)removePlugin:(NSObject<SonarPlugin> *)plugin
|
||||
- (void)removePlugin:(NSObject<FlipperPlugin> *)plugin
|
||||
{
|
||||
_cppClient->removePlugin(std::make_shared<WrapperPlugin>(plugin));
|
||||
}
|
||||
|
||||
- (NSObject<SonarPlugin> *)pluginWithIdentifier:(NSString *)identifier
|
||||
- (NSObject<FlipperPlugin> *)pluginWithIdentifier:(NSString *)identifier
|
||||
{
|
||||
auto cppPlugin = _cppClient->getPlugin([identifier UTF8String]);
|
||||
if (auto wrapper = dynamic_cast<WrapperPlugin *>(cppPlugin.get())) {
|
||||
|
||||
@@ -15,7 +15,7 @@ SK_EXTERN_C_END
|
||||
|
||||
@protocol SonarConnection;
|
||||
|
||||
@protocol SonarPlugin
|
||||
@protocol FlipperPlugin
|
||||
|
||||
/**
|
||||
The plugin's identifier. This should map to a javascript plugin with the same identifier to ensure
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
*/
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "SonarPlugin.h"
|
||||
#import "FlipperPlugin.h"
|
||||
|
||||
void SonarPerformBlockOnMainThread(void(^block)())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user