diff --git a/react.gradle b/react.gradle index 2e9d8e51fb61b3..6644639a5dcfb3 100644 --- a/react.gradle +++ b/react.gradle @@ -464,3 +464,17 @@ afterEvaluate { } } } + +// Patch needed for https://github.com/facebook/react-native/issues/35210 +// This is a patch to short-circuit the "+" dependencies inside the +// users' app/build.gradle file and the various .gradle files of libraries. +// As using plain "+" dependencies causes Gradle to always download the latest, +// this logic forces Gradle to use latest release in the minor series. +project.rootProject.allprojects { + configurations.all { + resolutionStrategy { + force "com.facebook.react:react-native:0.69.+" + force "com.facebook.react:hermes-engine:0.69.+" + } + } +} \ No newline at end of file