Add support for Play Asset Delivery.

This only adds support for a subset of Play Asset Delivery: this causes a single install-time asset pack to always be present, but doesn't add support for dynamically downloaded asset packs.
This commit is contained in:
ne0fhyk
2021-09-09 19:55:42 -07:00
parent 32f8f74d83
commit 5bbfe0b5a8
8 changed files with 50 additions and 13 deletions

View File

@@ -0,0 +1,8 @@
apply plugin: 'com.android.asset-pack'
assetPack {
packName = "installTime" // Directory name for the asset pack
dynamicDelivery {
deliveryType = "install-time" // Delivery mode
}
}

View File

@@ -72,6 +72,8 @@ android {
targetCompatibility versions.javaVersion
}
assetPacks = [":assetPacks:installTime"]
defaultConfig {
// The default ignore pattern for the 'assets' directory includes hidden files and directories which are used by Godot projects.
aaptOptions {

View File

@@ -1,2 +1,2 @@
// Empty settings.gradle file to denote this directory as being the root project
// of the Godot custom build.
// This is the root directory of the Godot custom build.
include ':assetPacks:installTime'