jberkel/android-plugin — pull request #143 by appamatto (2012-10-03 22:09:43+00:00)
Title: Support for creating and publishing apklib (library projects)

There is a new apklibPackage task. To use it, concatenate something like the following to your settings:

addArtifact(Artifact("facebook-android-sdk", "apklib", "apklib"), apklibPackage in Android).settings

(I'm using it to produce an apklib package of the facebook SDK internally.)

Then the apklib will be built with:

sbt publish-local

or:

sbt publish

I think that this can be adapted to restore dependsOn functionality to library projects, but that's a project for another day!

Note that only the apklib features supported on the dependency side are supported on the creation side by this patch. Namely, jar libraries dependencies and ndk libraries are not included in the apklib.