Skip to content

Commit

Permalink
chore: add git commit hash to external logger (#2731)
Browse files Browse the repository at this point in the history
Co-authored-by: Mohamad Jaara <[email protected]>
  • Loading branch information
AndroidBob and MohamadJaara authored Mar 21, 2024
1 parent 50ccd98 commit 6ff1da0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion kalium
Submodule kalium updated 25 files
+27 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/data/message/draft/MessageDraft.kt
+36 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/data/message/draft/MessageDraftMapper.kt
+50 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/data/message/draft/MessageDraftRepository.kt
+1 βˆ’1 logic/src/commonMain/kotlin/com/wire/kalium/logic/data/message/mention/MessageMentionMapper.kt
+6 βˆ’7 logic/src/commonMain/kotlin/com/wire/kalium/logic/data/user/UserRepository.kt
+8 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/UserSessionScope.kt
+17 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/message/MessageScope.kt
+44 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/message/draft/GetMessageDraftUseCase.kt
+41 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/message/draft/RemoveMessageDraftUseCase.kt
+44 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/message/draft/SaveMessageDraftUseCase.kt
+147 βˆ’0 logic/src/commonTest/kotlin/com/wire/kalium/logic/data/message/draft/MessageDraftRepositoryTest.kt
+1 βˆ’1 logic/src/commonTest/kotlin/com/wire/kalium/logic/data/user/UserRepositoryTest.kt
+119 βˆ’0 logic/src/commonTest/kotlin/com/wire/kalium/logic/feature/message/draft/GetMessageDraftUseCaseTest.kt
+72 βˆ’0 logic/src/commonTest/kotlin/com/wire/kalium/logic/feature/message/draft/RemoveMessageDraftUseCaseTest.kt
+85 βˆ’0 logic/src/commonTest/kotlin/com/wire/kalium/logic/feature/message/draft/SaveMessageDraftUseCaseTest.kt
+31 βˆ’0 persistence/src/commonMain/db_user/com/wire/kalium/persistence/MessageDrafts.sq
+16 βˆ’0 persistence/src/commonMain/db_user/migrations/79.sqm
+36 βˆ’0 persistence/src/commonMain/kotlin/com/wire/kalium/persistence/adapter/MentionListAdapter.kt
+1 βˆ’1 persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/message/MessageDAOImpl.kt
+27 βˆ’0 persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/message/draft/MessageDraftDAO.kt
+56 βˆ’0 persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/message/draft/MessageDraftDAOImpl.kt
+27 βˆ’0 persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/message/draft/MessageDraftEntity.kt
+7 βˆ’0 persistence/src/commonMain/kotlin/com/wire/kalium/persistence/db/TableMapper.kt
+8 βˆ’1 persistence/src/commonMain/kotlin/com/wire/kalium/persistence/db/UserDatabaseBuilder.kt
+150 βˆ’0 persistence/src/commonTest/kotlin/com/wire/kalium/persistence/dao/message/draft/MessageDraftDAOTest.kt

0 comments on commit 6ff1da0

Please sign in to comment.