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()
// }
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()
}
}
}