Skip to content

Commit ce9976c

Browse files
Merge remote-tracking branch 'origin/main' into 6.3.0-beta
2 parents 624d26f + db44eaf commit ce9976c

File tree

21 files changed

+935
-224
lines changed

21 files changed

+935
-224
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@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # [email protected].4
47+
uses: github/codeql-action/init@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # [email protected].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@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # [email protected].4
58+
uses: github/codeql-action/autobuild@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # [email protected].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@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # [email protected].4
69+
uses: github/codeql-action/analyze@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # [email protected].5

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
### Dependencies
1717

18-
- Bump JavaScript SDK from v8.38.0 to v8.39.0 ([#4293](https://github.com/getsentry/sentry-react-native/pull/4293))
19-
- [changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#8390)
20-
- [diff](https://github.com/getsentry/sentry-javascript/compare/8.38.0...8.39.0)
18+
- Bump JavaScript SDK from v8.38.0 to v8.40.0 ([#4293](https://github.com/getsentry/sentry-react-native/pull/4293), [#4304](https://github.com/getsentry/sentry-react-native/pull/4304))
19+
- [changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#8400)
20+
- [diff](https://github.com/getsentry/sentry-javascript/compare/8.38.0...8.40.0)
2121

2222
## 6.3.0-beta.2
2323

dev-packages/e2e-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@babel/preset-env": "^7.20.2",
1515
"@babel/preset-typescript": "^7.18.6",
1616
"@sentry/react-native": "6.3.0-beta.2",
17-
"@sentry/utils": "8.39.0",
17+
"@sentry/utils": "8.40.0",
1818
"@types/node": "^20.9.3",
1919
"@types/react": "^18.2.64",
2020
"appium": "2.4.1",

packages/core/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,21 @@
6666
},
6767
"dependencies": {
6868
"@sentry/babel-plugin-component-annotate": "2.20.1",
69-
"@sentry/browser": "8.39.0",
69+
"@sentry/browser": "8.40.0",
7070
"@sentry/cli": "2.38.2",
71-
"@sentry/core": "8.39.0",
72-
"@sentry/react": "8.39.0",
73-
"@sentry/types": "8.39.0",
74-
"@sentry/utils": "8.39.0"
71+
"@sentry/core": "8.40.0",
72+
"@sentry/react": "8.40.0",
73+
"@sentry/types": "8.40.0",
74+
"@sentry/utils": "8.40.0"
7575
},
7676
"devDependencies": {
7777
"@babel/core": "^7.23.5",
7878
"@expo/metro-config": "0.17.5",
7979
"@mswjs/interceptors": "^0.25.15",
8080
"@react-native/babel-preset": "0.75.4",
81-
"@sentry-internal/eslint-config-sdk": "8.39.0",
82-
"@sentry-internal/eslint-plugin-sdk": "8.39.0",
83-
"@sentry-internal/typescript": "8.39.0",
81+
"@sentry-internal/eslint-config-sdk": "8.40.0",
82+
"@sentry-internal/eslint-plugin-sdk": "8.40.0",
83+
"@sentry-internal/typescript": "8.40.0",
8484
"@sentry/wizard": "3.34.4",
8585
"@testing-library/react-native": "^12.7.2",
8686
"@types/jest": "^29.5.3",

packages/core/test/tracing/integrations/appStart.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ import { NATIVE } from '../../../src/js/wrapper';
3333
import { getDefaultTestClientOptions, TestClient } from '../../mocks/client';
3434
import { mockFunction } from '../../testutils';
3535

36+
let dateNowSpy: jest.SpyInstance;
37+
3638
jest.mock('../../../src/js/wrapper', () => {
3739
return {
3840
NATIVE: {
@@ -1057,6 +1059,9 @@ function mockTooOldAppStart() {
10571059
function mockReactNativeBundleExecutionStartTimestamp() {
10581060
RN_GLOBAL_OBJ.nativePerformanceNow = () => 100; // monotonic clock like `performance.now()`
10591061
RN_GLOBAL_OBJ.__BUNDLE_START_TIME__ = 50; // 50ms after time origin
1062+
1063+
const currentTimeMilliseconds = Date.now();
1064+
dateNowSpy = jest.spyOn(Date, 'now').mockImplementation(() => currentTimeMilliseconds);
10601065
}
10611066

10621067
/**
@@ -1065,6 +1070,10 @@ function mockReactNativeBundleExecutionStartTimestamp() {
10651070
function clearReactNativeBundleExecutionStartTimestamp() {
10661071
delete RN_GLOBAL_OBJ.nativePerformanceNow;
10671072
delete RN_GLOBAL_OBJ.__BUNDLE_START_TIME__;
1073+
1074+
if (dateNowSpy) {
1075+
dateNowSpy.mockRestore();
1076+
}
10681077
}
10691078

10701079
function set__DEV__(value: boolean) {

samples/expo/app/(tabs)/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Button, StyleSheet } from 'react-native';
22
import Constants from 'expo-constants';
33
import * as Sentry from '@sentry/react-native';
4+
import { reloadAppAsync } from 'expo';
45

56
import { Text, View } from '@/components/Themed';
67
import { setScopeProperties } from '@/utils/setScopeProperties';
@@ -82,6 +83,7 @@ export default function TabOneScreen() {
8283
console.log('Sentry.close() completed.');
8384
}}
8485
/>
86+
<Button title="Reload" onPress={() => reloadAppAsync()} />
8587
</View>
8688
);
8789
}

samples/react-native-macos/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"@react-navigation/bottom-tabs": "^6.5.12",
1717
"@react-navigation/native": "^6.1.9",
1818
"@react-navigation/stack": "^6.3.20",
19-
"@sentry/react": "8.39.0",
19+
"@sentry/react": "8.40.0",
2020
"@sentry/react-native": "6.3.0-beta.2",
21-
"@sentry/types": "8.39.0",
22-
"@sentry/utils": "8.39.0",
21+
"@sentry/types": "8.40.0",
22+
"@sentry/utils": "8.40.0",
2323
"delay": "^6.0.0",
2424
"react": "18.2.0",
2525
"react-native": "0.73.9",

samples/react-native/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ ruby "3.3.0"
66
gem 'cocoapods', '1.15.2'
77
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
88
gem 'fastlane', '2.220.0'
9+
gem 'xcodeproj', '< 1.26.0'

samples/react-native/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ GEM
159159
xcpretty (~> 0.3.0)
160160
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
161161
ffi (1.17.0-arm64-darwin)
162-
ffi (1.17.0-x86_64-darwin)
163162
fourflusher (2.3.1)
164163
fuzzy_match (2.0.4)
165164
gh_inspector (1.1.3)
@@ -280,6 +279,7 @@ DEPENDENCIES
280279
activesupport (>= 6.1.7.5, < 7.1.0)
281280
cocoapods (= 1.15.2)
282281
fastlane (= 2.220.0)
282+
xcodeproj (< 1.26.0)
283283

284284
RUBY VERSION
285285
ruby 3.3.0p0

samples/react-native/android/app/src/main/java/io/sentry/reactnative/sample/MainApplication.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import com.facebook.react.ReactPackage
99
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
1010
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
1111
import com.facebook.react.defaults.DefaultReactNativeHost
12+
import com.facebook.react.soloader.OpenSourceMergedSoMapping
1213
import com.facebook.soloader.SoLoader
1314
import io.sentry.Hint
1415
import io.sentry.SentryEvent
@@ -40,7 +41,7 @@ class MainApplication() : Application(), ReactApplication {
4041
// When the native init is enabled the `autoInitializeNativeSdk`
4142
// in JS has to be set to `false`
4243
// this.initializeSentry()
43-
SoLoader.init(this, false)
44+
SoLoader.init(this, OpenSourceMergedSoMapping)
4445
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
4546
// If you opted-in for the New Architecture, we load the native entry point for this app.
4647
load()

0 commit comments

Comments
 (0)