Skip to content
This repository was archived by the owner on Oct 26, 2022. It is now read-only.

android manifest generation

jberkel edited this page Jan 17, 2012 · 5 revisions

Android manifest generation

If you would like your AndroidManifest.xml file to automatically inherit versionName and versionCode from your SBT project, add the AndroidManifestGenerator.settings build settings to your project.

It will look for an AndroidManifest.xml template in src/main and generate a new manifest (written to target/scala-2.x.y/resource_managed/main/) based on your current build settings (version and versionCode).

object AndroidBuild extends Build {
  lazy val main = Project (
    "My Project",
    file("."),
    settings = General.fullAndroidSettings ++ AndroidManifestGenerator.settings
  )
}
Clone this wiki locally