jberkel / android-plugin

An sbt plugin for Android development in Scala
https://groups.google.com/forum/#!forum/scala-on-android
Other
476 stars 113 forks source link

Support for .so artifacts in libraryDependencies #123

Closed appamatto closed 12 years ago

appamatto commented 12 years ago

The artifacts are expected to end in ".so" and have either the armeabi or armeabi-v7a classifier:

addArtifact(Artifact("libgdx", "so", "so", "armeabi"), ...)

and they should also be without the scala version cross path when published:

crossPaths := false

They are copied to a managed native library folder and the ApkBuilder has been modified to add additional native libraries from that folder.

One part I'm not sure about is adding "so" to classpathTypes. There probably needs to be additional work done to make sure only jars in the classpath are being proguarded and such.

jberkel commented 12 years ago

added some code for artifact type checking in jberkel/android-plugin@b2930bc but haven't actually tested it.