Hacker News new | ask | show | jobs
by wiradikusuma 4391 days ago
I'm writing Android app as well, using Scala. Do you have sbt script and/or ProGuard config that you can share?
2 comments

The only thing I can imagine would be relevant is that I'm using pfn's android-sdk-plugin.[1] I also have a sort of generic build.scala file I tend to reuse for Android projects (it's based partly on Ascension's, but has been tweaked a bit), which may also be useful.[2] I leave most of the proguard configuration up to pfn's sbt plugin since it does an acceptable job, but your mileage may vary.

[1]: https://github.com/pfn/android-sdk-plugin/

[2]: https://gist.github.com/nilium/db5bfac2174370ebdd97

If you don't need the sbt build system for your project, it's pretty simple to get started. Here's my guide (and some code examples) for using just proguard + Intellij. Using sbt isn't difficult to set up either, though I consider it a bit overkill for smaller projects/scripting.

https://github.com/yareally/android-scala-intellij-no-sbt-pl...

Hi man, I'm already using your tutorial. I would like to personally say this: Thank you!

I spent weeks trying to get sbt to play nice. I finally said, the hell with that, and I never been happier.

Glad to hear it simplified things for you :)