Skip to content

Commit 95c36ef

Browse files
Merge branch 'main' into capture-app-start-errors
2 parents a1cb36d + 153419c commit 95c36ef

File tree

36 files changed

+331
-375
lines changed

36 files changed

+331
-375
lines changed

.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@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # [email protected].1
47+
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a # [email protected].8
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@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # [email protected].1
58+
uses: github/codeql-action/autobuild@dd746615b3b9d728a6a37ca2045b68ca76d4841a # [email protected].8
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@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # [email protected].1
69+
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a # [email protected].8

.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@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1.11.1
22+
uses: actions/create-github-app-token@136412a57a7081aa63c935a2cc2918f76c34f514 # v1.11.2
2323
with:
2424
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
2525
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}

CHANGELOG.md

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,30 @@
88
99
## Unreleased
1010

11+
### Changes
12+
13+
- Load `optionsFile` into the JS bundle during Metro bundle process ([#4476](https://github.com/getsentry/sentry-react-native/pull/4476))
14+
- Add experimental version of `startWithConfigureOptions` for Apple platforms ([#4444](https://github.com/getsentry/sentry-react-native/pull/4444))
15+
- Add experimental version of `init` with optional `OptionsConfiguration<SentryAndroidOptions>` for Android ([#4451](https://github.com/getsentry/sentry-react-native/pull/4451))
16+
- Add initialization using `sentry.options.json` for Apple platforms ([#4447](https://github.com/getsentry/sentry-react-native/pull/4447))
17+
- Add initialization using `sentry.options.json` for Android ([#4451](https://github.com/getsentry/sentry-react-native/pull/4451))
18+
19+
### Internal
20+
21+
- Extract iOS native initialization to standalone structures ([#4442](https://github.com/getsentry/sentry-react-native/pull/4442))
22+
- Extract Android native initialization to standalone structures ([#4445](https://github.com/getsentry/sentry-react-native/pull/4445))
23+
24+
### Dependencies
25+
26+
- Bump JavaScript SDK from v8.53.0 to v8.54.0 ([#4503](https://github.com/getsentry/sentry-react-native/pull/4503))
27+
- [changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#8540)
28+
- [diff](https://github.com/getsentry/sentry-javascript/compare/8.53.0...8.54.0)
29+
30+
## 6.6.0
31+
1132
### Features
1233

13-
- Load `optionsFile` into the JS bundle during Metro bundle process ([#4476](https://github.com/getsentry/sentry-react-native/pull/4476))
34+
- Send Sentry React Native SDK version in the Session Replay Events on iOS ([#4450](https://github.com/getsentry/sentry-react-native/pull/4450))
1435

1536
### Fixes
1637

@@ -22,28 +43,25 @@
2243

2344
- Rename `navigation.processing` span to more expressive `Navigation dispatch to screen A mounted/navigation cancelled` ([#4423](https://github.com/getsentry/sentry-react-native/pull/4423))
2445
- Add RN SDK package to `sdk.packages` for Cocoa ([#4381](https://github.com/getsentry/sentry-react-native/pull/4381))
25-
- Add experimental version of `startWithConfigureOptions` for Apple platforms ([#4444](https://github.com/getsentry/sentry-react-native/pull/4444))
26-
- Add experimental version of `init` with optional `OptionsConfiguration<SentryAndroidOptions>` for Android ([#4451](https://github.com/getsentry/sentry-react-native/pull/4451))
27-
- Add initialization using `sentry.options.json` for Apple platforms ([#4447](https://github.com/getsentry/sentry-react-native/pull/4447))
28-
- Add initialization using `sentry.options.json` for Android ([#4451](https://github.com/getsentry/sentry-react-native/pull/4451))
2946

3047
### Internal
3148

3249
- Initialize `RNSentryTimeToDisplay` during native module `init` on iOS ([#4443](https://github.com/getsentry/sentry-react-native/pull/4443))
33-
- Extract iOS native initialization to standalone structures ([#4442](https://github.com/getsentry/sentry-react-native/pull/4442))
34-
- Extract Android native initialization to standalone structures ([#4445](https://github.com/getsentry/sentry-react-native/pull/4445))
3550

3651
### Dependencies
3752

38-
- Bump CLI from v2.39.1 to v2.41.0 ([#4412](https://github.com/getsentry/sentry-react-native/pull/4412), [#4468](https://github.com/getsentry/sentry-react-native/pull/4468))
39-
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2410)
40-
- [diff](https://github.com/getsentry/sentry-cli/compare/2.39.1...2.41.0)
41-
- Bump JavaScript SDK from v8.47.0 to v8.50.0 ([#4421](https://github.com/getsentry/sentry-react-native/pull/4421), [#4449](https://github.com/getsentry/sentry-react-native/pull/4449), [#4453](https://github.com/getsentry/sentry-react-native/pull/4453))
42-
- [changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#8500)
43-
- [diff](https://github.com/getsentry/sentry-javascript/compare/8.47.0...8.50.0)
53+
- Bump CLI from v2.39.1 to v2.41.1 ([#4412](https://github.com/getsentry/sentry-react-native/pull/4412), [#4468](https://github.com/getsentry/sentry-react-native/pull/4468), [#4473](https://github.com/getsentry/sentry-react-native/pull/4473))
54+
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2411)
55+
- [diff](https://github.com/getsentry/sentry-cli/compare/2.39.1...2.41.1)
56+
- Bump JavaScript SDK from v8.47.0 to v8.53.0 ([#4421](https://github.com/getsentry/sentry-react-native/pull/4421), [#4449](https://github.com/getsentry/sentry-react-native/pull/4449), [#4453](https://github.com/getsentry/sentry-react-native/pull/4453), [#4480](https://github.com/getsentry/sentry-react-native/pull/4480), [#4491](https://github.com/getsentry/sentry-react-native/pull/4491), [#4496](https://github.com/getsentry/sentry-react-native/pull/4496), [#4497](https://github.com/getsentry/sentry-react-native/pull/4497))
57+
- [changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#8530)
58+
- [diff](https://github.com/getsentry/sentry-javascript/compare/8.47.0...8.53.0)
4459
- Bump Android SDK from v7.20.0 to v7.20.1 ([#4467](https://github.com/getsentry/sentry-react-native/pull/4467))
4560
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#7201)
4661
- [diff](https://github.com/getsentry/sentry-java/compare/7.20.0...7.20.1)
62+
- Bump Cocoa SDK from v8.43.0 to v8.44.0 ([#4495](https://github.com/getsentry/sentry-react-native/pull/4495))
63+
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8440)
64+
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.43.0...8.44.0)
4765

4866
## 6.5.0
4967

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017-2024 Sentry
3+
Copyright (c) 2017 Sentry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

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": "6.5.0",
3+
"version": "6.6.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": "8.50.0",
17-
"@sentry/react-native": "6.5.0",
16+
"@sentry/core": "8.54.0",
17+
"@sentry/react-native": "6.6.0",
1818
"@types/node": "^20.9.3",
1919
"@types/react": "^18.2.64",
2020
"appium": "2.4.1",

dev-packages/type-check/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sentry-react-native-type-check",
33
"private": true,
4-
"version": "6.5.0",
4+
"version": "6.6.0",
55
"scripts": {
66
"type-check": "./run-type-check.sh"
77
}

dev-packages/utils/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = {};

dev-packages/utils/metro.js

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
const path = require('path');
2+
const exclusionList = require('metro-config/src/defaults/exclusionList');
3+
4+
/**
5+
* Packages used by the sample apps
6+
*/
7+
const getMonorepoPackages = monorepoRoot => {
8+
return {
9+
'@sentry/react-native': path.resolve(monorepoRoot, 'packages/core'),
10+
};
11+
};
12+
13+
/**
14+
* Block given packages present in the monorepo packages to avoid conflicts with the sample apps
15+
*/
16+
const getBlockList = (monorepoPackages, excludedPackages) => {
17+
return Object.values(monorepoPackages)
18+
.map(p => excludedPackages.map(e => new RegExp(`${p}/node_modules/${e}/.*`)))
19+
.flat();
20+
};
21+
22+
const withMonorepo = config => {
23+
const projectRoot = config.projectRoot;
24+
if (!projectRoot) {
25+
throw new Error('projectRoot is required');
26+
}
27+
28+
const monorepoRoot = path.resolve(projectRoot, '../..');
29+
const monorepoPackages = getMonorepoPackages(monorepoRoot);
30+
31+
config.resolver = config.resolver || {};
32+
33+
const blockList = [
34+
...((Array.isArray(config.resolver.blockList) && config.resolver.blockList) ||
35+
(!!config.resolver.blockList && [config.resolver.blockList]) ||
36+
[]),
37+
...getBlockList(monorepoPackages, ['react-native', 'react']),
38+
new RegExp('.*\\android\\.*'), // Required for Windows in order to run the Sample.
39+
];
40+
config.resolver.blockList = exclusionList(blockList);
41+
42+
config.watchFolders = [...(config.watchFolders || []), projectRoot, ...Object.values(monorepoPackages)];
43+
44+
config.resolver.extraNodeModules = {
45+
...config.resolver.extraNodeModules,
46+
...monorepoPackages,
47+
'react-native': path.resolve(projectRoot, 'node_modules/react-native'),
48+
react: path.resolve(projectRoot, 'node_modules/react'),
49+
};
50+
51+
config.resolver.nodeModulesPaths = [
52+
...(config.resolver.nodeModulesPaths || []),
53+
path.resolve(projectRoot, 'node_modules'),
54+
...Object.values(monorepoPackages).map(p => path.resolve(p, 'node_modules')),
55+
];
56+
57+
return config;
58+
};
59+
60+
module.exports = {
61+
withMonorepo,
62+
};

dev-packages/utils/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "sentry-react-native-samples-utils",
3+
"version": "6.6.0",
4+
"description": "Internal Samples Utils",
5+
"main": "index.js",
6+
"license": "MIT",
7+
"private": true,
8+
"dependencies": {
9+
"metro-config": "^0.81.0"
10+
}
11+
}

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "6.5.0",
3+
"version": "6.6.0",
44
"packages": [
55
"packages/*",
66
"dev-packages/*",

0 commit comments

Comments
 (0)