From 28cc286cc4d43b9fe5153d779ea3eecf4d72c51e Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Sun, 6 Nov 2022 19:44:44 +0000 Subject: [PATCH] [LOCAL] Force dependencies resolution to minor series for 0.63 --- react.gradle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/react.gradle b/react.gradle index c28cbd4ed87..a41bca05778 100644 --- a/react.gradle +++ b/react.gradle @@ -354,3 +354,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.63.+" + force "com.facebook.react:hermes-engine:0.63.+" + } + } +}