diff --git a/README.md b/README.md index 782f7e9c64..01578d323e 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,12 @@ https://sentry.io error tracking service. ## Versions +Versions `3.0.0` and higher support Flutter for mobile, Flutter for web, +command-line, desktop, and AngularDart. + `>=2.0.0 <3.0.0` is the range of versions that support Flutter for mobile and Dart VM only. -Versions `3.0.0` and higher supports Flutter for mobile, Flutter for web, -command-line, and AngularDart. - Versions `<2.0.0` are deprecated. ## Usage @@ -24,7 +24,7 @@ Add `sentry` dependency to your `pubspec.yaml`: ```yaml dependencies: - sentry: >=2.0.0 <3.0.0 + sentry: >=3.0.0 <4.0.0 ``` In your Dart code, import `package:sentry/sentry.dart` and create a `SentryClient` using the DSN issued by Sentry.io: @@ -54,7 +54,7 @@ main() async { - Use a `try/catch` block, like in the example above. - Create a `Zone` with an error handler, e.g. using [runZoned][run_zoned]. - + ```dart var sentry = SentryClient(dsn: "https://..."); // Run the whole app in a zone to capture all uncaught errors. @@ -75,7 +75,7 @@ main() async { ); ``` - For Flutter-specific errors (such as layout failures), use [FlutterError.onError][flutter_error]. For example: - + ```dart var sentry = SentryClient(dsn: "https://..."); FlutterError.onError = (details, {bool forceReport = false}) { @@ -92,7 +92,7 @@ main() async { } }; ``` -- Use `Isolate.current.addErrorListener` to capture uncaught errors +- Use `Isolate.current.addErrorListener` to capture uncaught errors in the root zone. [run_zoned]: https://api.dartlang.org/stable/dart-async/runZoned.html diff --git a/lib/src/version.dart b/lib/src/version.dart index 9102f35d6e..3109a67e7e 100644 --- a/lib/src/version.dart +++ b/lib/src/version.dart @@ -9,7 +9,7 @@ library version; /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '3.0.0-dev0'; +const String sdkVersion = '3.0.0'; /// The SDK name reported to Sentry.io in the submitted events. const String sdkName = 'dart'; diff --git a/pubspec.yaml b/pubspec.yaml index 486fe93e85..443d0de748 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: sentry -version: 3.0.0-dev0 +version: 3.0.0 description: A pure Dart Sentry.io client. author: Flutter Authors homepage: https://github.com/flutter/sentry