Skip to content

Commit 07104dd

Browse files
authored
Merge branch 'main' into itay/fix_sentreyscreenframes
2 parents 686b6f8 + 80f7d96 commit 07104dd

121 files changed

Lines changed: 3054 additions & 1274 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/buildandtest.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,33 @@ jobs:
5151
cache-dependency-path: yarn.lock
5252
- name: Install Dependencies
5353
run: yarn install
54+
55+
# Default of ubuntu and apt packages are too old compared to macos packages.
56+
# This is required for using a newer version of clang-format.
57+
- name: Setup clang-format V20
58+
run: |
59+
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" 20
60+
sudo apt-get install -y clang-20 clang-format-20 lld-20 lldb-20
61+
62+
- name: Set clang-format V20 as default
63+
run: |
64+
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-20 200
65+
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-20 200
66+
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-20 200
67+
clang --version
68+
clang-format --version
69+
70+
- name: Install Swiftly
71+
run: |
72+
SWIFTLY_FILE="swiftly-$(uname -m).tar.gz"
73+
curl -sL https://download.swift.org/swiftly/linux/swiftly-x86_64.tar.gz -o $SWIFTLY_FILE
74+
tar zxf $SWIFTLY_FILE
75+
76+
./swiftly init --quiet-shell-followup
77+
. "${SWIFTLY_HOME_DIR:-$HOME/.local/share/swiftly}/env.sh"
78+
hash -r
79+
sudo apt-get -y install libcurl4-openssl-dev
80+
5481
- name: Lint
5582
run: yarn lint
5683

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
# Initializes the CodeQL tools for scanning.
4646
- name: Initialize CodeQL
47-
uses: github/codeql-action/init@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # pin@v3.29.5
47+
uses: github/codeql-action/init@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # pin@v3.29.5
4848
with:
4949
languages: ${{ matrix.language }}
5050
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -55,7 +55,7 @@ jobs:
5555
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5656
# If this step fails, then you should remove it and run the build manually (see below)
5757
- name: Autobuild
58-
uses: github/codeql-action/autobuild@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # pin@v3.29.5
58+
uses: github/codeql-action/autobuild@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # pin@v3.29.5
5959

6060
# ℹ️ Command-line programs to run using the OS shell.
6161
# 📚 https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
@@ -66,4 +66,4 @@ jobs:
6666
# make bootstrap
6767
# make release
6868
- name: Perform CodeQL Analysis
69-
uses: github/codeql-action/analyze@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # pin@v3.29.5
69+
uses: github/codeql-action/analyze@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # pin@v3.29.5

.github/workflows/e2e-v2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414

1515
env:
1616
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
17-
MAESTRO_VERSION: '2.0.2'
17+
MAESTRO_VERSION: '2.0.3'
1818
IOS_DEVICE: 'iPhone 16'
1919
IOS_VERSION: '18.1'
2020

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- name: Get auth token
2121
id: token
22-
uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
22+
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
2323
with:
2424
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
2525
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}

.github/workflows/sample-application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313

1414
env:
1515
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
16-
MAESTRO_VERSION: '2.0.2'
16+
MAESTRO_VERSION: '2.0.3'
1717
RN_SENTRY_POD_NAME: RNSentry
1818
IOS_APP_ARCHIVE_PATH: sentry-react-native-sample.app.zip
1919
ANDROID_APP_ARCHIVE_PATH: sentry-react-native-sample.apk.zip

.github/workflows/update-deps.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ jobs:
1919
secrets:
2020
api-token: ${{ secrets.CI_DEPLOY_KEY }}
2121

22+
android-stubs:
23+
uses: getsentry/github-workflows/.github/workflows/updater.yml@v2
24+
with:
25+
path: scripts/update-android-stubs.sh
26+
name: Android SDK Stubs
27+
pr-strategy: update
28+
secrets:
29+
api-token: ${{ secrets.CI_DEPLOY_KEY }}
30+
2231
cocoa:
2332
uses: getsentry/github-workflows/.github/workflows/updater.yml@v2
2433
with:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,6 @@ node_modules.bak
9191
# Sentry React Native Monorepo
9292
/packages/core/README.md
9393
.env.sentry-build-plugin
94+
95+
# SwiftLint
96+
swiftlint/*

CHANGELOG.md

Lines changed: 68 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,76 @@
88
99
## Unreleased
1010

11+
### Fixes
12+
13+
- Fixes .env file loading in Expo sourcemap uploads ([#5210](https://github.com/getsentry/sentry-react-native/pull/5210))
14+
15+
### Dependencies
16+
17+
- Bump Cocoa SDK from v8.56.1 to v8.56.2 ([#5214](https://github.com/getsentry/sentry-react-native/pull/5214))
18+
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8562)
19+
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.56.1...8.56.2)
20+
- Bump Android SDK from v8.21.1 to v8.23.0 ([#5193](https://github.com/getsentry/sentry-react-native/pull/5193), [#5194](https://github.com/getsentry/sentry-react-native/pull/5194), [#5232](https://github.com/getsentry/sentry-react-native/pull/5232))
21+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8230)
22+
- [diff](https://github.com/getsentry/sentry-java/compare/8.21.1...8.23.0)
23+
- Bump CLI from v2.55.0 to v2.56.0 ([#5223](https://github.com/getsentry/sentry-react-native/pull/5223))
24+
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2560)
25+
- [diff](https://github.com/getsentry/sentry-cli/compare/2.55.0...2.56.0)
26+
- Bump JavaScript SDK from v10.12.0 to v10.17.0 ([#5195](https://github.com/getsentry/sentry-react-native/pull/5195))
27+
- [changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#10170)
28+
- [diff](https://github.com/getsentry/sentry-javascript/compare/10.12.0...10.17.0)
29+
- Bump Android SDK Stubs from v8.22.0 to v8.23.0 ([#5231](https://github.com/getsentry/sentry-react-native/pull/5231))
30+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8230)
31+
- [diff](https://github.com/getsentry/sentry-java/compare/8.22.0...8.23.0)
32+
33+
## 7.2.0
34+
35+
### Features
36+
37+
- Enable logs on native side of iOS ([#5190](https://github.com/getsentry/sentry-react-native/pull/5190))
38+
- Add mobile replay attributes to logs ([#5165](https://github.com/getsentry/sentry-react-native/pull/5165))
39+
40+
### Fixes
41+
42+
- Vendor `metro/countLines` function to avoid issues with the private import ([#5185](https://github.com/getsentry/sentry-react-native/pull/5185))
43+
- Fix baseJSBundle and bundleToString TypeErrors with Metro 0.83.2 ([#5206](https://github.com/getsentry/sentry-react-native/pull/5206))
44+
45+
### Dependencies
46+
47+
- Bump CLI from v2.53.0 to v2.55.0 ([#5179](https://github.com/getsentry/sentry-react-native/pull/5179))
48+
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2550)
49+
- [diff](https://github.com/getsentry/sentry-cli/compare/2.53.0...2.55.0)
50+
- Bump Cocoa SDK from v8.56.0 to v8.56.1 ([#5197](https://github.com/getsentry/sentry-react-native/pull/5197))
51+
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8561)
52+
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.56.0...8.56.1)
53+
54+
## 7.1.0
55+
56+
### Fixes
57+
58+
- Session Replay: Allow excluding `sentry-android-replay` from android targets ([#5174](https://github.com/getsentry/sentry-react-native/pull/5174))
59+
- If you are not interested in using Session Replay, you can exclude the `sentry-android-replay` module from your Android targets as follows (saves nearly 40KB compressed and 80KB uncompressed off the bundle size):
60+
61+
```gradle
62+
// from the android's root build.gradle file
63+
subprojects {
64+
configurations.all {
65+
exclude group: 'io.sentry', module: 'sentry-android-replay'
66+
}
67+
}
68+
```
69+
1170
### Dependencies
1271

13-
- Bump JavaScript SDK from v10.8.0 to v10.10.0 ([#5142](https://github.com/getsentry/sentry-react-native/pull/5142), [#5145](https://github.com/getsentry/sentry-react-native/pull/5145))
14-
- [changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#10100)
15-
- [diff](https://github.com/getsentry/sentry-javascript/compare/10.8.0...10.10.0)
16-
- Bump Cocoa SDK from v8.53.2 to v8.55.1 ([#5036](https://github.com/getsentry/sentry-react-native/pull/5036))
17-
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8551)
18-
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.53.2...8.55.1)
72+
- Bump JavaScript SDK from v10.8.0 to v10.12.0 ([#5142](https://github.com/getsentry/sentry-react-native/pull/5142), [#5145](https://github.com/getsentry/sentry-react-native/pull/5145), [#5157](https://github.com/getsentry/sentry-react-native/pull/5157), [#5175](https://github.com/getsentry/sentry-react-native/pull/5175))
73+
- [changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#10120)
74+
- [diff](https://github.com/getsentry/sentry-javascript/compare/10.8.0...10.12.0)
75+
- Bump Cocoa SDK from v8.53.2 to v8.56.0 ([#5036](https://github.com/getsentry/sentry-react-native/pull/5036), [#5172](https://github.com/getsentry/sentry-react-native/pull/5172))
76+
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8560)
77+
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.53.2...8.56.0)
78+
- Bump Android SDK from v8.20.0 to v8.21.1 ([#5155](https://github.com/getsentry/sentry-react-native/pull/5155))
79+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8211)
80+
- [diff](https://github.com/getsentry/sentry-java/compare/8.20.0...8.21.1)
1981

2082
## 7.0.1
2183

dev-packages/e2e-tests/cli.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,18 @@ if (actions.includes('create')) {
103103
env: env,
104104
});
105105

106+
// Only apply the package.json patch for newer RN versions
107+
const versionNumber = parseFloat(RNVersion.replace(/[^\d.]/g, ''));
108+
if (versionNumber >= 0.80) {
109+
execSync(`${patchScriptsDir}/rn.patch.package.json.js --path package.json`, {
110+
stdio: 'inherit',
111+
cwd: appDir,
112+
env: env,
113+
});
114+
} else {
115+
console.log(`Skipping rn.patch.package.json.js for RN ${RNVersion} (< 0.80)`);
116+
}
117+
106118
// Install dependencies
107119
// yalc add doesn't fail if the package is not found - it skips silently.
108120
let yalcAddOutput = execSync(`yalc add @sentry/react-native`, { cwd: appDir, env: env, encoding: 'utf-8' });

dev-packages/e2e-tests/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sentry-react-native-e2e-tests",
3-
"version": "7.0.1",
3+
"version": "7.2.0",
44
"private": true,
55
"description": "Sentry React Native End to End Tests Library",
66
"main": "dist/index.js",
@@ -13,8 +13,8 @@
1313
"devDependencies": {
1414
"@babel/preset-env": "^7.25.3",
1515
"@babel/preset-typescript": "^7.18.6",
16-
"@sentry/core": "10.10.0",
17-
"@sentry/react-native": "7.0.1",
16+
"@sentry/core": "10.17.0",
17+
"@sentry/react-native": "7.2.0",
1818
"@types/node": "^20.9.3",
1919
"@types/react": "^18.2.64",
2020
"appium": "2.4.1",

0 commit comments

Comments
 (0)