Skip to content

Commit

Permalink
[LOCAL] Add an afterEvaluate to solve AGP 4.1.x configuration resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico committed Nov 7, 2022
1 parent eef9542 commit 667f1bd
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 @@ -355,10 +355,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.64.+"
force "com.facebook.react:hermes-engine:0.64.+"
// This extra afterEvaluate is needed due to how AGP 4.1.x is resolving
// Gradle configurations.
afterEvaluate {
configurations.all {
resolutionStrategy {
force "com.facebook.react:react-native:0.64.+"
force "com.facebook.react:hermes-engine:0.64.+"
}
}
}
}

0 comments on commit 667f1bd

Please sign in to comment.