GoogleChromeLabs / svgomg-twa

A sample that project Trusted Web Activities technology to wrap SVGOMG in an Android Application
Apache License 2.0
519 stars 132 forks source link

Reduce size of the app 😂 #69

Closed happylolonly closed 4 years ago

happylolonly commented 4 years ago

Hi everyone, it is possible to reduce a size TWA from 500-700kb to, for example, 150kb ? Fight for web;)

What need to do?

I had ~650kb, changed icon and splash screen, now ~750kb... https://play.google.com/store/apps/details?id=by.freefitness.app

happylolonly commented 4 years ago

TWA preload whole PWA? How much % Android code in it?

PEConn commented 4 years ago

Hey,

I've had a brief look into this but not found any low hanging fruit. It appears that there's a bunch of resources pulled in by the Android Support Library (things like themes and icons). This project already has Proguard enabled, so the next step is to find out why these resources are still being included (since as far as I can tell they're not used).

If you fancy having a try yourself there's some info here (especially the last section about troubleshooting), otherwise Andre or I will get to it when time/priority allows.

andreban commented 4 years ago

Closing this in favour of tracking in llama-pack: https://github.com/GoogleChromeLabs/llama-pack/issues/107