Skip to content

Commit

Permalink
Exclude testing code from release builds (#15)
Browse files Browse the repository at this point in the history
# Exclude testing code from release builds

## ♻️ Current situation & Problem
In #14 we forgot to exclude some testing code from release builds
resulting in a build error. This got fixed with this PR.


## ⚙️ Release Notes 
* Fixed release builds

### Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).
  • Loading branch information
Supereg authored Jun 7, 2024
1 parent 3ecb60d commit 2300c0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ENGAGEHF/Dashboard/Dashboard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ struct Dashboard: View {
AccountButton(isPresented: $presentingAccount)
}
}
#if DEBUG || TEST
.toolbar {
if FeatureFlags.testMockDevices {
ToolbarItemGroup(placement: .secondaryAction) {
Expand All @@ -39,6 +40,7 @@ struct Dashboard: View {
}
}
}
#endif
}
}
}
Expand Down

0 comments on commit 2300c0b

Please sign in to comment.