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.
This commit is contained in:
MohitMali 2023-10-19 16:03:56 +05:30
parent 725a5ccd0b
commit 1d39d35d98

View File

@ -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"))
}
}