Skip to content

Commit 2ac468b

Browse files
antonisclaude
andauthored
fix(build): Update expo-handler sentry-android version in update script (#5904)
The `update-android.sh` script was not updating the `sentry-android` dependency in `expo-handler/build.gradle`, causing version mismatches on every Android SDK bump. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 349b45c commit 2ac468b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/update-android.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ set-version)
2727
newContent=$(echo "$newContent" | sed -E "s/(io\.sentry:sentry-spotlight:)([0-9\.]+)/\1$2/g")
2828
echo "$newContent" >$file
2929

30+
# Update expo-handler to match
31+
expoHandlerFile='expo-handler/build.gradle'
32+
expoHandlerContent=$(cat $expoHandlerFile)
33+
expoHandlerContent=$(echo "$expoHandlerContent" | sed -E "s/(io\.sentry:sentry-android:)([0-9\.]+)/\1$2/g")
34+
echo "$expoHandlerContent" >$expoHandlerFile
35+
3036
# Update replay-stubs to match
3137
cd $ORIGINAL_DIR
3238
./update-android-stubs.sh set-version $2

0 commit comments

Comments
 (0)