Allowing Flipper to be included in non debug react native builds

Summary: Allowing Flipper react native code also when FB_SONARKIT_ENABLED is defined

Reviewed By: lblasa

Differential Revision: D40224308

fbshipit-source-id: e9cf1c0e04b5748ffb5bb97fe9fd9046956b32b5
This commit is contained in:
Ofer Shem Tov
2022-10-10 08:25:49 -07:00
committed by Facebook GitHub Bot
parent 9cbf35dea8
commit f65364c79c
5 changed files with 9 additions and 9 deletions

View File

@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
#ifdef DEBUG #if defined(DEBUG) || defined(FB_SONARKIT_ENABLED)
#import "FlipperModule.h" #import "FlipperModule.h"
#import "FlipperReactNativeJavaScriptPluginManager.h" #import "FlipperReactNativeJavaScriptPluginManager.h"

View File

@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
#if DEBUG #if defined(DEBUG) || defined(FB_SONARKIT_ENABLED)
#import <FlipperKit/FlipperConnection.h> #import <FlipperKit/FlipperConnection.h>
#import <FlipperKit/FlipperPlugin.h> #import <FlipperKit/FlipperPlugin.h>
@@ -30,4 +30,4 @@ NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END
#endif #endif // DEBUG || FB_SONARKIT_ENABLED

View File

@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
#if DEBUG #if defined(DEBUG) || defined(FB_SONARKIT_ENABLED)
#import "FlipperReactNativeJavaScriptPlugin.h" #import "FlipperReactNativeJavaScriptPlugin.h"
@@ -64,4 +64,4 @@
@end @end
#endif #endif // DEBUG || FB_SONARKIT_ENABLED

View File

@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
#ifdef DEBUG #if defined(DEBUG) || defined(FB_SONARKIT_ENABLED)
#import <React/RCTBridgeModule.h> #import <React/RCTBridgeModule.h>
@@ -47,4 +47,4 @@ NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END
#endif #endif // DEBUG || FB_SONARKIT_ENABLED

View File

@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
#ifdef DEBUG #if defined(DEBUG) || defined(FB_SONARKIT_ENABLED)
#import "FlipperReactNativeJavaScriptPluginManager.h" #import "FlipperReactNativeJavaScriptPluginManager.h"
#import <FlipperKit/FlipperClient.h> #import <FlipperKit/FlipperClient.h>
@@ -150,4 +150,4 @@ static uint32_t FlipperResponderKeyGenerator = 0;
@end @end
#endif #endif // DEBUG || FB_SONARKIT_ENABLED