3 ms·
Yeah, if I had to manually fiddle around with the SBT build process and manually adding dependencies instead of letting Intellij handle it all, I would be less
by yareally 13y ago
Yeah, if I had to manually fiddle around with the SBT build process and manually adding dependencies instead of letting Intellij handle it all, I would be less motivated to want to switch away from Java on Android for sure :).
Excessive configuration to get a new project up in a running is a major demotivator sometimes when you have a new idea and want to just start coding right away.
- th0br0 13y agoDo 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 :/