mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
[LOCAL] Add an afterEvaluate to solve AGP 3.x configuration resolution
This commit is contained in:
+8
-4
@@ -361,10 +361,14 @@ afterEvaluate {
|
||||
// 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.63.+"
|
||||
force "com.facebook.react:hermes-engine:0.63.+"
|
||||
// This extra afterEvaluate is needed due to how AGP 3.x is resolving
|
||||
// Gradle configurations.
|
||||
afterEvaluate {
|
||||
configurations.all {
|
||||
resolutionStrategy {
|
||||
force "com.facebook.react:react-native:0.63.+"
|
||||
force "com.facebook.react:hermes-engine:0.63.+"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user