From 6ff1da0061be482b56c1b0cfa3320d99f909ed78 Mon Sep 17 00:00:00 2001 From: AndroidBob Date: Thu, 21 Mar 2024 16:30:20 +0100 Subject: [PATCH] chore: add git commit hash to external logger (#2731) Co-authored-by: Mohamad Jaara --- app/src/beta/kotlin/com/wire/android/ExternalLoggerManager.kt | 4 +++- kalium | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/beta/kotlin/com/wire/android/ExternalLoggerManager.kt b/app/src/beta/kotlin/com/wire/android/ExternalLoggerManager.kt index d29ebd8205c..78cc0b1658e 100644 --- a/app/src/beta/kotlin/com/wire/android/ExternalLoggerManager.kt +++ b/app/src/beta/kotlin/com/wire/android/ExternalLoggerManager.kt @@ -30,6 +30,7 @@ import com.datadog.android.rum.tracking.ComponentPredicate import com.wire.android.datastore.GlobalDataStore import com.wire.android.ui.WireActivity import com.wire.android.util.getDeviceIdString +import com.wire.android.util.getGitBuildId import com.wire.android.util.sha256 import kotlinx.coroutines.flow.first import kotlinx.coroutines.runBlocking @@ -73,7 +74,8 @@ object ExternalLoggerManager { val credentials = Credentials(clientToken, environmentName, appVariantName, applicationId) val extraInfo = mapOf( - "encrypted_proteus_storage_enabled" to runBlocking { globalDataStore.isEncryptedProteusStorageEnabled().first() } + "encrypted_proteus_storage_enabled" to runBlocking { globalDataStore.isEncryptedProteusStorageEnabled().first() }, + "git_commit_hash" to context.getGitBuildId() ) Datadog.initialize(context, credentials, configuration, TrackingConsent.GRANTED) diff --git a/kalium b/kalium index 4be820aa2bb..91a09ffd30c 160000 --- a/kalium +++ b/kalium @@ -1 +1 @@ -Subproject commit 4be820aa2bb05ffc40a8ec1709660b16cbe6bfdd +Subproject commit 91a09ffd30ca372196420b1ef650c71d2e09fdef