| Modifiers | Name | Description |
|---|---|---|
enum |
AndroidGitVersionExtension.CodePart |
|
class |
AndroidGitVersionExtension.Results |
|
class |
AndroidGitVersionExtension.TagInfo |
| Type | Name and description |
|---|---|
java.lang.Object |
abisMap of ABI designators to integers. |
int |
baseCodeBase code, added to all generated version codes. |
java.lang.String |
codeFormatFormat for versionCode output. null if user is still using deprecated fields. |
java.lang.Object |
currentAbi |
java.lang.String |
formatFormat of version name string. |
java.util.List<java.lang.String> |
hideBranchesBranches that should NOT be shown even if on an untagged commit |
java.lang.Integer |
multiplierDEPRECATED (use codeFormat instead): The amount of space allocated for each digit in the version code. |
java.lang.String |
onlyInWhen set, only includes commits containing changes to the specified path |
java.lang.Integer |
partsDEPRECATED (use codeFormat instead): Number of parts expected in the version number. |
java.lang.String |
prefixPrefix used to specify special text before the tag. |
java.lang.String |
tagPatternSearch pattern for tags of interest. |
boolean |
untrackedIsDirtyTreat a build as dirty if there are any untracked files |
| Constructor and description |
|---|
AndroidGitVersionExtension
(org.gradle.api.Project project) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
int |
code()Return a version code corresponding to the most recent version |
|
void |
flush()Flush results in case git content changed |
|
java.lang.String |
name()Return a version name based on the most recent tag and intervening commits if any. |
|
void |
variants(java.lang.Object variants)Update the versionCodeOverride for all variant outputs according to ABI |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Map of ABI designators to integers.
Base code, added to all generated version codes. Defaults to 0
Format for versionCode output. null if user is still using deprecated fields.
Format of version name string.
Branches that should NOT be shown even if on an untagged commit
DEPRECATED (use codeFormat instead): The amount of space allocated for each digit in the version code. For example, for a multiplier of 1000, 1.2.3 would result in a version code of 1002003
When set, only includes commits containing changes to the specified path
DEPRECATED (use codeFormat instead): Number of parts expected in the version number.
Prefix used to specify special text before the tag. Useful in projects which manage multiple external version names.
Search pattern for tags of interest. Tags not matching this pattern will be ignored.
Treat a build as dirty if there are any untracked files
Return a version code corresponding to the most recent version
Flush results in case git content changed
Return a version name based on the most recent tag and intervening commits if any.
Update the versionCodeOverride for all variant outputs according to ABI
Groovy Documentation