From 582e2059d8887af985c7236f18eda892d0e302f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Mon, 5 Apr 2021 20:00:38 +0200 Subject: [PATCH] [App] Move buildTimestamp to manifest to improve build performance. --- app/build.gradle | 4 +++- app/src/main/AndroidManifest.xml | 2 ++ .../edziennik/utils/managers/BuildManager.kt | 9 ++++++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index f49a6dad..72c03e94 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -18,8 +18,10 @@ android { versionName release.versionName buildConfigField "java.util.Map", "GIT_INFO", gitInfoMap - buildConfigField "long", "BUILD_TIMESTAMP", String.valueOf(System.currentTimeMillis()) buildConfigField "String", "VERSION_BASE", "\"${release.versionName}\"" + manifestPlaceholders = [ + buildTimestamp: String.valueOf(System.currentTimeMillis()) + ] multiDexEnabled = true diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 5f295533..af4b653a 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -29,6 +29,8 @@ android:usesCleartextTraffic="true" tools:ignore="UnusedAttribute"> + +