Skip to content
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

Merged
merged 7 commits into from
Aug 26, 2024
Merged

Feature/debug menu #1645

merged 7 commits into from
Aug 26, 2024

Conversation

ThomasSession
Copy link
Collaborator

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:

  • Via an app shortcut (long pressing on the app icon > Debug Menu)
  • In the Settings page, under Debug Menu

The debug menu should not be accessible in release builds.

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
Copy link
Collaborator

@AL-Session AL-Session left a 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") {
Copy link
Collaborator

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?

Suggested change
if (BuildConfig.BUILD_TYPE != "release") {
if (BuildConfig.BUILD_TYPE == BuildConfig.DEBUG) {

Copy link
Collaborator Author

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.

@ThomasSession ThomasSession merged commit 1393335 into dev Aug 26, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants