Pruning a library with ProGuard
I am facing a dex limitation problem and I would like to avoid using multi-dex. I noticed that it okHttp
has a separate internal package for spdy
, and since my application is not using it, I am trying to remove it.
I added these two lines to proguard.cfg
:
-printusage usage.txt
-assumenosideeffects class com.squareup.okhttp.internal.spdy.*
After building my application, I can see in usage.txt
several classes and methods com.squareup.okhttp.internal.spdy
, but when I run the dexdump
script, I still get:
okhttp: 1461
internal: 978
http: 233
huc: 160
io: 18
spdy: 373
tls: 19
Can anyone answer what could happen? Is there any other way to remove a package from a library?
source to share
No one has answered this question yet
Check out similar questions: