Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gradle: Embed assets in baseAssets "Play Asset Delivery" pack #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MarijnS95
Copy link
Member

Assets for AABs could be embedded in the application pack but have significant limitations and size constraints. Implement the most simple form of an asset pack that comprises all assets listed in manifest.yaml in an install-time pack that is a fixed dependency of the app. This makes the files available to AAssetManager as soon as the app is started while being exempt of the 150MB limit.

This matches the existing "asset embedding" functionality provided by our native APK build.

https://developer.android.com/guide/playcore/asset-delivery/integrate-native

@@ -14,3 +14,4 @@ dependencyResolutionManagement {
}

include ':app'
include ':baseAssets'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this folder/file is optional, and I'm a tad confused that gradle doesn't complain when it doesn't exist.

The app would obviously complain when there's assetPacks = [":baseAssets"] to a pack that doesn't exist, obviously :)

Assets for AABs could be embedded in the application pack but have
significant limitations and size constraints.  Implement the most
simple form of an asset pack that comprises all assets listed in
`manifest.yaml` in an `install-time` pack that is a fixed dependency of
the app.  This makes the files available to `AAssetManager` as soon as
the app is started while being exempt of the 150MB limit.

This matches the existing "asset embedding" functionality provided by
our native APK build.

https://developer.android.com/guide/playcore/asset-delivery/integrate-native
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant