From 1d39d35d98a7f73b56de7f581ea8154ba200e6c4 Mon Sep 17 00:00:00 2001 From: MohitMali Date: Thu, 19 Oct 2023 16:03:56 +0530 Subject: [PATCH] Added build task to sync the changes. * In our 'publishingBundle' task, we are sequentially executing the 'downloading' and 'buildingBundle' tasks. Since we dynamically download and place the ZIM file, Gradle does not initially recognize any new files added to the asset folder. As a result, these files are not included in our bundle. Now, after downloading and placing the ZIM file in the asset folder, we synchronize our changes, allowing Gradle to detect the addition of new files. --- custom/build.gradle.kts | 1 + 1 file changed, 1 insertion(+) diff --git a/custom/build.gradle.kts b/custom/build.gradle.kts index ea169a071..0a9206d4c 100644 --- a/custom/build.gradle.kts +++ b/custom/build.gradle.kts @@ -225,6 +225,7 @@ afterEvaluate { val flavorName = it.name.substringAfter("publish").substringBefore("ReleaseBundleWithPlayAssetDelivery") it.dependsOn.add(tasks.getByName("download${flavorName}ZimAndPutInAssetFolder")) + it.dependsOn.add(tasks.getByName("build")) it.dependsOn.add(tasks.getByName("bundle${flavorName}Release")) } }