-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from xmtp-labs/testflight
TestFlight Release Configurations
- Loading branch information
Showing
9 changed files
with
169 additions
and
8 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,8 +1,8 @@ | ||
name: Release to TestFlight | ||
on: | ||
push: | ||
branches: | ||
- main | ||
# branches: | ||
# - main | ||
|
||
jobs: | ||
rebase: | ||
|
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
Binary file added
BIN
+570 KB
ios/EphemeraMobileChat/Assests.xcassets/AppIcon.appiconset/App Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions
14
ios/EphemeraMobileChat/Assests.xcassets/AppIcon.appiconset/Contents.json
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,14 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "App Icon.png", | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 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,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 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
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,90 @@ | ||
#!/bin/sh | ||
|
||
# include helpers | ||
source retry.sh | ||
|
||
echo "####===== Stage: PRE-Xcode Build is activated .... " | ||
|
||
cat > ../../.env <<EOF | ||
XMTP_ENV=${XMTP_ENV} | ||
THRID_WEB_CLIENT_ID=${THRID_WEB_CLIENT_ID} | ||
AWS_S3_REGION=${AWS_S3_REGION} | ||
AWS_S3_BUCKET=${AWS_S3_BUCKET} | ||
AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} | ||
AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} | ||
EOF | ||
|
||
# Debug output for ENV variables | ||
# Note: Values are encrypted in CI host. | ||
# Output will result as: XMTP_ENV=**** | ||
# echo "####===== Temporary ENV Debug" | ||
# cat ../../.env | ||
|
||
echo "###===== Installing Ruby" | ||
retry 5 brew install ruby | ||
|
||
echo "###===== Add Ruby to PATH" | ||
if [[ -d "/opt/homebrew" ]]; then | ||
HOMEBREW_PREFIX="/opt/homebrew" | ||
else | ||
HOMEBREW_PREFIX="/usr/local" | ||
fi | ||
|
||
echo "export PATH=\"$HOMEBREW_PREFIX/opt/ruby/bin:\$PATH\"" >> ~/.zshrc | ||
|
||
echo "verify path:" $PATH | ||
|
||
source ~/.zshrc | ||
|
||
echo "###===== Verify Ruby installation" | ||
ruby -v | ||
|
||
# Ensure the gem bin directory is in the PATH | ||
echo "export PATH=\"$(ruby -e 'puts Gem.user_dir')/bin:\$PATH\"" >> ~/.zshrc | ||
source ~/.zshrc | ||
|
||
echo "###===== Install bundler" | ||
which gem | ||
gem install bundler:2.1.4 --user-install | ||
|
||
echo "###===== Checking bundler version" | ||
which bundler | ||
|
||
echo "###===== Source the updated .zshrc to apply changes in the current script" | ||
source ~/.zshrc | ||
|
||
echo "###===== Verify bundler installation" | ||
bundler -v | ||
|
||
echo "####===== Change working directory" | ||
cd ../../ | ||
|
||
echo "###===== Installing Node" | ||
retry 5 brew install node | ||
|
||
echo "###===== Installing Yarn" | ||
npm install --global yarn | ||
|
||
echo "####===== Run: yarn install" | ||
yarn install | ||
|
||
#echo "####===== Run bundle install" | ||
# bundle install // bundle installs the wrong version of Flipper | ||
|
||
echo "####===== brew tap Cocoapods 1.14.3" | ||
brew tap-new $USER/local-tap | ||
brew tap homebrew/core --force | ||
brew extract --version=1.14.3 cocoapods $USER/local-tap | ||
brew install [email protected] | ||
|
||
echo "####===== Check Cocoapods versions" | ||
pod --version | ||
|
||
echo "####===== Change directory and run pod install" | ||
cd ios | ||
pod install | ||
|
||
#echo "####===== Run bundle exec pod install" | ||
#bundle exec pod install --project-directory=ios // bundle installs the wrong version of Flipper | ||
|
||
exit 0 |
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,35 @@ | ||
# Retry a command up to a specific number of times until it exits successfully, | ||
# with exponential backoff. | ||
# | ||
# $ retry 5 echo Hello | ||
# Hello | ||
# | ||
# $ retry 5 false | ||
# Retry 1/5 exited 1, retrying in 1 seconds... | ||
# Retry 2/5 exited 1, retrying in 2 seconds... | ||
# Retry 3/5 exited 1, retrying in 4 seconds... | ||
# Retry 4/5 exited 1, retrying in 8 seconds... | ||
# Retry 5/5 exited 1, no more retries left. | ||
# | ||
function retry { | ||
local retries=$1 | ||
shift | ||
|
||
local count=0 | ||
until "$@"; do | ||
exit=$? | ||
# Enable this following line if the backoff feature is needed. | ||
# Default behavior is to wait 5 seconds | ||
# wait=$((2 ** $count)) | ||
wait=$((5)) | ||
count=$(($count + 1)) | ||
if [ $count -lt $retries ]; then | ||
echo "Retry $count/$retries exited $exit, retrying in $wait seconds..." | ||
sleep $wait | ||
else | ||
echo "Retry $count/$retries exited $exit, no more retries left." | ||
return $exit | ||
fi | ||
done | ||
return 0 | ||
} |