Trick to fix a change due to upgrade to build-tools 4.1.0 (?)

This commit is contained in:
Benoit Marty 2020-10-13 23:05:33 +02:00
parent 79d7032e3a
commit 7f5c7c3bed
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,10 @@ android {
// that the app's state is completely cleared between tests.
testInstrumentationRunnerArguments clearPackageData: 'true'
// Seems that the build tools 4.1.0 does not generate BuildConfig.VERSION_NAME anymore.
// Add it manually here. We may remove this trick in the future
buildConfigField "String", "VERSION_NAME", "\"0.0.1\""
buildConfigField "String", "GIT_SDK_REVISION", "\"${gitRevision()}\""
resValue "string", "git_sdk_revision", "\"${gitRevision()}\""
resValue "string", "git_sdk_revision_unix_date", "\"${gitRevisionUnixDate()}\""