Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

misc(tools) add script for updating SDK version

Saúl Ibarra Corretgéc8ad04d0ffc2
diff --git a/resources/update-mobile-sdk-version.sh b/resources/update-mobile-sdk-version.sh
new file mode 100755
index 0000000000..e78ac70a05
--- /dev/null
+++ b/resources/update-mobile-sdk-version.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+set -e -u
+
+if [[ $# -ne 1 ]]; then
+ echo "Please specify a version"
+ exit 1
+fi
+
+THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
+VERSION=$1
+
+# iOS
+/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${VERSION}" ${THIS_DIR}/../ios/sdk/src/Info.plist
+
+# Android
+sed -i "" -e "s/sdkVersion=.*/sdkVersion=${VERSION}/" ${THIS_DIR}/../android/gradle.properties