From 8e902a966b00412308112b4eeabe4f7c9194b7d9 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Mon, 16 Feb 2026 09:18:44 +0100 Subject: [PATCH] build(android): Update dependency script to handle sentry-spotlight The update-android.sh script now updates both sentry-android and sentry-spotlight dependencies to the same version. This ensures version synchronization when automated dependency updates run. Since Sentry Android SDK 8.32.0, spotlight was separated into a different module. The script now uses sed to update both dependencies, maintaining backwards compatibility when spotlight is not present. Co-Authored-By: Claude Sonnet 4.5 --- scripts/update-android.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/update-android.sh b/scripts/update-android.sh index 7b22605a4c..e640568681 100755 --- a/scripts/update-android.sh +++ b/scripts/update-android.sh @@ -18,8 +18,13 @@ get-repo) echo "https://github.com/getsentry/sentry-java.git" ;; set-version) - newValue="${BASH_REMATCH[1]}$2" - echo "${content/${BASH_REMATCH[0]}/$newValue}" >$file + # Update all io.sentry dependencies to the same version + newContent="$content" + # Update sentry-android + newContent=$(echo "$newContent" | sed -E "s/(io\.sentry:sentry-android:)([0-9\.]+)/\1$2/g") + # Update sentry-spotlight + newContent=$(echo "$newContent" | sed -E "s/(io\.sentry:sentry-spotlight:)([0-9\.]+)/\1$2/g") + echo "$newContent" >$file ;; *) echo "Unknown argument $1"