From 62d791bdf80eba16109c809d51d977511d6ae273 Mon Sep 17 00:00:00 2001 From: Mohammad Nawas <78867217+mohammednawas8@users.noreply.github.com> Date: Fri, 1 Sep 2023 15:51:17 +0300 Subject: [PATCH] Show the Test screen only in the DEBUG build type (#2523) (#2524) Co-authored-by: Mohammad Nawas --- .../main/java/com/ivy/wallet/ui/settings/SettingsScreen.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/ivy/wallet/ui/settings/SettingsScreen.kt b/app/src/main/java/com/ivy/wallet/ui/settings/SettingsScreen.kt index 2a6b54317b..327de3de08 100644 --- a/app/src/main/java/com/ivy/wallet/ui/settings/SettingsScreen.kt +++ b/app/src/main/java/com/ivy/wallet/ui/settings/SettingsScreen.kt @@ -212,7 +212,9 @@ private fun BoxWithConstraintsScope.UI( Text( modifier = Modifier.clickableNoIndication { - nav.navigateTo(Test) + if (BuildConfig.DEBUG) { + nav.navigateTo(Test) + } }, text = "${BuildConfig.VERSION_NAME} (${BuildConfig.VERSION_CODE})", style = UI.typo.nC.style(