From 672979b5f8eb3738bbc500ee54fe9d3234a9449e Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Thu, 26 Aug 2021 10:15:30 -0700 Subject: [PATCH] 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 --- iOS/FlipperKit/FlipperPlatformWebSocket.h | 4 ++++ iOS/FlipperKit/FlipperPlatformWebSocket.mm | 4 ++++ iOS/FlipperKit/FlipperWebSocket.h | 4 ++++ iOS/FlipperKit/FlipperWebSocket.mm | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/iOS/FlipperKit/FlipperPlatformWebSocket.h b/iOS/FlipperKit/FlipperPlatformWebSocket.h index c2332996e..9c5830f6d 100644 --- a/iOS/FlipperKit/FlipperPlatformWebSocket.h +++ b/iOS/FlipperKit/FlipperPlatformWebSocket.h @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +#ifdef FB_SONARKIT_ENABLED + #import #import @@ -47,3 +49,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/iOS/FlipperKit/FlipperPlatformWebSocket.mm b/iOS/FlipperKit/FlipperPlatformWebSocket.mm index 10e315701..26135ab09 100644 --- a/iOS/FlipperKit/FlipperPlatformWebSocket.mm +++ b/iOS/FlipperKit/FlipperPlatformWebSocket.mm @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +#ifdef FB_SONARKIT_ENABLED + #import "FlipperPlatformWebSocket.h" #import #import @@ -213,3 +215,5 @@ static constexpr int connectionKeepaliveSeconds = 10; } @end + +#endif diff --git a/iOS/FlipperKit/FlipperWebSocket.h b/iOS/FlipperKit/FlipperWebSocket.h index 45008105f..119ca3064 100644 --- a/iOS/FlipperKit/FlipperWebSocket.h +++ b/iOS/FlipperKit/FlipperWebSocket.h @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +#ifdef FB_SONARKIT_ENABLED + #pragma once #import @@ -87,3 +89,5 @@ class FlipperWebSocketProvider : public FlipperSocketProvider { } // namespace flipper } // namespace facebook + +#endif diff --git a/iOS/FlipperKit/FlipperWebSocket.mm b/iOS/FlipperKit/FlipperWebSocket.mm index bcedb0214..6388e0846 100644 --- a/iOS/FlipperKit/FlipperWebSocket.mm +++ b/iOS/FlipperKit/FlipperWebSocket.mm @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +#ifdef FB_SONARKIT_ENABLED + #import "FlipperWebSocket.h" #import #import @@ -240,3 +242,5 @@ void FlipperWebSocket::sendExpectResponse( } // namespace flipper } // namespace facebook + +#endif