-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/debug menu #1645
Feature/debug menu #1645
Conversation
Also fixing compose copy that wasn't set up properly...
Added a debug menu It can be accessed from the settings page or via an app shortcut (from the app icon)
We can now switch environments between mainnet and testnet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Two suggestions for you to address as you see fit, only.
@@ -498,27 +509,33 @@ class SettingsActivity : PassphraseRequiredActionBarActivity() { | |||
|
|||
Cell { | |||
Column { | |||
// add the debug menu in non release builds | |||
if (BuildConfig.BUILD_TYPE != "release") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prevent string comparison and any potential typos?
if (BuildConfig.BUILD_TYPE != "release") { | |
if (BuildConfig.BUILD_TYPE == BuildConfig.DEBUG) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AL-Session I considered this but I want to add a QA build type in the future. That build type should have the debug menu available, so unfortunately it needs to be compared to release
.
app/src/main/java/org/thoughtcrime/securesms/debugmenu/DebugMenu.kt
Outdated
Show resolved
Hide resolved
…nu.kt Co-authored-by: AL-Session <[email protected]>
Added a debug menu.
For now it simply allows us to switch between mainnet and testnet.
The debug menu can be accessed in two ways:
Debug Menu
The debug menu should not be accessible in release builds.