From fd807cff6172440f69e4fe2cba4492b2065cb516 Mon Sep 17 00:00:00 2001 From: Adam Babik Date: Mon, 7 May 2018 11:22:14 +0200 Subject: [PATCH] add update-status-go.sh script --- scripts/update-status-go.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/update-status-go.sh diff --git a/scripts/update-status-go.sh b/scripts/update-status-go.sh new file mode 100755 index 0000000000..deabfb31d8 --- /dev/null +++ b/scripts/update-status-go.sh @@ -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>\)/\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