-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PM-17411] Pull simulator type/version from file for testing (#226)
- Loading branch information
1 parent
18f6811
commit dc7beeb
Showing
5 changed files
with
170 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
iPhone 15 Pro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
17.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
15.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Updates the test local config setting the compiler flags. | ||
# | ||
# Usage: | ||
# | ||
# $ ./Scripts/update_test_local_config.sh "<compiler_flags>" | ||
# Example: | ||
# $ ./Scripts/update_test_local_config.sh DEBUG_MENU | ||
# $ ./Scripts/update_test_local_config.sh "FEATURE1 FEATURE2" | ||
|
||
set -euo pipefail | ||
|
||
bold=$(tput -T ansi bold) | ||
normal=$(tput -T ansi sgr0) | ||
|
||
if [ $# -lt 1 ]; then | ||
echo "🧱 No compiler flags to update test local config." | ||
exit 0 | ||
fi | ||
|
||
compiler_flags=${1:-''} | ||
|
||
echo "🧱 Updating Test local config..." | ||
echo "🛠️ Compiler flags: ${compiler_flags}" | ||
|
||
local_xcconfig_file="Configs-bwa/Local.xcconfig" | ||
|
||
cat << EOF > ${local_xcconfig_file} | ||
BITWARDEN_FLAGS = \$(inherited) ${compiler_flags} | ||
EOF | ||
|
||
echo "✅ Test local config updated successfully." |