From f65364c79c2267a1616cc64e883289f58454e253 Mon Sep 17 00:00:00 2001 From: Ofer Shem Tov Date: Mon, 10 Oct 2022 08:25:49 -0700 Subject: [PATCH] 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 --- react-native/react-native-flipper/ios/FlipperModule.m | 2 +- .../ios/FlipperReactNativeJavaScriptPlugin.h | 4 ++-- .../ios/FlipperReactNativeJavaScriptPlugin.m | 4 ++-- .../ios/FlipperReactNativeJavaScriptPluginManager.h | 4 ++-- .../ios/FlipperReactNativeJavaScriptPluginManager.m | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/react-native/react-native-flipper/ios/FlipperModule.m b/react-native/react-native-flipper/ios/FlipperModule.m index fc69190ea..e56247f00 100644 --- a/react-native/react-native-flipper/ios/FlipperModule.m +++ b/react-native/react-native-flipper/ios/FlipperModule.m @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#ifdef DEBUG +#if defined(DEBUG) || defined(FB_SONARKIT_ENABLED) #import "FlipperModule.h" #import "FlipperReactNativeJavaScriptPluginManager.h" diff --git a/react-native/react-native-flipper/ios/FlipperReactNativeJavaScriptPlugin.h b/react-native/react-native-flipper/ios/FlipperReactNativeJavaScriptPlugin.h index 73fc6a1c8..d3f3fae28 100644 --- a/react-native/react-native-flipper/ios/FlipperReactNativeJavaScriptPlugin.h +++ b/react-native/react-native-flipper/ios/FlipperReactNativeJavaScriptPlugin.h @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#if DEBUG +#if defined(DEBUG) || defined(FB_SONARKIT_ENABLED) #import #import @@ -30,4 +30,4 @@ NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END -#endif +#endif // DEBUG || FB_SONARKIT_ENABLED diff --git a/react-native/react-native-flipper/ios/FlipperReactNativeJavaScriptPlugin.m b/react-native/react-native-flipper/ios/FlipperReactNativeJavaScriptPlugin.m index 153a846cb..f46d4e9d9 100644 --- a/react-native/react-native-flipper/ios/FlipperReactNativeJavaScriptPlugin.m +++ b/react-native/react-native-flipper/ios/FlipperReactNativeJavaScriptPlugin.m @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#if DEBUG +#if defined(DEBUG) || defined(FB_SONARKIT_ENABLED) #import "FlipperReactNativeJavaScriptPlugin.h" @@ -64,4 +64,4 @@ @end -#endif +#endif // DEBUG || FB_SONARKIT_ENABLED diff --git a/react-native/react-native-flipper/ios/FlipperReactNativeJavaScriptPluginManager.h b/react-native/react-native-flipper/ios/FlipperReactNativeJavaScriptPluginManager.h index a5bcd5db8..ed495fc4b 100644 --- a/react-native/react-native-flipper/ios/FlipperReactNativeJavaScriptPluginManager.h +++ b/react-native/react-native-flipper/ios/FlipperReactNativeJavaScriptPluginManager.h @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#ifdef DEBUG +#if defined(DEBUG) || defined(FB_SONARKIT_ENABLED) #import @@ -47,4 +47,4 @@ NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END -#endif +#endif // DEBUG || FB_SONARKIT_ENABLED diff --git a/react-native/react-native-flipper/ios/FlipperReactNativeJavaScriptPluginManager.m b/react-native/react-native-flipper/ios/FlipperReactNativeJavaScriptPluginManager.m index 5aeb56e9d..ee7847373 100644 --- a/react-native/react-native-flipper/ios/FlipperReactNativeJavaScriptPluginManager.m +++ b/react-native/react-native-flipper/ios/FlipperReactNativeJavaScriptPluginManager.m @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#ifdef DEBUG +#if defined(DEBUG) || defined(FB_SONARKIT_ENABLED) #import "FlipperReactNativeJavaScriptPluginManager.h" #import @@ -150,4 +150,4 @@ static uint32_t FlipperResponderKeyGenerator = 0; @end -#endif +#endif // DEBUG || FB_SONARKIT_ENABLED