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

Fix non-debug builds #428

Merged
merged 3 commits into from
Feb 17, 2022
Merged

Fix non-debug builds #428

merged 3 commits into from
Feb 17, 2022

Conversation

samsymons
Copy link
Collaborator

Task/Issue URL: https://app.asana.com/0/1199230911884351/1201834657842440/f
Tech Design URL:
CC:

Description:

This PR updates a new conditional that was added to isRunningTests to support compiling for configurations other than DEBUG.

Steps to test this PR:

  1. Test that a debug build works
  2. Test that archiving a release and review build works
  3. Test that running tests works

Testing checklist:

  • Test with Release configuration

Internal references:

Software Engineering Expectations
Technical Design Template
When ready for review, remember to post the PR in MM

ProcessInfo.processInfo.environment["XCTestConfigurationFilePath"] != nil
#else
return false
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This call now just returns false if we're not in a DEBUG configuration.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks Sam! :)

Copy link
Contributor

@tomasstrba tomasstrba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍 💯

@samsymons samsymons merged commit f385034 into develop Feb 17, 2022
@samsymons samsymons deleted the sam/fix-non-debug-builds branch February 17, 2022 21:34
samsymons added a commit that referenced this pull request Feb 18, 2022
# By Jason (1) and Sam Symons (1)
# Via GitHub
* develop:
  Fix non-debug builds (#428)
  new tds url (#430)

# Conflicts:
#	DuckDuckGo/AppDelegate/AppDelegate.swift
samsymons added a commit that referenced this pull request Feb 18, 2022
…ntication

* sam/logins-filtering-and-sorting:
  Ensure that items within sections are sorted correctly.
  Re-enable a SwiftLint warning fix.
  Fix non-debug builds (#428)
  new tds url (#430)
samsymons added a commit that referenced this pull request Feb 18, 2022
* develop:
  Fix non-debug builds (#428)
  new tds url (#430)
  Sparkle 1.27.1 (#411)
  Disable CVDisplayLing logging (#421)
  Update Fire Popover graphics (#426)
  Version 0.18.7
  Refresh the address bar when reloading (#413)
  Fix tabs leakage after Drag-Drop (#423)
  Point to BrowserServicesKit 8.0. (#425)
  Import error improvements (#406)
  Replace Burn and Fireproof icons (#416)
  don't disable the UI unless onboarding has been marked as finished (#420)
  fix nested RunLoop waiting (#422)
  Version 0.18.6
samsymons added a commit that referenced this pull request Feb 21, 2022
# By Alexey Martemyanov (2) and others
# Via GitHub (1) and Tomas Strba (1)
* develop:
  Fix crash on SecureVault corruption (#417)
  ensure app usage is sent (#429)
  Fix non-debug builds (#428)
  new tds url (#430)
  Sparkle 1.27.1 (#411)
  Disable CVDisplayLing logging (#421)
  Version 0.18.7

# Conflicts:
#	DuckDuckGo/Menus/MainMenuActions.swift
jonathanKingston pushed a commit that referenced this pull request Feb 25, 2022
* Update the conditional check around `isRunningTests`.

* Fix SwiftLint warning.

* Silence Xcode warnings.
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.

2 participants