Skip to content

Commit 59407a4

Browse files
committed
Force dependencies resolution to minor series for 0.70
1 parent 54e6662 commit 59407a4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

react.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,3 +466,17 @@ afterEvaluate {
466466
}
467467
}
468468
}
469+
470+
// Patch needed for https://github.com/facebook/react-native/issues/35210
471+
// This is a patch to short-circuit the "+" dependencies inside the
472+
// users' app/build.gradle file and the various .gradle files of libraries.
473+
// As using plain "+" dependencies causes Gradle to always download the latest,
474+
// this logic forces Gradle to use latest release in the minor series.
475+
project.rootProject.allprojects {
476+
configurations.all {
477+
resolutionStrategy {
478+
force "com.facebook.react:react-native:0.70.+"
479+
force "com.facebook.react:hermes-engine:0.70.+"
480+
}
481+
}
482+
}

0 commit comments

Comments
 (0)