Scala for Android
Installation:
In your android sdk directory, create directory named sfa, and in that directory create another directory named libs. So if your android sdk directory were c:\android-sdk, then you would have c:\android-sdk\sfa\libs.
Put all the .jar files in the ScalaForAndroid.zip file into the sfa/libs directory.
How to Use:
Use the android sdk to create a project
In your build.xml file:
Add the following inside the
<pathelement path="${sdk.dir}/sfa/libs/ScalaForAndroid.jar" />
<pathelement path="${sdk.dir}/sfa/libs/scala-library.jar" />
<pathelement path="${sdk.dir}/sfa/libs/scala-compiler.jar" />
<pathelement path="${sdk.dir}/sfa/libs/proguard.jar" />
Add the following after
<taskdef name="setupscala"
classname="com.ergonlabs.ScalaForAndroid.SetupScalaTask"
classpathref="https://github.com/weimingtom/scalaforandroid/blob/master/android.antlibs"
/>
<setupscala sfapath="..\ScalaForAndroid" />
Put some .scala files in your src directory and build using ant.