Skip to content

Commit 28470cf

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Delete ReactNativeNewArchitectureFeatureFlags.enableBridgelessArchitecture wrapper method (#57001)
Summary: Final cleanup in the stack. All Android call sites of the wrapper have moved to the bridgeless-only path in the earlier diffs of this stack, so the wrapper method is unused and can be deleted. The surrounding `ReactNativeNewArchitectureFeatureFlags` object stays — `useFabricInterop()` and `useTurboModuleInterop()` still live there. Also: - Drop the `"enableBridgelessArchitecture"` entry from `UseReactNativeNewArchitectureFeatureFlagDetector` — the wrapper for that flag no longer exists, so the lint rule is moot for it. - Update the detector's tests to exercise `useFabricInterop` (still tracked by the detector) instead of `enableBridgelessArchitecture`. The underlying generated `ReactNativeFeatureFlags.enableBridgelessArchitecture()` is untouched. `ReactAndroid.api` is unchanged because the wrapper lives in an `internal` package which is excluded from public API tracking. Changelog: [Internal] Differential Revision: D106719841
1 parent 728b2d5 commit 28470cf

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeNewArchitectureFeatureFlags.kt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@ import com.facebook.react.common.build.ReactBuildConfig
2323
@SuppressLint("UseReactNativeNewArchitectureFeatureFlagDetector")
2424
public object ReactNativeNewArchitectureFeatureFlags {
2525

26-
@JvmStatic
27-
public fun enableBridgelessArchitecture(): Boolean {
28-
if (ReactBuildConfig.UNSTABLE_ENABLE_MINIFY_LEGACY_ARCHITECTURE) {
29-
Assertions.assertCondition(
30-
ReactNativeFeatureFlags.enableBridgelessArchitecture(),
31-
"ReactNativeFeatureFlags.enableBridgelessArchitecture() should be set to TRUE when Strict Mode is enabled",
32-
)
33-
return true
34-
}
35-
return ReactNativeFeatureFlags.enableBridgelessArchitecture()
36-
}
37-
3826
@JvmStatic
3927
public fun useFabricInterop(): Boolean {
4028
if (ReactBuildConfig.UNSTABLE_ENABLE_MINIFY_LEGACY_ARCHITECTURE) {

0 commit comments

Comments
 (0)