From 1a7c5bfc30924b79d22908b29ab1d70f4626c73f Mon Sep 17 00:00:00 2001 From: Mohammad Nawas Date: Fri, 1 Sep 2023 15:08:23 +0300 Subject: [PATCH] Show the Test screen only in the DEBUG build type (#2523) --- .../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(