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