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

[v9]: Bump Dart and Flutter version, Dart to 3.5.0, Flutter to 3.24.0 #2643

Open
wants to merge 16 commits into
base: v9
Choose a base branch
from

Conversation

denrase
Copy link
Collaborator

@denrase denrase commented Jan 29, 2025

📜 Description

  • Bump dart and flutter min versions
  • Remove dynamic casts for unavailable APIs
  • Format

💡 Motivation and Context

Closes #2626

💚 How did you test it?

CI

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPii is enabled
  • I updated the docs if needed
  • All tests passing
  • No breaking changes

# Conflicts:
#	.github/workflows/dart.yml
#	dart/test/run_zoned_guarded_integration_test.dart
#	flutter/lib/src/sentry_asset_bundle.dart
#	flutter/lib/src/sentry_flutter.dart
#	flutter/test/screenshot/sentry_screenshot_widget_test.dart
@@ -393,6 +393,10 @@
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#7181)
- [diff](https://github.com/getsentry/sentry-java/compare/7.18.0...7.18.1)

## 9.0.0

- Bump Dart and Flutter version, Dart to 3.5.0, Flutter to 3.24.0 ([#2643](https://github.com/getsentry/sentry-dart/pull/2643))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 🚫 The changelog entry seems to be part of an already released section ## 8.13.0.
    Consider moving the entry to the ## Unreleased section, please.

Copy link
Contributor

🚨 Detected changes in high risk code 🚨

High-risk code has higher potential to break the SDK and may be hard to test. To prevent severe bugs, apply the rollout process for releasing such changes and be extra careful when changing and reviewing these files:

  • flutter/lib/src/screenshot/recorder.dart

@denrase denrase marked this pull request as ready for review January 29, 2025 17:38
Copy link
Contributor

@buenaflor buenaflor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good on first pass 👍

will have another look later

Copy link
Contributor

@buenaflor buenaflor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have another library added now link, you can change the versions there too

@@ -869,7 +869,7 @@ class SentryNative {
/// frozen but lists and dicts are not and can be frozen on demand. This
/// automatically happens for some shared values in the event payload like
/// the module list.
class sentry_value_u extends ffi.Union {
base class sentry_value_u extends ffi.Union {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these should be final class, see

$content = $content -replace 'final class', 'class'

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also can you please update the script?

@@ -31229,13 +31229,13 @@ class NSObject extends _ObjCWrapper {
}
}

class ObjCSel extends ffi.Opaque {}
base class ObjCSel extends ffi.Opaque {}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these should be final class, see

sed -i.bak 's|final class|class|g' $binding

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also can you please update the script?

@ueman
Copy link
Collaborator

ueman commented Jan 31, 2025

You can also get rid of this compatibility code:

/// Copied from https://api.flutter.dev/flutter/services/appFlavor-constant.html
/// As soon as Flutter 3.16 is the minimal supported version of Sentry, this
/// can be replaced with the property from the link above.
const String? _appFlavor = String.fromEnvironment('FLUTTER_APP_FLAVOR') != ''
? String.fromEnvironment('FLUTTER_APP_FLAVOR')
: null;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants