Open wuniversales opened 7 months ago
@IzzySoft might be able too add it to his repo like Digilog TV, though the stream sources might need more thorough legal vetting https://github.com/aldrinzigmundv/digilogtv/issues/1#issuecomment-1722678935
@ThreeDeeJay Unfortunately, size of the APKs (60+ MB) exceed the per-app-limit (30 MB) of the IzzyOnDroid repo :cry:
Hmm, the app already seems to download done assets to work, so perhaps it could offload some more data to GitHub download or something 🤔
@IzzySoft @ThreeDeeJay After migrating from Cordova to Capacitor and using Rollup to bundle the files, among other changes, the APK size has now increased decreased to around ~38MB. It's challenging to reduce it further since the app requires capacitor-nodejs and Exoplayer. :/
size has now increased to around ~38MB.
Decreased you mean (it was around 60 MB before) – which is quite good, almost reducing it to half the size! But yes, still beyond the 30 MB limit unfortunately. And yeah, with NodeJS it's hard to even get a "hello world" below 10 MB I guess, which is sad. Not sure what can be done about that. I've heard LiquidCore can be used as alternative, but I have no idea what that would mean in terms of size (or if it would be 100% compatible and the switch easy).
Something else I found, though it won't help that much: the images in assets/public/nodejs/renderer/assets/images
. I ran jpegoptim -m70 -s
on the 2 background images. background-1920x1080.jpg
went down from almost 500 kB to less than 45 kB, background-3840x2160.jpg
from 350 to 120. So more than 600 kB size reduction together. Running pnquant
on assets/public/nodejs/default_icon.png
gave another 75 kB. You'd still sit around 37 MB then, though – unless LiquidCore would be able to achieve further reduction.
I guess you already strip symbols? And I'm no Node dev so I cannot tell, but maybe some of the hints from Node module size : See how I reduced it by 90% could help further?
Does anything prevent from adding Megacubo to the official f-droid repo?
Please, add megacubo to the store! Thanks