Skip to content

Commit 201824c

Browse files
committed
Force dependencies resolution to minor series for 0.66
1 parent 1b31d6b commit 201824c

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
@@ -363,3 +363,17 @@ afterEvaluate {
363363
}
364364
}
365365
}
366+
367+
// Patch needed for https://github.com/facebook/react-native/issues/35210
368+
// This is a patch to short-circuit the "+" dependencies inside the
369+
// users' app/build.gradle file and the various .gradle files of libraries.
370+
// As using plain "+" dependencies causes Gradle to always download the latest,
371+
// this logic forces Gradle to use latest release in the minor series.
372+
project.rootProject.allprojects {
373+
configurations.all {
374+
resolutionStrategy {
375+
force "com.facebook.react:react-native:0.66.+"
376+
force "com.facebook.react:hermes-engine:0.66.+"
377+
}
378+
}
379+
}

0 commit comments

Comments
 (0)