mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 12:03:09 -04:00
updated sync code
This commit is contained in:
parent
7b1df6fb9a
commit
304017ac2a
@ -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()
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user