Skip to content

Commit

Permalink
Ensure internal builds don't use plugin stubs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
RSNara authored and facebook-github-bot committed Oct 7, 2019
1 parent 72c0390 commit 021a63d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Libraries/Blob/RCTBlobPlugins.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions Libraries/CameraRoll/RCTCameraRollPlugins.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions Libraries/Settings/RCTSettingsPlugins.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions Libraries/Vibration/RCTVibrationPlugins.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions React/CoreModules/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
Expand Down
4 changes: 2 additions & 2 deletions React/CoreModules/CoreModulesPlugins.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 021a63d

Please sign in to comment.