Internal/External init
Summary:
UI Debugger initialisation is defined in two places. Internally, done inside:
fb/FlipperKitUIDebuggerPluginInit.mm
OSS:
FlipperKitUIDebuggerPluginInit.mm
Contents of `fb/` directory are not synced in OSS. OSS file is excluded internally as it doesn't use the XPlugins.
Reviewed By: aigoncharov
Differential Revision: D47759035
fbshipit-source-id: 3578be076525f05b530a0d129b5c37e48572d58e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
60016e69f5
commit
b5d51a047b
@@ -15,8 +15,6 @@
|
||||
#import <FlipperKit/FlipperResponder.h>
|
||||
|
||||
#import "Core/UIDContext.h"
|
||||
#import "PluginSockets.h"
|
||||
#import "Plugins.h"
|
||||
|
||||
#import "Descriptors/UIDDescriptorRegister.h"
|
||||
#import "Observer/UIDTreeObserverFactory.h"
|
||||
@@ -62,24 +60,4 @@
|
||||
|
||||
@end
|
||||
|
||||
void FlipperKitUIDebuggerAddPlugin(FlipperClient* client) {
|
||||
UIDContext* context = [[UIDContext alloc]
|
||||
initWithApplication:[UIApplication sharedApplication]
|
||||
descriptorRegister:[UIDDescriptorRegister defaultRegister]
|
||||
observerFactory:[UIDTreeObserverFactory shared]];
|
||||
|
||||
FlipperKitUIDebuggerPlugin* plugin =
|
||||
[[FlipperKitUIDebuggerPlugin alloc] initWithContext:context];
|
||||
|
||||
for (const auto& p : FlipperUIDebuggerDescriptorRegisterSocket_Plugins()) {
|
||||
FlipperUIDebuggerDescriptorRegisterSocket_InvokeConfigure(p, context);
|
||||
}
|
||||
|
||||
[client addPlugin:plugin];
|
||||
}
|
||||
|
||||
void FlipperKitUIDebuggerPluginInit(FlipperClient* client) {
|
||||
FlipperKitUIDebuggerAddPlugin(client);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user