views:

191

answers:

2

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 depend on that library instead of bundling it themselves?

+2  A: 

You'd probably be better off using something like Proguard. See here for someone's instructions on how to do this.

Ben Lings
I know that at the moment the recommended way to make the apps smaller is to produce a package with all unused classes stripped out, but that wasn't my question. Even under these circumstances the question is valid: Why not provide a shared basic subset of the Scala library then?
soc
+1  A: 

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.

hackbod