Skip to content

Commit f2c3a42

Browse files
j-piaseckimeta-codesync[bot]
authored andcommitted
Make react/featureflags private (#58744)
Summary: Pull Request resolved: #58744 Moves `react/featureflags` from the public tier of the C++ stable API to the private tier. The `<React/FeatureFlags.h>` umbrella and its build plumbing are removed, and the headers include `PrivateGuard.h` instead of `UmbrellaGuard.h`. Changelog: [Internal] Reviewed By: rubennorte Differential Revision: D122353979
1 parent 29e145b commit f2c3a42

20 files changed

Lines changed: 21 additions & 95 deletions

‎packages/react-native/ReactAndroid/build.gradle.kts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ val preparePrefab by
115115
Pair("../ReactCommon/cxxreact/React/", "React/"),
116116
// react_featureflags
117117
Pair("../ReactCommon/react/featureflags/", "react/featureflags/"),
118-
Pair("../ReactCommon/react/featureflags/React/", "React/"),
119118
// react_devtoolsruntimesettings
120119
Pair(
121120
"../ReactCommon/react/devtoolsruntimesettings/",

‎packages/react-native/ReactCommon/react/featureflags/CMakeLists.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ file(GLOB react_featureflags_SRC CONFIGURE_DEPENDS *.cpp)
1212
add_library(react_featureflags OBJECT ${react_featureflags_SRC})
1313

1414
target_include_directories(react_featureflags PUBLIC ${REACT_COMMON_DIR})
15-
target_include_directories(react_featureflags INTERFACE ${REACT_COMMON_DIR}/react/featureflags)
1615

1716
target_link_libraries(react_featureflags folly_runtime react_cxxstableapi)
1817
target_compile_reactnative_options(react_featureflags PRIVATE)

‎packages/react-native/ReactCommon/react/featureflags/React-featureflags.podspec‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,5 @@ Pod::Spec.new do |s|
4343
add_rn_third_party_dependencies(s)
4444
add_rncore_dependency(s)
4545

46-
s.subspec "featureflagsUmbrella" do |ss|
47-
ss.source_files = "React/*.h"
48-
ss.header_dir = ""
49-
ss.header_mappings_dir = "."
50-
end
51-
5246
mark_as_react_native_build(s)
5347
end

‎packages/react-native/ReactCommon/react/featureflags/React/FeatureFlags.h‎

Lines changed: 0 additions & 48 deletions
This file was deleted.

‎packages/react-native/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<03873d0e7381921dc1ed1372eec991c0>>
7+
* @generated SignedSource<<4c93a39dd2a8ee5ba24f3f8bc99ac1ae>>
88
*/
99

1010
/**
@@ -19,7 +19,7 @@
1919

2020
#pragma once
2121

22-
#include <react/cxxstableapi/UmbrellaGuard.h>
22+
#include <react/cxxstableapi/PrivateGuard.h>
2323

2424
#include <react/featureflags/ReactNativeFeatureFlagsAccessor.h>
2525
#include <react/featureflags/ReactNativeFeatureFlagsProvider.h>

‎packages/react-native/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<bd4f6cafcd3c1bd4217792d0cf25dbe5>>
7+
* @generated SignedSource<<3e557788d6bd43975af8dcb392beef94>>
88
*/
99

1010
/**
@@ -19,7 +19,7 @@
1919

2020
#pragma once
2121

22-
#include <react/cxxstableapi/UmbrellaGuard.h>
22+
#include <react/cxxstableapi/PrivateGuard.h>
2323

2424
#include <react/featureflags/ReactNativeFeatureFlagsProvider.h>
2525
#include <array>

‎packages/react-native/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<f09ab21f8e13dddf1b548cb8e156837e>>
7+
* @generated SignedSource<<07754aa6f05f6219f95a7b9a2e83ba49>>
88
*/
99

1010
/**
@@ -19,7 +19,7 @@
1919

2020
#pragma once
2121

22-
#include <react/cxxstableapi/UmbrellaGuard.h>
22+
#include <react/cxxstableapi/PrivateGuard.h>
2323

2424
#include <react/featureflags/ReactNativeFeatureFlagsProvider.h>
2525

‎packages/react-native/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDynamicProvider.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<ae3d44a13f9aa325303d58a5f50aac51>>
7+
* @generated SignedSource<<feee721a90dc8eb3371e87778bdbccc7>>
88
*/
99

1010
/**
@@ -19,7 +19,7 @@
1919

2020
#pragma once
2121

22-
#include <react/cxxstableapi/UmbrellaGuard.h>
22+
#include <react/cxxstableapi/PrivateGuard.h>
2323

2424
#include <folly/dynamic.h>
2525
#include <react/featureflags/ReactNativeFeatureFlagsDefaults.h>

‎packages/react-native/ReactCommon/react/featureflags/ReactNativeFeatureFlagsOverridesOSSCanary.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<c26b8f81fcc99469d0535a89bac18280>>
7+
* @generated SignedSource<<94c1abd04adec2f81634da6786979552>>
88
*/
99

1010
/**
@@ -19,7 +19,7 @@
1919

2020
#pragma once
2121

22-
#include <react/cxxstableapi/UmbrellaGuard.h>
22+
#include <react/cxxstableapi/PrivateGuard.h>
2323

2424
#include <react/featureflags/ReactNativeFeatureFlagsOverridesOSSStable.h>
2525

‎packages/react-native/ReactCommon/react/featureflags/ReactNativeFeatureFlagsOverridesOSSExperimental.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<ed015255bfc4c47dfb63b99bc8146b78>>
7+
* @generated SignedSource<<03cfd37618eb47d4612a78af04c9332f>>
88
*/
99

1010
/**
@@ -19,7 +19,7 @@
1919

2020
#pragma once
2121

22-
#include <react/cxxstableapi/UmbrellaGuard.h>
22+
#include <react/cxxstableapi/PrivateGuard.h>
2323

2424
#include <react/featureflags/ReactNativeFeatureFlagsOverridesOSSCanary.h>
2525

0 commit comments

Comments
 (0)