As far as I understand it is necessary for people using Scala for Android applications to bundle the Scala classes they used with their application.
Considering this adds hundreds of kilobytes to each Scala app redundantly, would it be possible to build a Scala library which can be delivered over the market, so app writers can just depen开发者_JS百科d on that library instead of bundling it themselves?
You'd probably be better off using something like Proguard. See here for someone's instructions on how to do this.
Third party shared libraries are not currently supported. They can introduce a lot of issues that then end up being visible to the user (see: DLL hell), so in many cases the disadvantages of a traditional shared library model may out-weight the benefits.
If you need well-grounded maven project for Android with Scala, android-scala-test would help you. It provides all of the complex setup out-of-the-box, including Scala compiler, Proguard, Signing, etc.
Further, android-scala-common will guide you to write more concise Android program in Scala.
精彩评论