-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Enormous apk size increase (9MB -> 150MB) #105
Comments
We recently added the ability to remove metadata from some documents and videos that need some bigger dependencies. |
Yes, the increase is comming from the ffmpeg library, Ill see how to reduce the binary size. |
Thanks for clearing that up! I'm sure there is some way. |
I manage to build a new binary, new size per ABI is roughly 30 MB, universal APK is 40MB. |
That's an improvement 👍 |
Is it possible to get the same coverage by using using a different library, e.g., |
The size its not comming only from ffmpeg, but also from the apache-poi library. It indeed could be a reeplacement as it supports a wide range of formats, but it wont help reducing the app size. Someone mentioned a already made port for android in this issue and that one weights about 40MB, so our current solution is still even / maybe lighter, |
@Rashxz Wait, maybe 1 can decrease that bloat.… Did you see https://github.com/arthenica/ffmpeg-kit/wiki/How-to-Decrease-Binary-Size? |
Yes, I build a new binary with everything stripped. As you can see in the Image, ffmpeg takes 6.9MB of the total size. The rest is coming from all the other dependencies, being the biggest ones apache poi (for libre office) and iText (for pdf). I will take a look on the dependencies to see if theres room for improvement. |
@Rashxz I'm certain there's cheaper avenues to take for these. For pdf, may I suggest |
@Rashxz I wonder if a separate dedicated utility is actually needed for LO? Per https://superuser.com/questions/1195338/what-metadata-does-a-libreoffice-file-contain-and-how-to-remove-it, it's matter of "just" deleting 1 file & 2 lines out of another out of the doc (as LO docs are actually zip archives of a certain structure). |
Thanks |
Sorry, I did not specify it well in my previous comment, that library is not just for LO but also for Microsoft office docs. |
IIUC, #104 (comment) notes all this is blocked from landing in F-droid, so no way to see these improvements for such users. |
Something is wrong with the latest apk. This has also been talked about here #34 (comment).
Size comparison:
v2.0.2: 9.29 MB
v2.0.3: 151 MB
More than 15x increase (!). Something's wrong, maybe a debug build was accidentally published or some recent commit added some unneccessarily large library?
The text was updated successfully, but these errors were encountered: