Everything
I use proguard to obfuscate a scala application.
At this moment I use very little of the scala library, but still my bank is ~ 300 KB, 99% of them are scala-library classes.
Using the -whyareyoukeeping parameter, I see that it supports any class that overrides java.lang.Object methods, such as "toString" or "equals". for instance
scala.Some is invoked by scala.Some.equals (300:300) implements java.lang.Object.equals is a library method.
And so scala. Some class is preserved, although I do not use it in my code.
Is there a way to fix this, so that I only save the classes that I use in my code?
Thanks Amir
source share