Ensure internal builds don't use plugin stubs

Summary: We generate a stub for plugin system, so that TurboModules can work in OSS. Unless the `RN_DISABLE_OSS_PLUGIN_HEADER` define is seet, TurboModules will use the plugin stub. Therefore, for internal builds, we should set this define.

Reviewed By: fkgozali, mdvacca

Differential Revision: D17789993

fbshipit-source-id: a93735738513457236adb3064b80601053c95dd3
This commit is contained in:
Ramanpreet Nara
2019-10-07 14:55:39 -07:00
committed by Facebook Github Bot
parent 72c03900d2
commit 021a63d4da
6 changed files with 11 additions and 10 deletions
+2 -2
View File
@@ -9,8 +9,8 @@
#ifdef RN_DISABLE_OSS_PLUGIN_HEADER
// FB Internal: Plugins.h is autogenerated by the build system.
#import "Plugins.h"
// FB Internal: FBRCTBlobPlugins.h is autogenerated by the build system.
#import "FBRCTBlobPlugins.h"
#else
+2 -2
View File
@@ -9,8 +9,8 @@
#ifdef RN_DISABLE_OSS_PLUGIN_HEADER
// FB Internal: Plugins.h is autogenerated by the build system.
#import "Plugins.h"
// FB Internal: FBRCTCameraRollPlugins.h is autogenerated by the build system.
#import "FBRCTCameraRollPlugins.h"
#else
+2 -2
View File
@@ -9,8 +9,8 @@
#ifdef RN_DISABLE_OSS_PLUGIN_HEADER
// FB Internal: Plugins.h is autogenerated by the build system.
#import "Plugins.h"
// FB Internal: FBRCTSettingsPlugins.h is autogenerated by the build system.
#import "FBRCTSettingsPlugins.h"
#else
+2 -2
View File
@@ -9,8 +9,8 @@
#ifdef RN_DISABLE_OSS_PLUGIN_HEADER
// FB Internal: Plugins.h is autogenerated by the build system.
#import "Plugins.h"
// FB Internal: FBRCTVibrationPlugins.h is autogenerated by the build system.
#import "FBRCTVibrationPlugins.h"
#else
+1
View File
@@ -70,6 +70,7 @@ rn_apple_library(
name = "ActionSheetManager",
native_class_func = "RCTActionSheetManagerCls",
),
plugins_header = "FBCoreModulesPlugins.h",
preprocessor_flags = OBJC_ARC_PREPROCESSOR_FLAGS + get_debug_preprocessor_flags() + rn_extra_build_flags() + [
"-DRN_DISABLE_OSS_PLUGIN_HEADER",
],
+2 -2
View File
@@ -9,8 +9,8 @@
#ifdef RN_DISABLE_OSS_PLUGIN_HEADER
// FB Internal: Plugins.h is autogenerated by the build system.
#import "Plugins.h"
// FB Internal: FBCoreModulesPlugins.h is autogenerated by the build system.
#import "FBCoreModulesPlugins.h"
#else