Skip to content

Commit edcb3ca

Browse files
committed
Force dependencies resolution to minor series for 0.68
1 parent b55518c commit edcb3ca

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
@@ -440,3 +440,17 @@ afterEvaluate {
440440
}
441441
}
442442
}
443+
444+
// Patch needed for https://github.com/facebook/react-native/issues/35210
445+
// This is a patch to short-circuit the "+" dependencies inside the
446+
// users' app/build.gradle file and the various .gradle files of libraries.
447+
// As using plain "+" dependencies causes Gradle to always download the latest,
448+
// this logic forces Gradle to use latest release in the minor series.
449+
project.rootProject.allprojects {
450+
configurations.all {
451+
resolutionStrategy {
452+
force "com.facebook.react:react-native:0.68.+"
453+
force "com.facebook.react:hermes-engine:0.68.+"
454+
}
455+
}
456+
}

0 commit comments

Comments
 (0)