banshee / AndroidProguardScala

An Eclipse builder for Android projects using Scala
136 stars 10 forks source link

Why do I need a ProGuard run on every build? #13

Closed ti-dev closed 11 years ago

ti-dev commented 11 years ago

I have a general question about this plugin. Readme file tells me: "Scala + Android requires a Proguard run on every build."

Why is it required? Pure Android + Java development does not need ProGuard at all.

banshee commented 11 years ago

Long answer: http://blog.restphone.com/2012/07/scala-on-android-what-you-need-to-know.html

Short answer: Android code has a limit on the size of libraries that it can use. The standard scala library is above that size, so without proguard, you can't run scala apps. (The restriction isn't scala-specific; any library above the limit has the same problem.)