Skip to content

Commit a3b2356

Browse files
buenaflorgetsentry-botdenrasegithub-actions[bot]web-flow
authored
Merge main into v9 branch (#2788)
* update Android dependency to 7.22.0 (#2705) * fix: navigation breadcrumb with missing to crashes native (#2720) * release: 8.13.1 * update changelog * fix(web): use `if (dart.library.html)` instead of `if (dart.html)` (#2736) * fix * regenerate mocks * update CHANGELOG * update test * update * fix test * release: 8.13.2 * Use global ruby for `pod install` in min version test (#2783) * chore(deps): update Cocoa SDK to v8.46.0 (#2772) * chore: update flutter/scripts/update-cocoa.sh to 8.46.0 * Update CHANGELOG.md --------- Co-authored-by: GitHub <[email protected]> Co-authored-by: Giancarlo Buenaflor <[email protected]> * Bind root screen transaction to scope (#2756) * chore(deps): update Android SDK to v7.22.1 (#2785) * update android dep * update changelog * update CHANGELOG * release: 8.13.3 * update CHANGELOG * Prepare `8.14.0` changelog (#2787) * update CHANGELOG * update * Update CHANGELOG.md * Update CHANGELOG.md * release: 8.14.0 --------- Co-authored-by: getsentry-bot <[email protected]> Co-authored-by: Denis Andrašec <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: GitHub <[email protected]> Co-authored-by: getsentry-bot <[email protected]>
1 parent dd80448 commit a3b2356

File tree

8 files changed

+293
-61
lines changed

8 files changed

+293
-61
lines changed

.github/workflows/min_version_test.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,20 @@ jobs:
5959
with:
6060
ruby-version: '3.1.2' # https://github.com/flutter/flutter/issues/109385#issuecomment-1212614125
6161

62-
- name: Update Pods
63-
run: sudo gem update
62+
- name: Uninstall existing CocoaPods and install globally
63+
run: |
64+
gem uninstall cocoapods -a
65+
sudo gem install cocoapods
66+
echo "$(which pod)"
67+
6468
- name: Build iOS
6569
run: |
6670
cd min_version_test
6771
flutter pub get
72+
cd ios
73+
pod repo update
74+
pod install
75+
cd ..
6876
flutter build ios --no-codesign
6977
7078
build-web:

CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,57 @@
4242
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#810)
4343
- [diff](https://github.com/getsentry/sentry-java/compare/7.20.1...8.1.0)
4444
## Unreleased
45+
## 8.14.0
4546

47+
This release fixes an issue where Cold starts can be incorrectly reported as Warm starts on Android.
48+
49+
### Behavioral changes
50+
51+
- ⚠️ Auto IP assignment for `SentryUser` is now guarded by `sendDefaultPii` ([#2726](https://github.com/getsentry/sentry-dart/pull/2726))
52+
- If you rely on Sentry automatically processing the IP address of the user, set `options.sendDefaultPii = true` or manually set the IP address of the `SentryUser` to `{{auto}}`
53+
- Adding the device name to Contexts is now guarded by `sendDefaultPii` ([#2741](https://github.com/getsentry/sentry-dart/pull/2741))
54+
- Set `options.sendDefaultPii = true` if you want to have the device name reported
55+
- Remove macOS display refresh rate support ([#2628](https://github.com/getsentry/sentry-dart/pull/2628))
56+
- Can't reliably detect on multi-monitor systems and on older macOS versions.
57+
- Not very meaningful, as other applications may be running in parallel and affecting it.
4658

4759
### Enhancements
4860

4961
- Add Flutter runtime information ([#2742](https://github.com/getsentry/sentry-dart/pull/2742))
5062
- This works if the version of Flutter you're using includes [this code](https://github.com/flutter/flutter/pull/163761).
63+
- Use `loadDebugImagesForAddresses` API for Android ([#2706](https://github.com/getsentry/sentry-dart/pull/2706))
64+
- This reduces the envelope size and data transferred across method channels
65+
- If debug images received by `loadDebugImagesForAddresses` are empty, the SDK loads all debug images as fallback
66+
- Disable `ScreenshotIntegration`, `WidgetsBindingIntegration` and `SentryWidget` in multi-view apps #2366 ([#2366](https://github.com/getsentry/sentry-dart/pull/2366))
5167

5268
### Fixes
5369

5470
- Pass missing `captureFailedRequests` param to `FailedRequestInterceptor` ([#2744](https://github.com/getsentry/sentry-dart/pull/2744))
71+
- Bind root screen transaction to scope ([#2756](https://github.com/getsentry/sentry-dart/pull/2756))
72+
- Reference to `SentryWidgetsFlutterBinding` in warning message in `FramesTrackingIntegration` ([#2704](https://github.com/getsentry/sentry-dart/pull/2704))
5573

74+
### Deprecations
75+
76+
- Deprecate Drift `SentryQueryExecutor` ([#2715](https://github.com/getsentry/sentry-dart/pull/2715))
77+
- This will be replace by `SentryQueryInterceptor` in the next major v9
78+
```dart
79+
// Example usage in Sentry Flutter v9
80+
final executor = NativeDatabase.memory().interceptWith(
81+
SentryQueryInterceptor(databaseName: 'your_db_name'),
82+
);
83+
84+
final db = AppDatabase(executor);
85+
```
86+
- Deprecate `autoAppStart` and `setAppStartEnd` ([#2681](https://github.com/getsentry/sentry-dart/pull/2681))
87+
88+
### Dependencies
89+
90+
- Bump Native SDK from v0.7.19 to v0.7.20 ([#2652](https://github.com/getsentry/sentry-dart/pull/2652))
91+
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0720)
92+
- [diff](https://github.com/getsentry/sentry-native/compare/0.7.19...0.7.20)
93+
- Bump Cocoa SDK from v8.44.0 to v8.46.0 ([#2772](https://github.com/getsentry/sentry-dart/pull/2772))
94+
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8460)
95+
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.44.0...8.46.0)
5696

5797
## 8.14.0-beta.1
5898

@@ -109,6 +149,16 @@ final db = AppDatabase(executor);
109149
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8450)
110150
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.44.0...8.45.0)
111151

152+
## 8.13.3
153+
154+
This release fixes an issue where Cold starts can be incorrectly reported as Warm starts on Android.
155+
156+
### Dependencies
157+
158+
- Bump Android SDK from v7.22.0 to v7.22.1 ([#2785](https://github.com/getsentry/sentry-dart/pull/2785))
159+
- [changelog](https://github.com/getsentry/sentry-java/blob/7.x.x/CHANGELOG.md#7221)
160+
- [diff](https://github.com/getsentry/sentry-java/compare/7.22.0...7.22.1)
161+
112162
## 8.13.2
113163

114164
> [!WARNING]

flutter/ios/sentry_flutter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Sentry SDK for Flutter with support to native through sentry-cocoa.
1616
:tag => s.version.to_s }
1717
s.source_files = 'sentry_flutter/Sources/**/*'
1818
s.public_header_files = 'sentry_flutter/Sources/**/*.h'
19-
s.dependency 'Sentry/HybridSDK', '8.45.0'
19+
s.dependency 'Sentry/HybridSDK', '8.46.0'
2020
s.ios.dependency 'Flutter'
2121
s.osx.dependency 'FlutterMacOS'
2222
s.ios.deployment_target = '12.0'

flutter/ios/sentry_flutter/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let package = Package(
1313
.library(name: "sentry-flutter", targets: ["sentry_flutter", "sentry_flutter_objc"])
1414
],
1515
dependencies: [
16-
.package(url: "https://github.com/getsentry/sentry-cocoa", from: "8.45.0")
16+
.package(url: "https://github.com/getsentry/sentry-cocoa", from: "8.46.0")
1717
],
1818
targets: [
1919
.target(

flutter/lib/src/integrations/native_app_start_handler.dart

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,27 @@ class NativeAppStartHandler {
3737
// Create Transaction & Span
3838

3939
const screenName = 'root /';
40-
final transaction = _hub.startTransaction(
40+
final rootScreenTransaction = _hub.startTransaction(
4141
screenName,
4242
SentrySpanOperations.uiLoad,
4343
startTimestamp: appStartInfo.start,
4444
);
4545

46+
// Bind to scope if null
47+
await _hub.configureScope((scope) {
48+
scope.span ??= rootScreenTransaction;
49+
});
50+
4651
await options.timeToDisplayTracker.track(
47-
transaction,
52+
rootScreenTransaction,
4853
startTimestamp: appStartInfo.start,
4954
endTimestamp: appStartInfo.end,
5055
origin: SentryTraceOrigins.autoUiTimeToDisplay,
5156
);
5257

5358
SentryTracer sentryTracer;
54-
if (transaction is SentryTracer) {
55-
sentryTracer = transaction;
59+
if (rootScreenTransaction is SentryTracer) {
60+
sentryTracer = rootScreenTransaction;
5661
} else {
5762
return;
5863
}
@@ -62,8 +67,15 @@ class NativeAppStartHandler {
6267
sentryTracer.measurements[measurement.name] = appStartInfo.toMeasurement();
6368
await _attachAppStartSpans(appStartInfo, sentryTracer);
6469

70+
// Remove from scope
71+
await _hub.configureScope((scope) {
72+
if (scope.span == rootScreenTransaction) {
73+
scope.span = null;
74+
}
75+
});
76+
6577
// Finish Transaction
66-
await transaction.finish(endTimestamp: appStartInfo.end);
78+
await rootScreenTransaction.finish(endTimestamp: appStartInfo.end);
6779
}
6880

6981
_AppStartInfo? _infoNativeAppStart(

0 commit comments

Comments
 (0)