Skip to content
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

libpl_droidsonroids_gif.so file size of the explosion #383

Closed
panpf opened this issue Jan 18, 2017 · 3 comments
Closed

libpl_droidsonroids_gif.so file size of the explosion #383

panpf opened this issue Jan 18, 2017 · 3 comments
Labels

Comments

@panpf
Copy link

panpf commented Jan 18, 2017

I noticed a single libpl_droidsonroids_gif.so file size from the 1.1.7 version of the 30KB soaring to the current 300KB, I would like to know what happened? Now the size of some difficult to accept!

@koral--
Copy link
Owner

koral-- commented Jan 18, 2017

It doesn't seem to be intended. I'll investigate this.

@koral--
Copy link
Owner

koral-- commented Jan 21, 2017

There are 2 reasons:

  1. in version 1.1.7 there was 2 separate .so files (additionally libpl_droidsonroids_gif_surface.so) now, everything is located in libpl_droidsonroids_gif.so
  2. version 1.2.3 started using externalNativeBuild from Android Gradle plugin instead of custom gradle scripts for NDK to compile native sources. This caused major size growth.

Current sources compiled using old script gives libpl_droidsonroids_gif.so having 42KB.
I'll fix it ASAP.

@koral--
Copy link
Owner

koral-- commented Jan 21, 2017

It turns out that -g option is added implicitly when using externalNativeBuild which causes adding debuging symbols and library size growth.

Fixed in 1.2.5-SNAPSHOT. Size of whole AAR reduced from 881505 to 264435 bytes.
Thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants