Skip to content

Commit

Permalink
use afterEvaluate instead of gradle.projectsEvaluated
Browse files Browse the repository at this point in the history
I ran into microsoft#1981 and upon digging in I noticed that that generateBundledResourcesHash task does not run when org.gradle.configureondemand is set to true. This diff uses  afterEvaluate instead of  gradle.projectsEvaluated to ensure that the generateBundledResourcesHash is run.
  • Loading branch information
jiwansvmx authored Jan 29, 2021
1 parent 9947037 commit d0a06bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/codepush.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void runBefore(String dependentTaskName, Task task) {
}
}

gradle.projectsEvaluated {
afterEvaluate {
android.buildTypes.each {
// to prevent incorrect long value restoration from strings.xml we need to wrap it with double quotes
// https://github.com/microsoft/cordova-plugin-code-push/issues/264
Expand Down

0 comments on commit d0a06bf

Please sign in to comment.