Guard files with the FB_SONARKIT_ENABLED macro

Summary: Guard code with FB_SONARKIT_ENABLED

Reviewed By: fabiomassimo

Differential Revision: D30576765

fbshipit-source-id: b51d7367c5482add27a5cb18453aedf03001bdc7
This commit is contained in:
Lorenzo Blasa
2021-08-26 10:15:30 -07:00
committed by Facebook GitHub Bot
parent 9e8ec02bf7
commit 672979b5f8
4 changed files with 16 additions and 0 deletions

View File

@@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
#ifdef FB_SONARKIT_ENABLED
#import <Flipper/FlipperTransportTypes.h> #import <Flipper/FlipperTransportTypes.h>
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
@@ -47,3 +49,5 @@ NS_ASSUME_NONNULL_BEGIN
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END
#endif

View File

@@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
#ifdef FB_SONARKIT_ENABLED
#import "FlipperPlatformWebSocket.h" #import "FlipperPlatformWebSocket.h"
#import <Flipper/Log.h> #import <Flipper/Log.h>
#import <SocketRocket/SocketRocket.h> #import <SocketRocket/SocketRocket.h>
@@ -213,3 +215,5 @@ static constexpr int connectionKeepaliveSeconds = 10;
} }
@end @end
#endif

View File

@@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
#ifdef FB_SONARKIT_ENABLED
#pragma once #pragma once
#import <Flipper/FlipperSocket.h> #import <Flipper/FlipperSocket.h>
@@ -87,3 +89,5 @@ class FlipperWebSocketProvider : public FlipperSocketProvider {
} // namespace flipper } // namespace flipper
} // namespace facebook } // namespace facebook
#endif

View File

@@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
#ifdef FB_SONARKIT_ENABLED
#import "FlipperWebSocket.h" #import "FlipperWebSocket.h"
#import <Flipper/ConnectionContextStore.h> #import <Flipper/ConnectionContextStore.h>
#import <Flipper/FlipperTransportTypes.h> #import <Flipper/FlipperTransportTypes.h>
@@ -240,3 +242,5 @@ void FlipperWebSocket::sendExpectResponse(
} // namespace flipper } // namespace flipper
} // namespace facebook } // namespace facebook
#endif