Skip to content

Commit dfb00a9

Browse files
lenaicfacebook-github-bot
authored andcommitted
Remove disableSubviewClippingAndroid feature flag
Summary: `disableSubviewClippingAndroid` no longer has any readers after the previous diff in this stack. Remove it from the feature flag config and regenerate the generated feature flag files with `yarn featureflags --update`. Changelog: [Internal] Differential Revision: D134244907
1 parent dcb535f commit dfb00a9

20 files changed

Lines changed: 109 additions & 226 deletions

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

Lines changed: 1 addition & 7 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<<99c0c14cf6e3eca24e7bf1c7eaf64d07>>
7+
* @generated SignedSource<<cdb133658f55ebc8da8654f02e6ad190>>
88
*/
99

1010
/**
@@ -90,12 +90,6 @@ public object ReactNativeFeatureFlags {
9090
@JvmStatic
9191
public fun disableMountItemReorderingAndroid(): Boolean = accessor.disableMountItemReorderingAndroid()
9292

93-
/**
94-
* Force disable subview clipping for ReactViewGroup on Android
95-
*/
96-
@JvmStatic
97-
public fun disableSubviewClippingAndroid(): Boolean = accessor.disableSubviewClippingAndroid()
98-
9993
/**
10094
* Turns off the global measurement cache used by TextLayoutManager on Android.
10195
*/

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

Lines changed: 1 addition & 11 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<<cee48ed67cacf26a8625a146d6bd4fbd>>
7+
* @generated SignedSource<<555f162052d20f95fca17fdba7e08cb8>>
88
*/
99

1010
/**
@@ -30,7 +30,6 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
3030
private var disableIdleMountItemFrameCallbackRearmAndroidCache: Boolean? = null
3131
private var disableImageViewPreallocationAndroidCache: Boolean? = null
3232
private var disableMountItemReorderingAndroidCache: Boolean? = null
33-
private var disableSubviewClippingAndroidCache: Boolean? = null
3433
private var disableTextLayoutManagerCacheAndroidCache: Boolean? = null
3534
private var disableViewPreallocationAndroidCache: Boolean? = null
3635
private var enableAccessibilityOrderCache: Boolean? = null
@@ -211,15 +210,6 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
211210
return cached
212211
}
213212

214-
override fun disableSubviewClippingAndroid(): Boolean {
215-
var cached = disableSubviewClippingAndroidCache
216-
if (cached == null) {
217-
cached = ReactNativeFeatureFlagsCxxInterop.disableSubviewClippingAndroid()
218-
disableSubviewClippingAndroidCache = cached
219-
}
220-
return cached
221-
}
222-
223213
override fun disableTextLayoutManagerCacheAndroid(): Boolean {
224214
var cached = disableTextLayoutManagerCacheAndroidCache
225215
if (cached == null) {

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

Lines changed: 1 addition & 3 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<<ef7526b6b18e20db71fe54d43218ab69>>
7+
* @generated SignedSource<<533084e1e479ed33c8f8e776c7372742>>
88
*/
99

1010
/**
@@ -48,8 +48,6 @@ public object ReactNativeFeatureFlagsCxxInterop {
4848

4949
@DoNotStrip @JvmStatic public external fun disableMountItemReorderingAndroid(): Boolean
5050

51-
@DoNotStrip @JvmStatic public external fun disableSubviewClippingAndroid(): Boolean
52-
5351
@DoNotStrip @JvmStatic public external fun disableTextLayoutManagerCacheAndroid(): Boolean
5452

5553
@DoNotStrip @JvmStatic public external fun disableViewPreallocationAndroid(): Boolean

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

Lines changed: 1 addition & 3 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<<26569f7cbc370133de7e8948ee2d4151>>
7+
* @generated SignedSource<<f8e022fa80822bd1581351dbb870f384>>
88
*/
99

1010
/**
@@ -43,8 +43,6 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
4343

4444
override fun disableMountItemReorderingAndroid(): Boolean = false
4545

46-
override fun disableSubviewClippingAndroid(): Boolean = false
47-
4846
override fun disableTextLayoutManagerCacheAndroid(): Boolean = false
4947

5048
override fun disableViewPreallocationAndroid(): Boolean = false

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

Lines changed: 1 addition & 12 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<<f20f5ce06d72bb7256dbc280dbe8b76f>>
7+
* @generated SignedSource<<78042bba3e557c4b46dd664730a5975f>>
88
*/
99

1010
/**
@@ -34,7 +34,6 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
3434
private var disableIdleMountItemFrameCallbackRearmAndroidCache: Boolean? = null
3535
private var disableImageViewPreallocationAndroidCache: Boolean? = null
3636
private var disableMountItemReorderingAndroidCache: Boolean? = null
37-
private var disableSubviewClippingAndroidCache: Boolean? = null
3837
private var disableTextLayoutManagerCacheAndroidCache: Boolean? = null
3938
private var disableViewPreallocationAndroidCache: Boolean? = null
4039
private var enableAccessibilityOrderCache: Boolean? = null
@@ -225,16 +224,6 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
225224
return cached
226225
}
227226

228-
override fun disableSubviewClippingAndroid(): Boolean {
229-
var cached = disableSubviewClippingAndroidCache
230-
if (cached == null) {
231-
cached = currentProvider.disableSubviewClippingAndroid()
232-
accessedFeatureFlags.add("disableSubviewClippingAndroid")
233-
disableSubviewClippingAndroidCache = cached
234-
}
235-
return cached
236-
}
237-
238227
override fun disableTextLayoutManagerCacheAndroid(): Boolean {
239228
var cached = disableTextLayoutManagerCacheAndroidCache
240229
if (cached == null) {

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

Lines changed: 1 addition & 3 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<<8e0059eadd2b19c49b64bb57121ba723>>
7+
* @generated SignedSource<<8cb1ac6ff5a324b86eb477cdf62f157b>>
88
*/
99

1010
/**
@@ -43,8 +43,6 @@ public interface ReactNativeFeatureFlagsProvider {
4343

4444
@DoNotStrip public fun disableMountItemReorderingAndroid(): Boolean
4545

46-
@DoNotStrip public fun disableSubviewClippingAndroid(): Boolean
47-
4846
@DoNotStrip public fun disableTextLayoutManagerCacheAndroid(): Boolean
4947

5048
@DoNotStrip public fun disableViewPreallocationAndroid(): Boolean

‎packages/react-native/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp‎

Lines changed: 1 addition & 15 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<<53efcbcc0b7fb4f8da094449e96e1584>>
7+
* @generated SignedSource<<c5c82f199e9920d2e192576a990327f4>>
88
*/
99

1010
/**
@@ -99,12 +99,6 @@ class ReactNativeFeatureFlagsJavaProvider
9999
return method(javaProvider_);
100100
}
101101

102-
bool disableSubviewClippingAndroid() override {
103-
static const auto method =
104-
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("disableSubviewClippingAndroid");
105-
return method(javaProvider_);
106-
}
107-
108102
bool disableTextLayoutManagerCacheAndroid() override {
109103
static const auto method =
110104
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("disableTextLayoutManagerCacheAndroid");
@@ -693,11 +687,6 @@ bool JReactNativeFeatureFlagsCxxInterop::disableMountItemReorderingAndroid(
693687
return ReactNativeFeatureFlags::disableMountItemReorderingAndroid();
694688
}
695689

696-
bool JReactNativeFeatureFlagsCxxInterop::disableSubviewClippingAndroid(
697-
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
698-
return ReactNativeFeatureFlags::disableSubviewClippingAndroid();
699-
}
700-
701690
bool JReactNativeFeatureFlagsCxxInterop::disableTextLayoutManagerCacheAndroid(
702691
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
703692
return ReactNativeFeatureFlags::disableTextLayoutManagerCacheAndroid();
@@ -1204,9 +1193,6 @@ void JReactNativeFeatureFlagsCxxInterop::registerNatives() {
12041193
makeNativeMethod(
12051194
"disableMountItemReorderingAndroid",
12061195
JReactNativeFeatureFlagsCxxInterop::disableMountItemReorderingAndroid),
1207-
makeNativeMethod(
1208-
"disableSubviewClippingAndroid",
1209-
JReactNativeFeatureFlagsCxxInterop::disableSubviewClippingAndroid),
12101196
makeNativeMethod(
12111197
"disableTextLayoutManagerCacheAndroid",
12121198
JReactNativeFeatureFlagsCxxInterop::disableTextLayoutManagerCacheAndroid),

‎packages/react-native/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h‎

Lines changed: 1 addition & 4 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<<ec2699ae9f8ee37d8776217d3d974dac>>
7+
* @generated SignedSource<<75f8f7e39751768bcab38f014fd8a548>>
88
*/
99

1010
/**
@@ -60,9 +60,6 @@ class JReactNativeFeatureFlagsCxxInterop
6060
static bool disableMountItemReorderingAndroid(
6161
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
6262

63-
static bool disableSubviewClippingAndroid(
64-
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
65-
6663
static bool disableTextLayoutManagerCacheAndroid(
6764
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
6865

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

Lines changed: 1 addition & 5 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<<fefa483947602384bd254d00eec4d699>>
7+
* @generated SignedSource<<0082b7c8dfd02f031e1d72abda4a1c0e>>
88
*/
99

1010
/**
@@ -66,10 +66,6 @@ bool ReactNativeFeatureFlags::disableMountItemReorderingAndroid() {
6666
return getAccessor().disableMountItemReorderingAndroid();
6767
}
6868

69-
bool ReactNativeFeatureFlags::disableSubviewClippingAndroid() {
70-
return getAccessor().disableSubviewClippingAndroid();
71-
}
72-
7369
bool ReactNativeFeatureFlags::disableTextLayoutManagerCacheAndroid() {
7470
return getAccessor().disableTextLayoutManagerCacheAndroid();
7571
}

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

Lines changed: 1 addition & 6 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<<f20f175d0628995e9659684d0803f997>>
7+
* @generated SignedSource<<fae9308c59dc16f3c301bfe705fa77ee>>
88
*/
99

1010
/**
@@ -91,11 +91,6 @@ class ReactNativeFeatureFlags {
9191
*/
9292
RN_EXPORT static bool disableMountItemReorderingAndroid();
9393

94-
/**
95-
* Force disable subview clipping for ReactViewGroup on Android
96-
*/
97-
RN_EXPORT static bool disableSubviewClippingAndroid();
98-
9994
/**
10095
* Turns off the global measurement cache used by TextLayoutManager on Android.
10196
*/

0 commit comments

Comments
 (0)