Files
flipper/iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.mm
Dominik Pich 8cbb5c4d46 FLEXNetworkLib to SKFLEXNetworkLib
Summary:
rename FLEXNetworkLib to SKFLEXNetworkLib so it doesnt clash with Stock FLEX if embedded in the app too

also 'fix' 3 warnings by adding explicit casts

Reviewed By: lblasa

Differential Revision: D35200011

fbshipit-source-id: 82bdecc5076b86958ea0cb80260584c012940045
2022-03-31 12:35:22 -07:00

32 lines
715 B
Plaintext

/*
* 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 "SKIOSNetworkAdapter.h"
#import "SKFLEXNetworkLib/SKFLEXNetworkObserver.h"
#import "SKFLEXNetworkLib/SKFLEXNetworkRecorder.h"
@implementation SKIOSNetworkAdapter
@synthesize delegate = _delegate;
- (instancetype)init {
if (self = [super init]) {
_delegate = nil;
}
return self;
}
- (void)setDelegate:(id<SKNetworkReporterDelegate>)delegate {
_delegate = delegate;
[SKFLEXNetworkObserver start];
[SKFLEXNetworkRecorder defaultRecorder].delegate = _delegate;
}
@end
#endif