jberkel / android-plugin

An sbt plugin for Android development in Scala
https://groups.google.com/forum/#!forum/scala-on-android
Other
476 stars 113 forks source link

Proguard problem scala 2.10 #172

Open sinu0 opened 11 years ago

sinu0 commented 11 years ago

I have a problem with configuration proguard on scala 2.10. I tried add proguard.cfg to project in sbt but this doesn't work as I expected. On scala 2.9.2 everything is ok only I need add "-keep class scala.Function1" in Bulid.scala. I use proguard.cfg from https://github.com/pocorall/hello-scaloid-maven. I tried build this maven project and everything is allright when I delete proguard file i gets the same notes as in my Sbt project. Maybe somebody explain me what to do with this.

fxthomas commented 11 years ago

I'm pretty sure @pocorall's project is using Maven and not the SBT-Android plugin. SBT-Android already has a few pre-made rules that help you start your project from scratch, so you don't need to explicitly keep common classes such as Function1.

Also, SBT-Android doesn't use proguard.cfg but a custom setting key, proguardOptimizations.