Skip to content

Commit a31efab

Browse files
authored
Merge branch 'main' into antonis/rn-0.83.1
2 parents d0338e4 + d4d1a1d commit a31efab

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

packages/core/android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ dependencies {
5656
compileOnly files('libs/replay-stubs.jar')
5757
implementation 'com.facebook.react:react-native:+'
5858
api 'io.sentry:sentry-android:8.32.0'
59+
debugImplementation 'io.sentry:sentry-spotlight:8.32.0'
5960
}

scripts/update-android.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ get-repo)
1818
echo "https://github.com/getsentry/sentry-java.git"
1919
;;
2020
set-version)
21-
newValue="${BASH_REMATCH[1]}$2"
22-
echo "${content/${BASH_REMATCH[0]}/$newValue}" >$file
21+
# Update all io.sentry dependencies to the same version
22+
newContent="$content"
23+
# Update sentry-android
24+
newContent=$(echo "$newContent" | sed -E "s/(io\.sentry:sentry-android:)([0-9\.]+)/\1$2/g")
25+
# Update sentry-spotlight
26+
newContent=$(echo "$newContent" | sed -E "s/(io\.sentry:sentry-spotlight:)([0-9\.]+)/\1$2/g")
27+
echo "$newContent" >$file
2328
;;
2429
*)
2530
echo "Unknown argument $1"

0 commit comments

Comments
 (0)