-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Sentry Dart and Flutter Migration guide #3287
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c2b16c0
Sentry Dart and Flutter Migration guide
ueman 8e49c6e
Imporve migration guide with PR feedback
ueman 5cd325a
Update src/platforms/dart/migration.mdx
marandaneto 92ac66b
Update src/platforms/flutter/migration.mdx
marandaneto 7c4500b
Update src/platforms/dart/migration.mdx
marandaneto 83a4cfe
Add notes about Dart version
ueman 3b903cc
Update src/platforms/dart/usage/advanced-usage.mdx
ueman 2fa5338
Update src/platforms/dart/migration.mdx
ueman 0ef1860
Merge remote-tracking branch 'upstream/master' into dart-flutter-v5
ueman d6cd5cb
increase required Dart SDK version
ueman 73fe81d
Update src/platforms/dart/migration.mdx
marandaneto 407e920
Update src/platforms/flutter/migration.mdx
marandaneto File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| --- | ||
| title: Migration Guide | ||
| sidebar_order: 1000 | ||
| --- | ||
|
|
||
| ## Migrating from `sentry` `4.0.x` to `sentry` `5.0.0` | ||
|
|
||
| * Sentry's Dart SDK version 5.0.0 and above requires Dart 1.12.0 | ||
| * Fix: Prefix classes with Sentry | ||
| * A couple of classes were often conflicting with user's code. | ||
| As a result, this change renames the following classes: | ||
| * `App` -> `SentryApp` | ||
| * `Browser` -> `SentryBrowser` | ||
| * `Device` -> `SentryDevice` | ||
| * `Gpu` -> `SentryGpu` | ||
| * `Integration` -> `SentryIntegration` | ||
| * `Message` -> `SentryMessage` | ||
| * `OperatingSystem` -> `SentryOperatingSystem` | ||
| * `Orientation` -> `SentryOrientation` | ||
| * `Request` -> `SentryRequest` | ||
| * `User` -> `SentryUser` | ||
| * Return type of `Sentry.close()` changed from `void` to `Future<void>` and `Integration.close()` changed from `void` to `FutureOr<void>` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| title: Migration Guide | ||
| sidebar_order: 1000 | ||
| --- | ||
|
|
||
| ## Migrating from `sentry_flutter` `4.0.x` to `sentry_flutter` `5.0.0` | ||
|
|
||
| In addition to the changes introduced in [sentry](/platforms/dart/migration/): | ||
|
|
||
| * `SentryFlutterOptions.enableLifecycleBreadcrumbs` was replaced with `SentryFlutterOptions.enableAppLifecycleBreadcrumbs`. | ||
| * The Web Plugin Registrant import changed from `import 'package:sentry_flutter/src/sentry_flutter_web.dart';` to `import 'package:sentry_flutter/sentry_flutter_web.dart';` | ||
| * This change may lead to breaking changes. In most cases, however, this change won't lead to breaking changes since the referencing file is auto-generated. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.