Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
PruthiviRaj27 committed Jul 26, 2024
1 parent e775e12 commit ff41016
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions player/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ android {
} else {
manifestPlaceholders = [serviceClassName: "com.google.android.exoplayer2.scheduler.PlatformScheduler\$PlatformSchedulerService"]
}
buildConfigField "String", "TPSTREAMS_ANDROID_PALYER_SDK_VERSION_NAME", "\"${project.findProperty("VERSION_NAME")}\""
}

buildTypes {
Expand Down
4 changes: 4 additions & 0 deletions player/src/main/java/com/tpstream/player/util/SentryLogger.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.tpstream.player.util

import com.tpstream.player.*
import com.tpstream.player.BuildConfig.TPSTREAMS_ANDROID_PALYER_SDK_VERSION_NAME
import com.tpstream.player.PlaybackException
import io.sentry.Sentry

Expand All @@ -22,6 +23,7 @@ internal object SentryLogger {
" AccessToken: ${params?.accessToken}" +
" Org Code: ${TPStreamsSDK.orgCode}"
) { scope ->
scope.setTag("TPStreamsAndroidPlayerSDKVersion",TPSTREAMS_ANDROID_PALYER_SDK_VERSION_NAME)
scope.setTag("playerId", playerId)
scope.setTag("userId", params?.userId ?: "")
}
Expand All @@ -37,6 +39,7 @@ internal object SentryLogger {
" AccessToken: ${params?.accessToken}" +
" Org Code: ${TPStreamsSDK.orgCode}"
) { scope ->
scope.setTag("TPStreamsAndroidPlayerSDKVersion",TPSTREAMS_ANDROID_PALYER_SDK_VERSION_NAME)
scope.setTag("playerId", playerId)
scope.setTag("userId", params?.userId ?: "")
}
Expand All @@ -51,6 +54,7 @@ internal object SentryLogger {
" AccessToken: ${params?.accessToken}" +
" Org Code: ${TPStreamsSDK.orgCode}"
) { scope ->
scope.setTag("TPStreamsAndroidPlayerSDKVersion",TPSTREAMS_ANDROID_PALYER_SDK_VERSION_NAME)
scope.setTag("playerId", playerId)
scope.setTag("userId", params?.userId ?: "")
}
Expand Down

0 comments on commit ff41016

Please sign in to comment.