Skip to content

Commit a6a183a

Browse files
committed
Force dependencies resolution to minor series for 0.64
1 parent 4009020 commit a6a183a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

react.gradle

+14
Original file line numberDiff line numberDiff line change
@@ -348,3 +348,17 @@ afterEvaluate {
348348
}
349349
}
350350
}
351+
352+
// Patch needed for https://github.com/facebook/react-native/issues/35210
353+
// This is a patch to short-circuit the "+" dependencies inside the
354+
// users' app/build.gradle file and the various .gradle files of libraries.
355+
// As using plain "+" dependencies causes Gradle to always download the latest,
356+
// this logic forces Gradle to use latest release in the minor series.
357+
project.rootProject.allprojects {
358+
configurations.all {
359+
resolutionStrategy {
360+
force "com.facebook.react:react-native:0.64.+"
361+
force "com.facebook.react:hermes-engine:0.64.+"
362+
}
363+
}
364+
}

0 commit comments

Comments
 (0)