Skip to content

Commit

Permalink
[LOCAL] Add an afterEvaluate to solve AGP 3.x configuration resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico committed Nov 7, 2022
1 parent 28cc286 commit 473a360
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions react.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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.+"
}
}
}
}

0 comments on commit 473a360

Please sign in to comment.