Force dependencies resolution to minor series for 0.64

This commit is contained in:
Lorenzo Sciandra
2022-11-06 22:25:09 +00:00
parent 400902093a
commit a6a183ad81
+14
View File
@@ -348,3 +348,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.64.+"
force "com.facebook.react:hermes-engine:0.64.+"
}
}
}