-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
#!/bin/sh | ||
defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES | ||
#!/bin/bash | ||
defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES | ||
|
||
# Create AnalyticsDSN | ||
# Navigate to the directory where the file should be created | ||
|
||
|
||
CLIENTS_PATH="${CI_PRIMARY_REPOSITORY_PATH}/BatFiKit/Sources/ClientsLive" | ||
cd ${CLIENTS_PATH} | ||
|
||
# Check if the directory exists | ||
if [ ! -d ${CLIENTS_PATH} ]; then | ||
echo "Directory not found!" | ||
exit 1 | ||
fi | ||
|
||
# Create the Swift file with the environment variable value | ||
echo "import Foundation" > AnalyticsDSN.swift | ||
echo "" >> AnalyticsDSN.swift | ||
echo "// This file is automatically generated in the CI process." >> AnalyticsDSN.swift | ||
echo "// Do not modify or check into version control." >> AnalyticsDSN.swift | ||
echo "let analyticsDSN = \"${SENTRY_DSN}\"" >> AnalyticsDSN.swift |