diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt index fed18a18fc7..0740394203b 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @generated SignedSource<> + * @generated SignedSource<<435993f24b4bdc9740491d5540232a9c>> */ /** @@ -84,6 +84,7 @@ object ReactNativeFeatureFlags { * }) * ``` */ + @JvmStatic fun override(provider: ReactNativeFeatureFlagsProvider) = accessor.override(provider) /** @@ -95,6 +96,7 @@ object ReactNativeFeatureFlags { * call `dangerouslyReset` after destroying the runtime and `override` * again before initializing the new one. */ + @JvmStatic fun dangerouslyReset() { // This is necessary when the accessor interops with C++ and we need to // remove the overrides set there. diff --git a/packages/react-native/scripts/featureflags/templates/android/ReactNativeFeatureFlags.kt-template.js b/packages/react-native/scripts/featureflags/templates/android/ReactNativeFeatureFlags.kt-template.js index 520dc13456c..33924031a92 100644 --- a/packages/react-native/scripts/featureflags/templates/android/ReactNativeFeatureFlags.kt-template.js +++ b/packages/react-native/scripts/featureflags/templates/android/ReactNativeFeatureFlags.kt-template.js @@ -61,6 +61,7 @@ ${Object.entries(definitions.common) * }) * \`\`\` */ + @JvmStatic fun override(provider: ReactNativeFeatureFlagsProvider) = accessor.override(provider) /** @@ -72,6 +73,7 @@ ${Object.entries(definitions.common) * call \`dangerouslyReset\` after destroying the runtime and \`override\` * again before initializing the new one. */ + @JvmStatic fun dangerouslyReset() { // This is necessary when the accessor interops with C++ and we need to // remove the overrides set there.