The Vaandroid Gradle Plugin provides tools for the creation of Vaandroid applications and services.

Tasks

createVaandroidApplication
Creates folders and files for a Vaandroid application. This is identical to Android's framework, with the addition of a vaandroid.xml file.
vaandroid.xml
src/main/AndroidManifest.xml
src/main/res folder with common resource sub folders.
src/main/[language]/[package] folders
src/test/[language]/[package] folders
addActivity
Creates a new activity. A configuration dialog will appear. The application's files and framework must be created before calling this task. The task uses the language specified in the configuration, or Kotlin by default.

Options

Package
Label
Create Menu
Create About Menu Item
Launchable
Language
Launcher Folder
Vaandroid Properties
todo: document options

Other Tasks

generateVaandroidResource
Generates the R.java file and kotlinx files used by the IDE, templates, and class files. Under normal circumstances, this is called by other tasks and should not need to be invoked directly.

Configuration

vaandroid {
// One of 'java', 'groovy', 'kotlin'
// Used for creating new activities
language = 'java'

// The Android package.  Used as a global identifier.  If omitted, the project.group and project.name will be used to generated a package name.
pkg = com.test.appname
}