From edcb3ca996fb3296762af300a36c1d46356f1b24 Mon Sep 17 00:00:00 2001 From: Thibault Malbranche Date: Sun, 6 Nov 2022 20:46:09 +0100 Subject: [PATCH] Force dependencies resolution to minor series for 0.68 --- react.gradle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/react.gradle b/react.gradle index d876b136bf2c4d..4f6db400e06837 100644 --- a/react.gradle +++ b/react.gradle @@ -440,3 +440,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.68.+" + force "com.facebook.react:hermes-engine:0.68.+" + } + } +} \ No newline at end of file