Skip to content

Commit

Permalink
Update post_clone script
Browse files Browse the repository at this point in the history
  • Loading branch information
rurza committed Apr 26, 2024
1 parent 55eafe0 commit 1a1fd89
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions ci_scripts/ci_post_clone.sh
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

0 comments on commit 1a1fd89

Please sign in to comment.