APK Expansion Extension

So, I made a native extension that lets you read LiveUpdate content from a Google Play APK expansion file. This is useful if you have a game that doesn’t fit in the 100MB max APK size.

Here you go: https://github.com/dapetcu21/defold-apkx

This contains APIs that handle the downloading of expansion files and utility functions for handling ZIP files. For now the ZIP functions do sync I/O, so may block the game’s thread a bit, but it isn’t much of a problem for a loading screen, especially if you spread the load across multiple frames to prevent ANRs.

14 Likes

Bravo! This community owes a lot to your contributions!

8 Likes

This is great! Thanks a lot :smiley:

2 Likes

I took the liberty of adding this to the Asset Portal: https://defold.com/assets/apkx/

2 Likes

Great! I have a game that doesn’t match the APK size download at Techlory thanks to your article I can play, thank you