3 ms·
Do not forget, however, that (for development) you can easily skip the Proguard step if you install the scala libraries on your device directly. Also, setting S
by th0br0 13y ago
Do not forget, however, that (for development) you can easily skip the Proguard step if you install the scala libraries on your device directly. Also, setting SBT up is pretty much a one-time thing. Afterwards, you only need to do a few tweaks when starting a new project.
I've used Scala for a couple Android apps in the past... it was great fun to do so! Still, AndroidAnnotations not working with Scala code requires you to rewrite some of their functionality... but you can do that rather easily with Scala's traits etc.
- yareally 13y agoThanks, I forgot about loading the libraries directly onto my phone for testing. When you say Android Annotations, are you referring to the ones built into java/android (like @TargetApi) or your own custom ones? Just wondering, since I'm about to add ActionBarSherlock to a Scala project and it includes quite a few I'll have to rewrite. Edit: seems it doesn't like ActionBarSherlock most likely due to that. I get "Error com.actionbarsherlock.R and com.actionbarsherlock.R$xml disgree on InnerClasses attribute"[1]. [1] https://issues.scala-lang.org/browse/SI-1167 https://issues.scala-lang.org/browse/SI-1167
- th0br0 13y agoI don't believe I've used ABS with Scala before. Shouldn't integrating ABS as an apklib solve this issue though? Regarding AndroidAnnotations: https://github.com/excilys/androidannotations/wiki https://github.com/excilys/androidannotations/wiki
- yareally 13y agoI'll try that option. I was just building it into the project as a separate module dependency out of habit from Java, but no real need to do that. Ahh, I know of that project. Like it quite a bit. Was just confused over the ambiguity of the term "annotations." Thanks for the followup though.
- yareally 13y agoIn case you were curious it was a super vague proguard error that turned out to be the issue. Adding -keepclassmembers class * extends com.actionbarsherlock.ActionBarSherlock { <init>(android.app.Activity, int); } fixed it. Ugh :/