Skip to content

Commit

Permalink
updated deploy script to modify Pawskey iOS app dynamically with devT…
Browse files Browse the repository at this point in the history
…unnel endpoints
  • Loading branch information
dmennis committed May 17, 2024
1 parent 0f79e06 commit b2c79cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ if [ "$DEPLOYMENT_ENVIRONMENT" == "devtunnel" ]; then
sed -i '' 's#http://#https://#' .env
sed -i '' "/^RP_ID=/s/localhost/$RP_ID/" .env

echo "### editing Pawskey sources"
sed -i '' "s/A6586UA84V/$DEVELOPMENT_TEAM/" ../examples/clients/mobile/iOS/PawsKey/PawsKey.xcodeproj/project.pbxproj
sed -i '' \
-e "s#^API_BASE_URI[= ].*#API_BASE_URI = $HOST-8080.$REGION#" \
-e "s#^RP_ID[= ].*#RP_ID = $hostname#" \
../examples/clients/mobile/iOS/PawsKey/Constants.xcconfig

echo "### editing iOS BankApp sources"
sed -i '' \
-e "s#^BANK_AUTH_DOMAIN[= ].*#BANK_AUTH_DOMAIN = $HOST-8081.$REGION#" \
Expand Down

0 comments on commit b2c79cc

Please sign in to comment.