From 7f5c7c3beded6d6c9db2c5d175ad834c822d3a2e Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 13 Oct 2020 23:05:33 +0200 Subject: [PATCH] Trick to fix a change due to upgrade to build-tools 4.1.0 (?) --- matrix-sdk-android/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/matrix-sdk-android/build.gradle b/matrix-sdk-android/build.gradle index 0bf4819d25..e4a8b8884a 100644 --- a/matrix-sdk-android/build.gradle +++ b/matrix-sdk-android/build.gradle @@ -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()}\""