Skip to content

Commit 736f608

Browse files
committed
re-generated feature flag generated files
1 parent 4c8b6a6 commit 736f608

19 files changed

+151
-45
lines changed

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

Lines changed: 7 additions & 1 deletion
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<<34c12f5a31aab5bfb874953f1beefef1>>
7+
* @generated SignedSource<<2ecd46fdcab0202d62304dd9cdff76e0>>
88
*/
99

1010
/**
@@ -294,6 +294,12 @@ public object ReactNativeFeatureFlags {
294294
@JvmStatic
295295
public fun enableVirtualViewWindowFocusDetection(): Boolean = accessor.enableVirtualViewWindowFocusDetection()
296296

297+
/**
298+
* Enable Web Performance APIs (Performance Timeline, User Timings, etc.) by default.
299+
*/
300+
@JvmStatic
301+
public fun enableWebPerformanceAPIsByDefault(): Boolean = accessor.enableWebPerformanceAPIsByDefault()
302+
297303
/**
298304
* Uses the default event priority instead of the discreet event priority by default when dispatching events from Fabric to React.
299305
*/

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

Lines changed: 11 additions & 1 deletion
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<<392da016e0bf4193b72c44a508811e10>>
7+
* @generated SignedSource<<3cbd83777e0840419fee9d582b4da692>>
88
*/
99

1010
/**
@@ -64,6 +64,7 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
6464
private var enableVirtualViewDebugFeaturesCache: Boolean? = null
6565
private var enableVirtualViewRenderStateCache: Boolean? = null
6666
private var enableVirtualViewWindowFocusDetectionCache: Boolean? = null
67+
private var enableWebPerformanceAPIsByDefaultCache: Boolean? = null
6768
private var fixMappingOfEventPrioritiesBetweenFabricAndReactCache: Boolean? = null
6869
private var fuseboxEnabledReleaseCache: Boolean? = null
6970
private var fuseboxNetworkInspectionEnabledCache: Boolean? = null
@@ -486,6 +487,15 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
486487
return cached
487488
}
488489

490+
override fun enableWebPerformanceAPIsByDefault(): Boolean {
491+
var cached = enableWebPerformanceAPIsByDefaultCache
492+
if (cached == null) {
493+
cached = ReactNativeFeatureFlagsCxxInterop.enableWebPerformanceAPIsByDefault()
494+
enableWebPerformanceAPIsByDefaultCache = cached
495+
}
496+
return cached
497+
}
498+
489499
override fun fixMappingOfEventPrioritiesBetweenFabricAndReact(): Boolean {
490500
var cached = fixMappingOfEventPrioritiesBetweenFabricAndReactCache
491501
if (cached == null) {

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

Lines changed: 3 additions & 1 deletion
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<<a0453230524ebca2bfb8fad656a6f54a>>
7+
* @generated SignedSource<<b92c1fc5d527033d0f7988d88533eb03>>
88
*/
99

1010
/**
@@ -116,6 +116,8 @@ public object ReactNativeFeatureFlagsCxxInterop {
116116

117117
@DoNotStrip @JvmStatic public external fun enableVirtualViewWindowFocusDetection(): Boolean
118118

119+
@DoNotStrip @JvmStatic public external fun enableWebPerformanceAPIsByDefault(): Boolean
120+
119121
@DoNotStrip @JvmStatic public external fun fixMappingOfEventPrioritiesBetweenFabricAndReact(): Boolean
120122

121123
@DoNotStrip @JvmStatic public external fun fuseboxEnabledRelease(): Boolean

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

Lines changed: 3 additions & 1 deletion
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<<719706a983a073b6c286c49d993f7f80>>
7+
* @generated SignedSource<<71354bd41b222239b80129659f5f5d21>>
88
*/
99

1010
/**
@@ -111,6 +111,8 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
111111

112112
override fun enableVirtualViewWindowFocusDetection(): Boolean = false
113113

114+
override fun enableWebPerformanceAPIsByDefault(): Boolean = false
115+
114116
override fun fixMappingOfEventPrioritiesBetweenFabricAndReact(): Boolean = false
115117

116118
override fun fuseboxEnabledRelease(): Boolean = false

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

Lines changed: 12 additions & 1 deletion
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<<594815ba6a984c460ab8bddd91c5cae2>>
7+
* @generated SignedSource<<4ad6fc15663277c2c8b4843f42a078f8>>
88
*/
99

1010
/**
@@ -68,6 +68,7 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
6868
private var enableVirtualViewDebugFeaturesCache: Boolean? = null
6969
private var enableVirtualViewRenderStateCache: Boolean? = null
7070
private var enableVirtualViewWindowFocusDetectionCache: Boolean? = null
71+
private var enableWebPerformanceAPIsByDefaultCache: Boolean? = null
7172
private var fixMappingOfEventPrioritiesBetweenFabricAndReactCache: Boolean? = null
7273
private var fuseboxEnabledReleaseCache: Boolean? = null
7374
private var fuseboxNetworkInspectionEnabledCache: Boolean? = null
@@ -534,6 +535,16 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
534535
return cached
535536
}
536537

538+
override fun enableWebPerformanceAPIsByDefault(): Boolean {
539+
var cached = enableWebPerformanceAPIsByDefaultCache
540+
if (cached == null) {
541+
cached = currentProvider.enableWebPerformanceAPIsByDefault()
542+
accessedFeatureFlags.add("enableWebPerformanceAPIsByDefault")
543+
enableWebPerformanceAPIsByDefaultCache = cached
544+
}
545+
return cached
546+
}
547+
537548
override fun fixMappingOfEventPrioritiesBetweenFabricAndReact(): Boolean {
538549
var cached = fixMappingOfEventPrioritiesBetweenFabricAndReactCache
539550
if (cached == null) {

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

Lines changed: 3 additions & 1 deletion
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<<dfbd5e84392f1fda0e68324582c328b2>>
7+
* @generated SignedSource<<51e9b65c32aa4a990f21afd4f0244223>>
88
*/
99

1010
/**
@@ -111,6 +111,8 @@ public interface ReactNativeFeatureFlagsProvider {
111111

112112
@DoNotStrip public fun enableVirtualViewWindowFocusDetection(): Boolean
113113

114+
@DoNotStrip public fun enableWebPerformanceAPIsByDefault(): Boolean
115+
114116
@DoNotStrip public fun fixMappingOfEventPrioritiesBetweenFabricAndReact(): Boolean
115117

116118
@DoNotStrip public fun fuseboxEnabledRelease(): Boolean

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

Lines changed: 15 additions & 1 deletion
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<<16b12024bb363358ef09b9a42cb2fc97>>
7+
* @generated SignedSource<<f4ec3b7b6f99dd3409d872470872ece6>>
88
*/
99

1010
/**
@@ -303,6 +303,12 @@ class ReactNativeFeatureFlagsJavaProvider
303303
return method(javaProvider_);
304304
}
305305

306+
bool enableWebPerformanceAPIsByDefault() override {
307+
static const auto method =
308+
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("enableWebPerformanceAPIsByDefault");
309+
return method(javaProvider_);
310+
}
311+
306312
bool fixMappingOfEventPrioritiesBetweenFabricAndReact() override {
307313
static const auto method =
308314
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("fixMappingOfEventPrioritiesBetweenFabricAndReact");
@@ -677,6 +683,11 @@ bool JReactNativeFeatureFlagsCxxInterop::enableVirtualViewWindowFocusDetection(
677683
return ReactNativeFeatureFlags::enableVirtualViewWindowFocusDetection();
678684
}
679685

686+
bool JReactNativeFeatureFlagsCxxInterop::enableWebPerformanceAPIsByDefault(
687+
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
688+
return ReactNativeFeatureFlags::enableWebPerformanceAPIsByDefault();
689+
}
690+
680691
bool JReactNativeFeatureFlagsCxxInterop::fixMappingOfEventPrioritiesBetweenFabricAndReact(
681692
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
682693
return ReactNativeFeatureFlags::fixMappingOfEventPrioritiesBetweenFabricAndReact();
@@ -965,6 +976,9 @@ void JReactNativeFeatureFlagsCxxInterop::registerNatives() {
965976
makeNativeMethod(
966977
"enableVirtualViewWindowFocusDetection",
967978
JReactNativeFeatureFlagsCxxInterop::enableVirtualViewWindowFocusDetection),
979+
makeNativeMethod(
980+
"enableWebPerformanceAPIsByDefault",
981+
JReactNativeFeatureFlagsCxxInterop::enableWebPerformanceAPIsByDefault),
968982
makeNativeMethod(
969983
"fixMappingOfEventPrioritiesBetweenFabricAndReact",
970984
JReactNativeFeatureFlagsCxxInterop::fixMappingOfEventPrioritiesBetweenFabricAndReact),

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

Lines changed: 4 additions & 1 deletion
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<<54118ccd475a8bf1d7db83304b1f17d0>>
7+
* @generated SignedSource<<d34119ad2e9a068463e8a31ecced59d9>>
88
*/
99

1010
/**
@@ -162,6 +162,9 @@ class JReactNativeFeatureFlagsCxxInterop
162162
static bool enableVirtualViewWindowFocusDetection(
163163
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
164164

165+
static bool enableWebPerformanceAPIsByDefault(
166+
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
167+
165168
static bool fixMappingOfEventPrioritiesBetweenFabricAndReact(
166169
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
167170

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

Lines changed: 5 additions & 1 deletion
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<<12a06ea04fc09c34f1fbdcbdf6046d81>>
7+
* @generated SignedSource<<ce235bb558df2f110e0446e68cf6bc6a>>
88
*/
99

1010
/**
@@ -202,6 +202,10 @@ bool ReactNativeFeatureFlags::enableVirtualViewWindowFocusDetection() {
202202
return getAccessor().enableVirtualViewWindowFocusDetection();
203203
}
204204

205+
bool ReactNativeFeatureFlags::enableWebPerformanceAPIsByDefault() {
206+
return getAccessor().enableWebPerformanceAPIsByDefault();
207+
}
208+
205209
bool ReactNativeFeatureFlags::fixMappingOfEventPrioritiesBetweenFabricAndReact() {
206210
return getAccessor().fixMappingOfEventPrioritiesBetweenFabricAndReact();
207211
}

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

Lines changed: 6 additions & 1 deletion
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<<eee81e4e9bb13ef5134d4e2d79876b38>>
7+
* @generated SignedSource<<55cd4ef6cd8902af5c0959077336b0bb>>
88
*/
99

1010
/**
@@ -259,6 +259,11 @@ class ReactNativeFeatureFlags {
259259
*/
260260
RN_EXPORT static bool enableVirtualViewWindowFocusDetection();
261261

262+
/**
263+
* Enable Web Performance APIs (Performance Timeline, User Timings, etc.) by default.
264+
*/
265+
RN_EXPORT static bool enableWebPerformanceAPIsByDefault();
266+
262267
/**
263268
* Uses the default event priority instead of the discreet event priority by default when dispatching events from Fabric to React.
264269
*/

0 commit comments

Comments
 (0)