Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Show the Test screen only in the DEBUG build type (#2523) (#2524)
Browse files Browse the repository at this point in the history
Co-authored-by: Mohammad Nawas <[email protected]>
  • Loading branch information
mohammednawas8 and Mohammad Nawas authored Sep 1, 2023
1 parent c9a985e commit 62d791b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 62d791b

Please sign in to comment.