Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: v9 #2659

Draft
wants to merge 46 commits into
base: main
Choose a base branch
from
Draft

wip: v9 #2659

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
606f16b
[v9]: Bump Dart and Flutter version, Dart to 3.5.0, Flutter to 3.24.0…
denrase Feb 5, 2025
c42f951
Merge branch 'main' into v9
vaind Feb 5, 2025
888d2b8
chore(deps): update Android SDK to v8.1.0 (#2650)
github-actions[bot] Feb 5, 2025
0343b5a
Merge branch 'main' into v9
denrase Feb 5, 2025
5bf38c2
[v9] Remove deprecated `beforeScreenshot` (#2662)
denrase Feb 10, 2025
496768f
[v9]: Remove screenshot option `attachScreenshotOnlyWhenResumed` (#2…
denrase Feb 10, 2025
fc1b73c
Merge branch 'main' into v9
denrase Feb 10, 2025
e02b3d6
fix cl
denrase Feb 10, 2025
8043355
cleanup metrics prepare.sh (#2676)
vaind Feb 10, 2025
ce53819
[v9]: remove manual TTID (#2668)
buenaflor Feb 10, 2025
b2409ce
Merge branch 'main' into v9
buenaflor Feb 10, 2025
e401af3
[v9] Remove user segment (#2687)
buenaflor Feb 11, 2025
3e1c2c9
Merge branch 'main' into v9
buenaflor Feb 11, 2025
0dbb666
[v9]: remove `options.autoAppStart` and `setAppStartEnd` (#2680)
buenaflor Feb 11, 2025
98d6f2d
[v9] Remove deprecated loggers (#2685)
buenaflor Feb 11, 2025
3ab3095
[v9]: Add hint for transactions (#2675)
denrase Feb 12, 2025
e1f690d
refactor: use JNI for Android integration (#2670)
vaind Feb 13, 2025
d41e9d0
Merge branch 'main' into v9
buenaflor Feb 13, 2025
aee65d3
fix broken merge
buenaflor Feb 13, 2025
793410d
Merge branch 'main' into v9
buenaflor Feb 13, 2025
709e262
ignore warning for dart:js imports
buenaflor Feb 13, 2025
7a0aa9a
ci: remove unnecessary flutter upgrade (#2714)
vaind Feb 13, 2025
9766800
[v9]: Remove `dart:html` usage in favour of `package:web` (#2710)
buenaflor Feb 13, 2025
d98ed02
[v9]: Remove `enableTracing` (#2695)
buenaflor Feb 13, 2025
5ce593b
chore(deps): update Android SDK to v8.2.0 (#2713)
github-actions[bot] Feb 13, 2025
ea071ab
[v9] Enable JS SDK native integration by default (#2688)
buenaflor Feb 14, 2025
65d5fea
[v9] Remove old user feedback api (#2686)
buenaflor Feb 18, 2025
a685eaf
[v9]: bump drift min version and use `QueryInterceptor` instead of `Q…
buenaflor Feb 18, 2025
9fa06c0
[v9] Remove max response body size (#2709)
denrase Feb 18, 2025
75e3eba
Merge branch 'main' into v9
denrase Feb 18, 2025
7c468df
[v9]: Enable privacy masking for screenshots by default (#2728)
denrase Feb 18, 2025
0f8bd48
Merge branch 'main' into v9
buenaflor Feb 19, 2025
7971053
Merge branch 'main' into v9
buenaflor Feb 20, 2025
d940409
fix missing hint in beforeSendTransaction in tests
buenaflor Feb 20, 2025
68bad61
Merge branch 'main' into v9
buenaflor Feb 20, 2025
abd3732
Prepare changelog for alpha
buenaflor Feb 20, 2025
1fa8baa
remove dart html usage import that was added during merge
buenaflor Feb 20, 2025
fff4883
fix v9 web integration test (#2743)
buenaflor Feb 21, 2025
e43c83a
release: 9.0.0-alpha.1
getsentry-bot Feb 21, 2025
bb29ef9
Merge branch 'release/9.0.0-alpha.1' into v9
Feb 21, 2025
b06e562
Move replay and privacy from experimental to options (#2755)
denrase Feb 26, 2025
63f825f
Remove renderer from `flutter_context` (#2751)
denrase Mar 3, 2025
245c0d3
Remove workaround for `Platform.executable` (#2777)
denrase Mar 11, 2025
7f8043c
Merge branch 'main' into v9
denrase Mar 11, 2025
342e82b
refactor: cleanup platform mocking (#2730)
vaind Mar 11, 2025
dd80448
Merge branch 'main' into v9
buenaflor Mar 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/coverage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ runs:
with:
path: './${{ inputs.directory }}/coverage/lcov.info'
min_coverage: ${{ inputs.min-coverage }}
exclude: 'lib/src/native/cocoa/binding.dart'
exclude: 'lib/src/native/**/binding.dart lib/src/native/java/android_replay_recorder.dart'
1 change: 1 addition & 0 deletions .github/file-filters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ high_risk_code: &high_risk_code
- "flutter/ios/Classes/SentryFlutterPluginApple.swift"
- "flutter/lib/src/screenshot/recorder.dart"
- "flutter/lib/src/screenshot/widget_filter.dart"
- "flutter/lib/src/native/java/android_replay_recorder.dart"
5 changes: 0 additions & 5 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ jobs:

- run: dart doc --dry-run

- name: Run publish validation
run: |
dart pub get --directory ../scripts/publish_validation
dart run ../scripts/publish_validation/bin/publish_validation.dart --executable ${{ inputs.sdk }}

package-analysis:
# `axel-op/dart-package-analyzer` is using `flutter pub upgrade` instead of `get`,
# which ignores pubspec.yaml `dependency_overrides`. Because of that, all `release/*` branches are failing,
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ jobs:
matrix:
os: [ubuntu]
sdk:
- '2.18'
- '2.19'
- '3.0'
- '3.1'
- '3.2'
- '3.3'
- '3.4'
- '3.5'
- stable
- beta
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,17 @@ jobs:

steps:
- uses: actions/checkout@v4

- uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # [email protected]
with:
channel: main
- run: flutter upgrade

- run: flutter config --enable-swift-package-manager

- name: Run on iOS
if: matrix.target == 'ios'
run: flutter build ios --no-codesign

- name: Run on macOS
if: matrix.target == 'macos'
run: flutter build macos
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/flutter_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,6 @@ jobs:
with:
channel: ${{ matrix.sdk }}

- name: flutter upgrade
run: flutter upgrade

- name: flutter pub get
run: flutter pub get

Expand All @@ -204,15 +201,15 @@ jobs:
# Start Xvfb with specific screen settings
Xvfb -ac :99 -screen 0 1280x1024x16 &
export DISPLAY=:99

# Start ChromeDriver
chromedriver --port=4444 &

# Wait for services to start
sleep 5

# Run the tests
flutter drive \
--driver=integration_test/test_driver/driver.dart \
--target=integration_test/web_sdk_test.dart \
-d chrome
-d chrome
8 changes: 4 additions & 4 deletions .github/workflows/min_version_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: "adopt"
java-version: "11"
java-version: "17"

- uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # [email protected]
with:
flutter-version: "3.0.0"
flutter-version: "3.24.0"

- name: Build Android
run: |
Expand All @@ -53,7 +53,7 @@ jobs:

- uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # [email protected]
with:
flutter-version: "3.0.0"
flutter-version: "3.24.0"

- uses: ruby/setup-ruby@277ba2a127aba66d45bad0fa2dc56f80dbfedffa # [email protected]
with:
Expand All @@ -76,7 +76,7 @@ jobs:

- uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # [email protected]
with:
flutter-version: "3.0.0"
flutter-version: "3.24.0"

- name: Build web
run: |
Expand Down
45 changes: 44 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
# Changelog

## Unreleased 9.0.0

- Move replay and privacy from experimental to options ([#2755](https://github.com/getsentry/sentry-dart/pull/2755))
- Remove renderer from `flutter_context` ([#2751](https://github.com/getsentry/sentry-dart/pull/2751))
- Cleanup platform mocking ([#2730](https://github.com/getsentry/sentry-dart/pull/2730))
- The `PlatformChecker` was renamed to `RuntimeChecker`
- Moved `PlatformChecker.platform` to `options.platform`

## 9.0.0-alpha.1

### Breaking changes

- Remove `SentryDisplayWidget` and manual TTID implementation ([#2668](https://github.com/getsentry/sentry-dart/pull/2668))
- Increase minimum SDK version requirements to Dart v3.5.0 and Flutter v3.24.0 ([#2643](https://github.com/getsentry/sentry-dart/pull/2643))
- Remove screenshot option `attachScreenshotOnlyWhenResumed` ([#2664](https://github.com/getsentry/sentry-dart/pull/2664))
- Remove deprecated `beforeScreenshot` ([#2662](https://github.com/getsentry/sentry-dart/pull/2662))
- Remove old user feedback api ([#2686](https://github.com/getsentry/sentry-dart/pull/2686))
- Remove deprecated loggers ([#2685](https://github.com/getsentry/sentry-dart/pull/2685))
- Remove user segment ([#2687](https://github.com/getsentry/sentry-dart/pull/2687))
- Enable JS SDK native integration by default ([#2688](https://github.com/getsentry/sentry-dart/pull/2688))
- Remove `enableTracing` ([#2695](https://github.com/getsentry/sentry-dart/pull/2695))
- Remove `options.autoAppStart` and `setAppStartEnd` ([#2680](https://github.com/getsentry/sentry-dart/pull/2680))
- Bump Drift min version to `2.24.0` and use `QueryInterceptor` instead of `QueryExecutor` ([#2679](https://github.com/getsentry/sentry-dart/pull/2679))
- Add hint for transactions ([#2675](https://github.com/getsentry/sentry-dart/pull/2675))
- `BeforeSendTransactionCallback` now has a `Hint` parameter
- Remove `dart:html` usage in favour of `package:web` ([#2710](https://github.com/getsentry/sentry-dart/pull/2710))
- Remove max response body size ([#2709](https://github.com/getsentry/sentry-dart/pull/2709))
- Responses are now only attached if size is below ~0.15mb
- Responses are attached to the `Hint` object, which can be read in `beforeSend`/`beforeSendTransaction` callbacks via `hint.response`.
- For now, only the `dio` integration is supported.
- Enable privacy masking for screenshots by default ([#2728](https://github.com/getsentry/sentry-dart/pull/2728))

### Enhancements

- Replay: improve Android native interop performance by using JNI ([#2670](https://github.com/getsentry/sentry-dart/pull/2670))

### Dependencies

- Bump Android SDK from v7.20.1 to v8.1.0 ([#2650](https://github.com/getsentry/sentry-dart/pull/2650))
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#810)
- [diff](https://github.com/getsentry/sentry-java/compare/7.20.1...8.1.0)
## Unreleased


Expand Down Expand Up @@ -58,6 +99,9 @@ final db = AppDatabase(executor);

### Dependencies

- 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))
- [changelog](https://github.com/getsentry/sentry-java/blob/7.x.x/CHANGELOG.md#820)
- [diff](https://github.com/getsentry/sentry-java/compare/7.20.1...8.2.0)
- Bump Native SDK from v0.7.19 to v0.7.20 ([#2652](https://github.com/getsentry/sentry-dart/pull/2652))
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0720)
- [diff](https://github.com/getsentry/sentry-native/compare/0.7.19...0.7.20)
Expand Down Expand Up @@ -529,7 +573,6 @@ final db = AppDatabase(executor);
```
- Replace deprecated `BeforeScreenshotCallback` with new `BeforeCaptureCallback`.


### Fixes

- Catch errors thrown during `handleBeginFrame` and `handleDrawFrame` ([#2446](https://github.com/getsentry/sentry-dart/pull/2446))
Expand Down
2 changes: 1 addition & 1 deletion dart/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 1.0.0
publish_to: none

environment:
sdk: '>=2.17.0 <4.0.0'
sdk: '>=3.5.0 <4.0.0'

dependencies:
sentry:
Expand Down
4 changes: 2 additions & 2 deletions dart/example_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ description: An absolute bare-bones web app.
publish_to: 'none'

environment:
sdk: '>=2.17.0 <4.0.0'
sdk: '>=3.5.0 <4.0.0'

dependencies:
sentry:
path: ../../dart/
web: ^0.5.1
web: ^1.1.0

dev_dependencies:
build_runner: ^2.4.2
Expand Down
9 changes: 0 additions & 9 deletions dart/example_web_legacy/.gitignore

This file was deleted.

8 changes: 0 additions & 8 deletions dart/example_web_legacy/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions dart/example_web_legacy/analysis_options.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions dart/example_web_legacy/pubspec.yaml

This file was deleted.

76 changes: 0 additions & 76 deletions dart/example_web_legacy/web/event.dart

This file was deleted.

Binary file removed dart/example_web_legacy/web/favicon.ico
Binary file not shown.
69 changes: 0 additions & 69 deletions dart/example_web_legacy/web/index.html

This file was deleted.

Loading
Loading