Skip to content

Commit

Permalink
chore: add pre-build script
Browse files Browse the repository at this point in the history
  • Loading branch information
fardavide committed Jan 10, 2024
1 parent d04f4a4 commit 15ba037
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ci_scripts/ci_pre_xcodebuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh
source ~/.bash_profile
echo "Adding API keys"

# Navigate to the directory containing ApiKey.swift
cd Core/Sources/Currency/Data/Api

# Rewrite ApiKey.swift with the new content
cat > ApiKey.swift <<EOF
class ApiKey {
static let currencyApiCom = "$CurrencyApiComKey"
static let currencyBeaconCom = "$CurrencyBeaconComKey"
static let exchangeRatesIo = "$ExchangeRatesIoKey"
}
EOF

# Display the updated file for verification (optional)
cat ApiKey.swift

exit 0

0 comments on commit 15ba037

Please sign in to comment.