add update-status-go.sh script

This commit is contained in:
Adam Babik 2018-05-07 11:22:14 +02:00
parent 1d196d2e82
commit fd807cff61
No known key found for this signature in database
GPG Key ID: ED02515A1FC0D1B4
1 changed files with 14 additions and 0 deletions

14
scripts/update-status-go.sh Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -eof pipefail
if [ $# -eq 0 ]
then
echo "Need to supply a status-go version"
exit 1
fi
STATUSGO_VERSION=$1
sed -i '' -e "s/\(<version>\).*\(<\/version>\)/\1$STATUSGO_VERSION\2/" modules/react-native-status/ios/RCTStatus/pom.xml
sed -i '' -e "s/\(statusGoVersion = '\).*\('\)/\1$STATUSGO_VERSION\2/" modules/react-native-status/android/build.gradle