updated sync code

This commit is contained in:
Gouri Panda 2023-10-19 04:36:36 +05:30
parent 7b1df6fb9a
commit 304017ac2a

View File

@ -44,23 +44,10 @@ android {
// createPublishBundleWithAssetPlayDelivery() // createPublishBundleWithAssetPlayDelivery()
// } // }
runBlocking { runBlocking {
val downloadTaskDeferred = async { File("$projectDir/../install_time_asset_for_dwds/src/main/assets", "$name.zim").let {
withContext(Dispatchers.IO) { createDownloadTaskForPlayAssetDelivery(it)
val file = createPublishBundleWithAssetPlayDelivery()
File("$projectDir/../install_time_asset_for_dwds/src/main/assets", "$name.zim")
createDownloadTaskForPlayAssetDelivery(file)
}
} }
downloadTaskDeferred.await()
val bundleTaskDeferred = async {
withContext(Dispatchers.Default) {
createPublishBundleWithAssetPlayDelivery()
}
}
bundleTaskDeferred.await()
} }
} }
} }