/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #if FB_SONARKIT_ENABLED #import "FlipperKitBloksPlugin.h" #import #import #import #import "Plugins.h" @implementation FlipperKitBloksPlugin { id _connection; } - (void)didConnect:(id)connection { _connection = connection; } - (void)didDisconnect { _connection = nil; } - (NSString*)identifier { return @"flipper-plugin-bloks-state"; } - (BOOL)runInBackground { return YES; } - (void)logAction:(NSString*)action withData:(NSDictionary*)data { [_connection send:action withParams:data]; } @end void IGBloksFlipperPluginInit(FlipperClient* client) { [client addPlugin:[FlipperKitBloksPlugin new]]; } #endif