Fix sonar analysis version name issue

This commit is contained in:
Benoit Marty 2020-08-27 15:37:10 +02:00
parent 0f1e348ac4
commit 59fa2e28c2
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,9 @@ android {
// Other branches (master, features, etc.) will have version code based on application version. // Other branches (master, features, etc.) will have version code based on application version.
versionCode project.getVersionCode() versionCode project.getVersionCode()
// Required for sonar analysis
versionName "${versionMajor}.${versionMinor}.${versionPatch}-sonar"
buildConfigField "String", "GIT_REVISION", "\"${gitRevision()}\"" buildConfigField "String", "GIT_REVISION", "\"${gitRevision()}\""
resValue "string", "git_revision", "\"${gitRevision()}\"" resValue "string", "git_revision", "\"${gitRevision()}\""