From 304017ac2aa769484c0d428f8dfb297311dc29b1 Mon Sep 17 00:00:00 2001 From: Gouri Panda Date: Thu, 19 Oct 2023 04:36:36 +0530 Subject: [PATCH] updated sync code --- custom/build.gradle.kts | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/custom/build.gradle.kts b/custom/build.gradle.kts index 58f1e1a1c..9a6d45d28 100644 --- a/custom/build.gradle.kts +++ b/custom/build.gradle.kts @@ -44,23 +44,10 @@ android { // createPublishBundleWithAssetPlayDelivery() // } runBlocking { - val downloadTaskDeferred = async { - withContext(Dispatchers.IO) { - val file = - File("$projectDir/../install_time_asset_for_dwds/src/main/assets", "$name.zim") - createDownloadTaskForPlayAssetDelivery(file) - } + File("$projectDir/../install_time_asset_for_dwds/src/main/assets", "$name.zim").let { + createDownloadTaskForPlayAssetDelivery(it) + createPublishBundleWithAssetPlayDelivery() } - downloadTaskDeferred.await() - - val bundleTaskDeferred = async { - withContext(Dispatchers.Default) { - createPublishBundleWithAssetPlayDelivery() - } - } - - bundleTaskDeferred.await() - } } }