Final binary size

Hi everyone,

I was making an asset-free game where I draw everything using Corona’s display functions and when I got a build for Android, the build size was 6.7MB(iOS build size should also be near). That got me thinking: is it possible to make the binary smaller, either through Native or SDK?

Not that I’m aware of.  That is about the lower limit (varies) for a Corona build.  Actually it’s a bit smaller than it used to be.

Back in the day it was somewhere near 8MB I think so there’s some significant improvement there. I wish there was a way to make it smaller by removing “res” folder. It could save up to 1.3MB more which could take the size below 6MB.

This request: http://feedback.coronalabs.com/forums/188732-corona-feature-requests-feedback/suggestions/8387781-allow-widget-theme-imags-to-be-excluded-from-build

the binary libs are ~4.7M, hard to get classes.dex much less than 1M, widget+ouya another 1M, and there’s your 6.7M min build.

btw, note that you CAN easily replace ouya and tv banner with tiny png versions - not much savings tho. (~150k)

replacing the widget images requires manually resigning and zipalign’ing the apk = hassle.

A small script from Vlad for Android builds minimizing the build size to 2.8-3.9MB  - https://gist.github.com/Shchvova/225b74d47d4b0a1548292c29d02cf249

@davebollinger, a bit of a hack but I think it won’t work for iOS builds, right?

No, that’s for Android only.

Rob

By the way, looking at this article on Medium, Corona is in a pretty good place considering APK sizes.

https://android.jlelse.eu/comparing-apk-sizes-a0eb37bb36f

Not that I’m aware of.  That is about the lower limit (varies) for a Corona build.  Actually it’s a bit smaller than it used to be.

Back in the day it was somewhere near 8MB I think so there’s some significant improvement there. I wish there was a way to make it smaller by removing “res” folder. It could save up to 1.3MB more which could take the size below 6MB.

This request: http://feedback.coronalabs.com/forums/188732-corona-feature-requests-feedback/suggestions/8387781-allow-widget-theme-imags-to-be-excluded-from-build

the binary libs are ~4.7M, hard to get classes.dex much less than 1M, widget+ouya another 1M, and there’s your 6.7M min build.

btw, note that you CAN easily replace ouya and tv banner with tiny png versions - not much savings tho. (~150k)

replacing the widget images requires manually resigning and zipalign’ing the apk = hassle.

A small script from Vlad for Android builds minimizing the build size to 2.8-3.9MB  - https://gist.github.com/Shchvova/225b74d47d4b0a1548292c29d02cf249

@davebollinger, a bit of a hack but I think it won’t work for iOS builds, right?

No, that’s for Android only.

Rob

By the way, looking at this article on Medium, Corona is in a pretty good place considering APK sizes.

https://android.jlelse.eu/comparing-apk-sizes-a0eb37bb36f