From d0a06bfbee9405e5628c52b11251e2bb2f2f6c02 Mon Sep 17 00:00:00 2001 From: Jiwan <32343606+jiwansvmx@users.noreply.github.com> Date: Thu, 28 Jan 2021 17:15:07 -0800 Subject: [PATCH] use afterEvaluate instead of gradle.projectsEvaluated I ran into #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. --- android/codepush.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/codepush.gradle b/android/codepush.gradle index 51e2af323..b717f911a 100644 --- a/android/codepush.gradle +++ b/android/codepush.gradle @@ -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