Skip to content

Commit 1c98b4d

Browse files
authored
Merge pull request #2659 from getsentry/v9
v9 branch
2 parents 7b34d99 + 59fed87 commit 1c98b4d

File tree

292 files changed

+8063
-6465
lines changed

Some content is hidden

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

292 files changed

+8063
-6465
lines changed

.github/actions/coverage/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ runs:
3333
with:
3434
path: './${{ inputs.directory }}/coverage/lcov.info'
3535
min_coverage: ${{ inputs.min-coverage }}
36-
exclude: 'lib/src/native/cocoa/binding.dart'
36+
exclude: 'lib/src/native/**/binding.dart lib/src/native/java/android_replay_recorder.dart'

.github/file-filters.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ high_risk_code: &high_risk_code
77
- "flutter/ios/Classes/SentryFlutterPluginApple.swift"
88
- "flutter/lib/src/screenshot/recorder.dart"
99
- "flutter/lib/src/screenshot/widget_filter.dart"
10+
- "flutter/lib/src/native/java/android_replay_recorder.dart"

.github/workflows/analyze.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ jobs:
5454

5555
- run: dart doc --dry-run
5656

57-
- name: Run publish validation
58-
run: |
59-
dart pub get --directory ../scripts/publish_validation
60-
dart run ../scripts/publish_validation/bin/publish_validation.dart --executable ${{ inputs.sdk }}
61-
6257
package-analysis:
6358
# `axel-op/dart-package-analyzer` is using `flutter pub upgrade` instead of `get`,
6459
# which ignores pubspec.yaml `dependency_overrides`. Because of that, all `release/*` branches are failing,

.github/workflows/dart.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ jobs:
3232
matrix:
3333
os: [ubuntu]
3434
sdk:
35-
- '2.18'
36-
- '2.19'
37-
- '3.0'
38-
- '3.1'
39-
- '3.2'
40-
- '3.3'
41-
- '3.4'
4235
- '3.5'
4336
- stable
4437
- beta

.github/workflows/flutter.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,17 @@ jobs:
112112

113113
steps:
114114
- uses: actions/checkout@v4
115+
115116
- uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # [email protected]
116117
with:
117118
channel: main
118-
- run: flutter upgrade
119+
119120
- run: flutter config --enable-swift-package-manager
121+
120122
- name: Run on iOS
121123
if: matrix.target == 'ios'
122124
run: flutter build ios --no-codesign
125+
123126
- name: Run on macOS
124127
if: matrix.target == 'macos'
125128
run: flutter build macos

.github/workflows/flutter_test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,6 @@ jobs:
182182
with:
183183
channel: ${{ matrix.sdk }}
184184

185-
- name: flutter upgrade
186-
run: flutter upgrade
187-
188185
- name: flutter pub get
189186
run: flutter pub get
190187

@@ -204,15 +201,15 @@ jobs:
204201
# Start Xvfb with specific screen settings
205202
Xvfb -ac :99 -screen 0 1280x1024x16 &
206203
export DISPLAY=:99
207-
204+
208205
# Start ChromeDriver
209206
chromedriver --port=4444 &
210-
207+
211208
# Wait for services to start
212209
sleep 5
213210
214211
# Run the tests
215212
flutter drive \
216213
--driver=integration_test/test_driver/driver.dart \
217214
--target=integration_test/web_sdk_test.dart \
218-
-d chrome
215+
-d chrome

.github/workflows/min_version_test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
- uses: actions/setup-java@v4
3333
with:
3434
distribution: "adopt"
35-
java-version: "11"
35+
java-version: "17"
3636

3737
- uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # [email protected]
3838
with:
39-
flutter-version: "3.0.0"
39+
flutter-version: "3.24.0"
4040

4141
- name: Build Android
4242
run: |
@@ -53,7 +53,7 @@ jobs:
5353

5454
- uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # [email protected]
5555
with:
56-
flutter-version: "3.0.0"
56+
flutter-version: "3.24.0"
5757

5858
- uses: ruby/setup-ruby@277ba2a127aba66d45bad0fa2dc56f80dbfedffa # [email protected]
5959
with:
@@ -84,7 +84,7 @@ jobs:
8484

8585
- uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # [email protected]
8686
with:
87-
flutter-version: "3.0.0"
87+
flutter-version: "3.24.0"
8888

8989
- name: Build web
9090
run: |

CHANGELOG.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
11
# Changelog
22

3+
## Unreleased 9.0.0
4+
5+
- Move replay and privacy from experimental to options ([#2755](https://github.com/getsentry/sentry-dart/pull/2755))
6+
- Remove renderer from `flutter_context` ([#2751](https://github.com/getsentry/sentry-dart/pull/2751))
7+
- Cleanup platform mocking ([#2730](https://github.com/getsentry/sentry-dart/pull/2730))
8+
- The `PlatformChecker` was renamed to `RuntimeChecker`
9+
- Moved `PlatformChecker.platform` to `options.platform`
10+
11+
## 9.0.0-alpha.1
12+
13+
### Breaking changes
14+
15+
- Remove `SentryDisplayWidget` and manual TTID implementation ([#2668](https://github.com/getsentry/sentry-dart/pull/2668))
16+
- Increase minimum SDK version requirements to Dart v3.5.0 and Flutter v3.24.0 ([#2643](https://github.com/getsentry/sentry-dart/pull/2643))
17+
- Remove screenshot option `attachScreenshotOnlyWhenResumed` ([#2664](https://github.com/getsentry/sentry-dart/pull/2664))
18+
- Remove deprecated `beforeScreenshot` ([#2662](https://github.com/getsentry/sentry-dart/pull/2662))
19+
- Remove old user feedback api ([#2686](https://github.com/getsentry/sentry-dart/pull/2686))
20+
- Remove deprecated loggers ([#2685](https://github.com/getsentry/sentry-dart/pull/2685))
21+
- Remove user segment ([#2687](https://github.com/getsentry/sentry-dart/pull/2687))
22+
- Enable JS SDK native integration by default ([#2688](https://github.com/getsentry/sentry-dart/pull/2688))
23+
- Remove `enableTracing` ([#2695](https://github.com/getsentry/sentry-dart/pull/2695))
24+
- Remove `options.autoAppStart` and `setAppStartEnd` ([#2680](https://github.com/getsentry/sentry-dart/pull/2680))
25+
- Bump Drift min version to `2.24.0` and use `QueryInterceptor` instead of `QueryExecutor` ([#2679](https://github.com/getsentry/sentry-dart/pull/2679))
26+
- Add hint for transactions ([#2675](https://github.com/getsentry/sentry-dart/pull/2675))
27+
- `BeforeSendTransactionCallback` now has a `Hint` parameter
28+
- Remove `dart:html` usage in favour of `package:web` ([#2710](https://github.com/getsentry/sentry-dart/pull/2710))
29+
- Remove max response body size ([#2709](https://github.com/getsentry/sentry-dart/pull/2709))
30+
- Responses are now only attached if size is below ~0.15mb
31+
- Responses are attached to the `Hint` object, which can be read in `beforeSend`/`beforeSendTransaction` callbacks via `hint.response`.
32+
- For now, only the `dio` integration is supported.
33+
- Enable privacy masking for screenshots by default ([#2728](https://github.com/getsentry/sentry-dart/pull/2728))
34+
35+
### Enhancements
36+
37+
- Replay: improve Android native interop performance by using JNI ([#2670](https://github.com/getsentry/sentry-dart/pull/2670))
38+
39+
### Dependencies
40+
41+
- Bump Android SDK from v7.20.1 to v8.1.0 ([#2650](https://github.com/getsentry/sentry-dart/pull/2650))
42+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#810)
43+
- [diff](https://github.com/getsentry/sentry-java/compare/7.20.1...8.1.0)
44+
## Unreleased
345
## 8.14.0
446

547
This release fixes an issue where Cold starts can be incorrectly reported as Warm starts on Android.
@@ -97,6 +139,9 @@ final db = AppDatabase(executor);
97139

98140
### Dependencies
99141

142+
- Bump Android SDK from v7.20.1 to v8.2.0 ([#2660](https://github.com/getsentry/sentry-dart/pull/2660), [#2713](https://github.com/getsentry/sentry-dart/pull/2713))
143+
- [changelog](https://github.com/getsentry/sentry-java/blob/7.x.x/CHANGELOG.md#820)
144+
- [diff](https://github.com/getsentry/sentry-java/compare/7.20.1...8.2.0)
100145
- Bump Native SDK from v0.7.19 to v0.7.20 ([#2652](https://github.com/getsentry/sentry-dart/pull/2652))
101146
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0720)
102147
- [diff](https://github.com/getsentry/sentry-native/compare/0.7.19...0.7.20)
@@ -578,7 +623,6 @@ This release fixes an issue where Cold starts can be incorrectly reported as War
578623
```
579624
- Replace deprecated `BeforeScreenshotCallback` with new `BeforeCaptureCallback`.
580625

581-
582626
### Fixes
583627

584628
- Catch errors thrown during `handleBeginFrame` and `handleDrawFrame` ([#2446](https://github.com/getsentry/sentry-dart/pull/2446))

dart/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 1.0.0
55
publish_to: none
66

77
environment:
8-
sdk: '>=2.17.0 <4.0.0'
8+
sdk: '>=3.5.0 <4.0.0'
99

1010
dependencies:
1111
sentry:

dart/example_web/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ description: An absolute bare-bones web app.
44
publish_to: 'none'
55

66
environment:
7-
sdk: '>=2.17.0 <4.0.0'
7+
sdk: '>=3.5.0 <4.0.0'
88

99
dependencies:
1010
sentry:
1111
path: ../../dart/
12-
web: ^0.5.1
12+
web: ^1.1.0
1313

1414
dev_dependencies:
1515
build_runner: ^2.4.2

0 commit comments

Comments
 (0)