Refactored the code to make the 'Play Asset Delivery' process generic.

* Renamed the module to 'install_time_asset' to make it generic for every custom app.
This commit is contained in:
MohitMali 2023-10-20 16:16:34 +05:30
parent 724f4a7ff4
commit 338d64efa7
4 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ android {
enableSplit = false enableSplit = false
} }
} }
assetPacks += ":install_time_asset_for_dwds" assetPacks += ":install_time_asset"
} }
fun ProductFlavor.createDownloadTask(file: File): Task { fun ProductFlavor.createDownloadTask(file: File): Task {

View File

@ -1,7 +1,7 @@
apply plugin: 'com.android.asset-pack' apply plugin: 'com.android.asset-pack'
assetPack { assetPack {
packName = "install_time_asset_for_dwds" // Directory name for the asset pack packName = "install_time_asset" // Directory name for the asset pack
dynamicDelivery { dynamicDelivery {
deliveryType = "install-time" // delivery mode deliveryType = "install-time" // delivery mode
} }

View File

@ -2,6 +2,6 @@ include(
":core", ":core",
":app", ":app",
":custom", ":custom",
":install_time_asset_for_dwds" ":install_time_asset"
) )
rootProject.name = "kiwix-android" rootProject.name = "kiwix-android"