From 1cba0fa7547a4c5c680bbe74f545e4bff09b9b0b Mon Sep 17 00:00:00 2001 From: Daniel Novak <1726289+DanielNovak@users.noreply.github.com> Date: Thu, 16 Nov 2023 12:00:04 +0100 Subject: [PATCH] Enable WebRTC diagnostics on development builds (release too) (#927) --- .../kotlin/io/getstream/video/android/ui/call/CallScreen.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/demo-app/src/main/kotlin/io/getstream/video/android/ui/call/CallScreen.kt b/demo-app/src/main/kotlin/io/getstream/video/android/ui/call/CallScreen.kt index 4542c79220..f006d6b295 100644 --- a/demo-app/src/main/kotlin/io/getstream/video/android/ui/call/CallScreen.kt +++ b/demo-app/src/main/kotlin/io/getstream/video/android/ui/call/CallScreen.kt @@ -65,6 +65,7 @@ import io.getstream.video.android.core.RealtimeConnection import io.getstream.video.android.core.call.state.ChooseLayout import io.getstream.video.android.mock.StreamPreviewDataUtils import io.getstream.video.android.mock.previewCall +import io.getstream.video.android.tooling.util.StreamFlavors import kotlinx.coroutines.delay import kotlinx.coroutines.launch @@ -120,7 +121,8 @@ fun CallScreen( call = call, layout = layout, enableInPictureInPicture = true, - enableDiagnostics = BuildConfig.DEBUG, + enableDiagnostics = BuildConfig.DEBUG || + BuildConfig.FLAVOR == StreamFlavors.development, onCallAction = { when (it) { ChooseLayout -> isShowingLayoutChooseMenu = true