Building Java Android Projects

jberkel edited this page Feb 26, 2012 · 2 revisions

Building Java Android projects

If you don't use Scala yet and want to use the plugin to build your existing Java app you can do by adding the PlainJavaProject.settings to your settings:

object AndroidBuild extends Build {
  lazy val main = Project (
    "My Project",
    file("."),
    settings = General.fullAndroidSettings ++ PlainJavaProject.settings
  )
}

This will change the defaults to the directory structure expected by Android's build.xml file and skip the Proguard optimisation step.

See sms-backup-plus for an example project.