Skip to content

Commit 5abb07c

Browse files
authored
Merge branch 'main' into alwx/experiment/cirrus-labs-for-everythin
2 parents 3c4a121 + f03c375 commit 5abb07c

10 files changed

Lines changed: 332 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@
66
> make sure you follow our [migration guide](https://docs.sentry.io/platforms/react-native/migration/) first.
77
<!-- prettier-ignore-end -->
88
9+
## Unreleased
10+
11+
### Dependencies
12+
13+
- Bump Android SDK from v8.32.0 to v8.33.0 ([#5684](https://github.com/getsentry/sentry-react-native/pull/5684))
14+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8330)
15+
- [diff](https://github.com/getsentry/sentry-java/compare/8.32.0...8.33.0)
16+
- Bump Android SDK Stubs from v8.32.0 to v8.33.0 ([#5697](https://github.com/getsentry/sentry-react-native/pull/5697))
17+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8330)
18+
- [diff](https://github.com/getsentry/sentry-java/compare/8.32.0...8.33.0)
19+
920
## 8.1.0
1021

1122
### Features

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ This repo uses the following ways to release SDK updates:
2424
- `Latest`: We continuously release major/minor/hotfix versions from the `main` branch. These releases go through all our internal quality gates and are very safe to use and intended to be the default for most teams.
2525
- `Stable`: We promote releases from `Latest` when they have been used in the field for some time and in scale, considering time since release, adoption, and other quality and stability metrics. These releases will be indicated on [the releases page](https://github.com/getsentry/sentry-react-native/releases/) with the `Stable` suffix.
2626

27+
For a list of which SDK versions are bundled with each release, see [SDK-VERSIONS.md](SDK-VERSIONS.md).
28+
2729
## Requirements
2830

2931
- `react-native >= 0.65.0`

SDK-VERSIONS.md

Lines changed: 201 additions & 0 deletions
Large diffs are not rendered by default.

packages/core/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ android {
5555
dependencies {
5656
compileOnly files('libs/replay-stubs.jar')
5757
implementation 'com.facebook.react:react-native:+'
58-
api 'io.sentry:sentry-android:8.32.0'
59-
debugImplementation 'io.sentry:sentry-spotlight:8.32.0'
58+
api 'io.sentry:sentry-android:8.33.0'
59+
debugImplementation 'io.sentry:sentry-spotlight:8.33.0'
6060
}
0 Bytes
Binary file not shown.

packages/core/android/replay-stubs/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ tasks.named('jar', Jar) {
1818
}
1919

2020
dependencies {
21-
compileOnly 'io.sentry:sentry:8.32.0'
21+
compileOnly 'io.sentry:sentry:8.33.0'
2222
}

packages/core/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ private void initializeAndroidProfiler() {
667667
tracesFilesDirPath,
668668
(int) SECONDS.toMicros(1) / profilingTracesHz,
669669
new SentryFrameMetricsCollector(reactApplicationContext, logger, buildInfo),
670-
executorService,
670+
() -> executorService,
671671
logger);
672672
}
673673

scripts/craft-pre-release.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ yarn install
1818
yarn lerna version --force-publish --exact --no-git-tag-version --no-push --include-merged-tags --yes "${NEW_VERSION}"
1919
yarn set-version-samples
2020
node scripts/version-bump.js
21+
# Update SDK versions table with the new release
22+
bash scripts/update-sdk-versions-table.sh

scripts/update-rn-version.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
file="$(dirname "$0")/../packages/core/package.json"
5+
content=$(cat $file)
6+
regex='"version": *"([0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.]+)?)"'
7+
if ! [[ $content =~ $regex ]]; then
8+
echo "Failed to find the version in $file"
9+
exit 1
10+
fi
11+
12+
case $1 in
13+
get-version)
14+
echo ${BASH_REMATCH[1]}
15+
;;
16+
get-repo)
17+
echo "https://github.com/getsentry/sentry-react-native.git"
18+
;;
19+
set-version)
20+
newValue="\"version\": \"$2\""
21+
echo "${content/${BASH_REMATCH[0]}/$newValue}" >$file
22+
;;
23+
*)
24+
echo "Unknown argument $1"
25+
exit 1
26+
;;
27+
esac
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5+
DOCS_FILE="$SCRIPT_DIR/../SDK-VERSIONS.md"
6+
7+
# Get current versions
8+
RN_VERSION=$("$SCRIPT_DIR/update-rn-version.sh" get-version)
9+
ANDROID_VERSION=$("$SCRIPT_DIR/update-android.sh" get-version)
10+
COCOA_VERSION=$("$SCRIPT_DIR/update-cocoa.sh" get-version)
11+
JS_VERSION=$("$SCRIPT_DIR/update-javascript.sh" get-version)
12+
13+
echo "Current versions:"
14+
echo " React Native SDK: $RN_VERSION"
15+
echo " Android SDK: $ANDROID_VERSION"
16+
echo " Cocoa SDK: $COCOA_VERSION"
17+
echo " JavaScript SDK: $JS_VERSION"
18+
19+
# Create the new row with GitHub release links for all SDKs
20+
RN_RELEASE_URL="https://github.com/getsentry/sentry-react-native/releases/tag/$RN_VERSION"
21+
ANDROID_RELEASE_URL="https://github.com/getsentry/sentry-java/releases/tag/$ANDROID_VERSION"
22+
COCOA_RELEASE_URL="https://github.com/getsentry/sentry-cocoa/releases/tag/$COCOA_VERSION"
23+
JS_RELEASE_URL="https://github.com/getsentry/sentry-javascript/releases/tag/$JS_VERSION"
24+
NEW_ROW="| [$RN_VERSION]($RN_RELEASE_URL) | [$ANDROID_VERSION]($ANDROID_RELEASE_URL) | [$COCOA_VERSION]($COCOA_RELEASE_URL) | [$JS_VERSION]($JS_RELEASE_URL) |"
25+
26+
# Check if the docs file exists
27+
if [ ! -f "$DOCS_FILE" ]; then
28+
echo "Creating $DOCS_FILE..."
29+
cat > "$DOCS_FILE" << EOF
30+
# SDK Versions
31+
32+
This page lists which versions of the [Sentry Android SDK](https://github.com/getsentry/sentry-java), [Sentry Cocoa SDK](https://github.com/getsentry/sentry-cocoa), and [Sentry JavaScript SDK](https://github.com/getsentry/sentry-javascript) are bundled with each Sentry React Native SDK release.
33+
34+
## Maintenance
35+
36+
The SDK versions table is automatically updated during each release via the \`craft-pre-release.sh\` script.
37+
38+
To manually update the table with the current version, run \`./scripts/update-sdk-versions-table.sh\` from the repository root directory.
39+
40+
## Versions
41+
42+
| React Native SDK | Android SDK | Cocoa SDK | JavaScript SDK |
43+
| ---------------- | ----------- | --------- | -------------- |
44+
$NEW_ROW
45+
EOF
46+
echo "Created $DOCS_FILE with initial version entry"
47+
else
48+
# Check if this version already exists in the first column of the table
49+
if grep -qE "^\| \[$RN_VERSION\]\(" "$DOCS_FILE"; then
50+
echo "Version $RN_VERSION already exists in the table. Updating it..."
51+
# Remove the old version line (anchored to first column) and add the new one at the top
52+
grep -vE "^\| \[$RN_VERSION\]\(" "$DOCS_FILE" | \
53+
awk -v new_row="$NEW_ROW" '
54+
/^\| React Native SDK \|/ {
55+
print
56+
getline
57+
print
58+
print new_row
59+
next
60+
}
61+
{ print }
62+
' > "$DOCS_FILE.tmp"
63+
mv "$DOCS_FILE.tmp" "$DOCS_FILE"
64+
echo "Updated version $RN_VERSION in $DOCS_FILE"
65+
else
66+
echo "Adding new version to $DOCS_FILE..."
67+
# Find the header separator line and insert the new row after it
68+
awk -v new_row="$NEW_ROW" '
69+
BEGIN { added = 0 }
70+
/^\| React Native SDK \|/ && added == 0 {
71+
print
72+
getline
73+
print
74+
print new_row
75+
added = 1
76+
next
77+
}
78+
{ print }
79+
' "$DOCS_FILE" > "$DOCS_FILE.tmp"
80+
mv "$DOCS_FILE.tmp" "$DOCS_FILE"
81+
echo "Added version $RN_VERSION to $DOCS_FILE"
82+
fi
83+
fi
84+
85+
echo "Done!"

0 commit comments

Comments
 (0)