mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
misc(tools) add script for updating SDK version
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
c56afde00c
commit
c8ad04d0ff
17
resources/update-mobile-sdk-version.sh
Executable file
17
resources/update-mobile-sdk-version.sh
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user