App¶
io.github.thomaskioko.gradle.plugins.app
This plugin configures an Android application module. It applies the Android application plugin
and this suite's Android plugin, so everything on the Android page works here too.
It also adds an app {} block for the settings only an application has.
plugins {
id("io.github.thomaskioko.gradle.plugins.app")
}
scaffold {
app {
applicationId("com.example.myapp")
minify()
}
android {
useCompose()
}
}
Options¶
| Option | What it does |
|---|---|
applicationId(applicationId) |
Sets the application identifier |
applicationIdSuffix(buildType, suffix) |
Adds a suffix on the named build type, so two variants can be installed side by side |
minify(vararg files) |
Turns on R8 for the release build type and adds the named rules |
useFirebase() |
Connects Firebase when a google-services.json is present, and skips it when there is not, so a checkout without one still builds |
Version and release tasks¶
An application module also gets the bumpVersion and release tasks. They read and rewrite a
version.txt at the root of the project, which holds VERSION_NUMBER and BUILD_NUMBER.
./gradlew bumpVersion -Ptype=minor
type takes major, minor, patch or beta.
Full detail in the API reference.