GrabVer
GrabVer copied to clipboard
Code, Patch,Build number doesn't work well with product flavors
When using product falvors; Code, Patch,Build number doesn't increment On assembleFlavor1Release,assembleFlavor2Release ,assembleFlavor1Debug and soon.
Console always outputs-> GrabVer - No save task detected
Versioning{
dev{
major 2
minor 3
.
.
}
prod{
major 1
minor 1
.
.
}
}
android {
...
defaultConfig {...}
buildTypes {...}
flavorDimensions "stage", "mode"
productFlavors {
dev {
dimension "stage"
minSdkVersion 21
versionNameSuffix "-dev"
applicationIdSuffix '.dev'
...
}
prod {
dimension "stage"
...
}
}
}
Is there way increment the code,build no , patch for different flavors?