Skip to content

Commit

Permalink
chore(deps): support prereleases in update scripts (#2031)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind authored May 6, 2024
1 parent 3fbe78a commit a5031f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion flutter/scripts/update-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euo pipefail
cd $(dirname "$0")/../android
file='build.gradle'
content=$(cat $file)
regex='(io\.sentry:sentry-android:)([0-9\.]+)'
regex='(io\.sentry:sentry-android:)([0-9\.]+(\-[a-z0-9\.]+)?)'
if ! [[ $content =~ $regex ]]; then
echo "Failed to find the android plugin version in $file"
exit 1
Expand All @@ -20,6 +20,7 @@ get-repo)
set-version)
newValue="${BASH_REMATCH[1]}$2"
echo "${content/${BASH_REMATCH[0]}/$newValue}" >$file
../scripts/generate-android-bindings.sh "$2"
;;
*)
echo "Unknown argument $1"
Expand Down
2 changes: 1 addition & 1 deletion flutter/scripts/update-cocoa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euo pipefail
cd $(dirname "$0")/../ios
file='sentry_flutter.podspec'
content=$(cat $file)
regex="('Sentry/HybridSDK', *)'([0-9\.]+)'"
regex="('Sentry/HybridSDK', *)'([0-9\.]+(\-[a-z0-9\.]+)?)'"
if ! [[ $content =~ $regex ]]; then
echo "Failed to find the plugin version in $file"
exit 1
Expand Down

0 comments on commit a5031f1

Please sign in to comment.