Skip to content

Commit 1761a86

Browse files
vener91facebook-github-bot
authored andcommitted
Change #if FB_SONARKIT_ENABLED to #ifdef FB_SONARKIT_ENABLED
Summary: FB_SONARKIT_ENABLED is usually not defined and results in a warning, switching it ifdef is better. Needed for removal of techdebt (see subsequent diffs) Reviewed By: h-friederich Differential Revision: D52640752 fbshipit-source-id: 816186258da1998382fff6e495af7b9ff29c2615
1 parent 4703450 commit 1761a86

File tree

203 files changed

+204
-204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+204
-204
lines changed

docs/getting-started/react-native-ios.mdx

+2-2

iOS/FlipperKit/FlipperClient.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "FlipperClient.h"
1111
#import <Flipper/FlipperCertificateProvider.h>

iOS/FlipperKitTests/FlipperClientTests.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
#import <XCTest/XCTest.h>
9-
#if FB_SONARKIT_ENABLED
9+
#ifdef FB_SONARKIT_ENABLED
1010

1111
#import <FlipperKit/FlipperClient+Testing.h>
1212
#import <FlipperKit/FlipperClient.h>

iOS/FlipperKitTests/FlipperCppBridgingTests.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#import <XCTest/XCTest.h>
99

10-
#if FB_SONARKIT_ENABLED
10+
#ifdef FB_SONARKIT_ENABLED
1111

1212
#import <FlipperKit/CppBridge/FlipperCppWrapperPlugin.h>
1313
#import <FlipperKit/FlipperPlugin.h>

iOS/FlipperKitTests/FlipperUtilTests.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
#import <XCTest/XCTest.h>
9-
#if FB_SONARKIT_ENABLED
9+
#ifdef FB_SONARKIT_ENABLED
1010

1111
#import <FlipperKit/FlipperClient+Testing.h>
1212
#import <FlipperKit/FlipperClient.h>

iOS/Plugins/FlipperKitBloksPlugin/FlipperKitBloksPlugin/FlipperKitBloksPlugin.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import <FlipperKit/FlipperPlugin.h>
1111
#import <Foundation/Foundation.h>

iOS/Plugins/FlipperKitBloksPlugin/FlipperKitBloksPlugin/FlipperKitBloksPlugin.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99
#import "FlipperKitBloksPlugin.h"
1010
#import <FlipperKit/FlipperClient.h>
1111
#import <FlipperKit/FlipperConnection.h>

iOS/Plugins/FlipperKitDatabasesPlugin/FlipperKitDatabasesPlugin/FlipperKitDatabasesPlugin.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import <FlipperKit/FlipperPlugin.h>
1111
#import <Foundation/Foundation.h>

iOS/Plugins/FlipperKitDatabasesPlugin/FlipperKitDatabasesPlugin/FlipperKitDatabasesPlugin.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99
#import "FlipperKitDatabasesPlugin.h"
1010
#import <FlipperKit/FlipperClient.h>
1111
#import <FlipperKit/FlipperConnection.h>

iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin/FlipperKitExamplePlugin.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99
#import "FlipperKitExamplePlugin.h"
1010
#import <FlipperKit/FlipperClient.h>
1111
#import <FlipperKit/FlipperConnection.h>

iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/CKCenterLayoutComponent+Sonar.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "CKCenterLayoutComponent+Sonar.h"
1111

iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/CKComponent+Sonar.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "CKComponent+Sonar.h"
1111

iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/CKFlexboxComponent+Sonar.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "CKFlexboxComponent+Sonar.h"
1111

iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/CKInsetComponent+Sonar.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "CKInsetComponent+Sonar.h"
1111

iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/CKRatioLayoutComponent+Sonar.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "CKRatioLayoutComponent+Sonar.h"
1111

iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/CKStatelessComponent+Sonar.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "CKStatelessComponent+Sonar.h"
1111

iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "FlipperKitLayoutComponentKitSupport.h"
1111

iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKComponentLayoutDescriptor.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "SKComponentLayoutDescriptor.h"
1111

iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKComponentLayoutWrapper.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "SKComponentLayoutWrapper.h"
1111

iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKComponentMountedView.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "SKComponentMountedView.h"
1111

iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKComponentMountedViewDescriptor.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "SKComponentMountedViewDescriptor.h"
1111

iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKComponentRootViewDescriptor.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "SKComponentRootViewDescriptor.h"
1111

iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/Utils.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#include "Utils.h"
1111

iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "SKDescriptorMapper.h"
1111

iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "FlipperKitLayoutPlugin.h"
1111

iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "SKDescriptorMapper.h"
1111

iOS/Plugins/FlipperKitLayoutPlugin/SonarKitLayoutPluginTests/SonarKitLayoutPluginTests.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#import <XCTest/XCTest.h>
99

10-
#if FB_SONARKIT_ENABLED
10+
#ifdef FB_SONARKIT_ENABLED
1111

1212
#import <FlipperKitLayoutHelpers/SKNodeDescriptor.h>
1313
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>

iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99
#import <Foundation/Foundation.h>
1010

1111
#import <FlipperKit/FlipperPlugin.h>

iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99
#import "FlipperKitNetworkPlugin.h"
1010
#import <iostream>
1111
#import <memory>

iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin+CPPInitialization.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99
#pragma once
1010

1111
#import <iostream>

iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import <Foundation/Foundation.h>
1111

iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import <vector>
1111

iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKDispatchQueue.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#pragma once
1111

iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SonarKitNetworkPlugin+CPPInitialization.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#pragma once
1111
#import <memory>

iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import <FlipperKitNetworkPlugin/SKNetworkReporter.h>
1111
#import <Foundation/Foundation.h>

iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "SKIOSNetworkAdapter.h"
1111
#import "SKFLEXNetworkLib/SKFLEXNetworkObserver.h"

iOS/Plugins/FlipperKitPluginUtils/FlipperKitHighlightOverlay/SKHighlightOverlay.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "SKHighlightOverlay.h"
1111

iOS/Plugins/FlipperKitPluginUtils/FlipperKitLayoutHelpers/FlipperKitLayoutHelpers/SKHiddenWindow.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "SKHiddenWindow.h"
1111

iOS/Plugins/FlipperKitPluginUtils/FlipperKitLayoutHelpers/FlipperKitLayoutHelpers/SKInvalidation.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import <UIKit/UIKit.h>
1111

iOS/Plugins/FlipperKitPluginUtils/FlipperKitLayoutHelpers/FlipperKitLayoutHelpers/SKNamed.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "SKNamed.h"
1111

iOS/Plugins/FlipperKitPluginUtils/FlipperKitLayoutHelpers/FlipperKitLayoutHelpers/SKNodeDescriptor.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "SKNodeDescriptor.h"
1111
#import <FlipperKitLayoutTextSearchable/FKTextSearchable.h>

iOS/Plugins/FlipperKitPluginUtils/FlipperKitLayoutHelpers/FlipperKitLayoutHelpers/SKObject.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "SKObject.h"
1111

iOS/Plugins/FlipperKitPluginUtils/FlipperKitLayoutHelpers/FlipperKitLayoutHelpers/SKSwizzle.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if FB_SONARKIT_ENABLED
8+
#ifdef FB_SONARKIT_ENABLED
99

1010
#import "SKSwizzle.h"
1111

0 commit comments

Comments
 (0)