Skip to content

Commit a5031f1

Browse files
authored
chore(deps): support prereleases in update scripts (#2031)
1 parent 3fbe78a commit a5031f1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

flutter/scripts/update-android.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44
cd $(dirname "$0")/../android
55
file='build.gradle'
66
content=$(cat $file)
7-
regex='(io\.sentry:sentry-android:)([0-9\.]+)'
7+
regex='(io\.sentry:sentry-android:)([0-9\.]+(\-[a-z0-9\.]+)?)'
88
if ! [[ $content =~ $regex ]]; then
99
echo "Failed to find the android plugin version in $file"
1010
exit 1
@@ -20,6 +20,7 @@ get-repo)
2020
set-version)
2121
newValue="${BASH_REMATCH[1]}$2"
2222
echo "${content/${BASH_REMATCH[0]}/$newValue}" >$file
23+
../scripts/generate-android-bindings.sh "$2"
2324
;;
2425
*)
2526
echo "Unknown argument $1"

flutter/scripts/update-cocoa.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44
cd $(dirname "$0")/../ios
55
file='sentry_flutter.podspec'
66
content=$(cat $file)
7-
regex="('Sentry/HybridSDK', *)'([0-9\.]+)'"
7+
regex="('Sentry/HybridSDK', *)'([0-9\.]+(\-[a-z0-9\.]+)?)'"
88
if ! [[ $content =~ $regex ]]; then
99
echo "Failed to find the plugin version in $file"
1010
exit 1

0 commit comments

Comments
 (0)