Skip to content

Commit 1321244

Browse files
authored
promote to stable 3.0.0 (#49)
1 parent 80e28a6 commit 1321244

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ https://sentry.io error tracking service.
88

99
## Versions
1010

11+
Versions `3.0.0` and higher support Flutter for mobile, Flutter for web,
12+
command-line, desktop, and AngularDart.
13+
1114
`>=2.0.0 <3.0.0` is the range of versions that support Flutter for mobile and
1215
Dart VM only.
1316

14-
Versions `3.0.0` and higher supports Flutter for mobile, Flutter for web,
15-
command-line, and AngularDart.
16-
1717
Versions `<2.0.0` are deprecated.
1818

1919
## Usage
@@ -24,7 +24,7 @@ Add `sentry` dependency to your `pubspec.yaml`:
2424

2525
```yaml
2626
dependencies:
27-
sentry: >=2.0.0 <3.0.0
27+
sentry: >=3.0.0 <4.0.0
2828
```
2929
3030
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 {
5454

5555
- Use a `try/catch` block, like in the example above.
5656
- Create a `Zone` with an error handler, e.g. using [runZoned][run_zoned].
57-
57+
5858
```dart
5959
var sentry = SentryClient(dsn: "https://...");
6060
// Run the whole app in a zone to capture all uncaught errors.
@@ -75,7 +75,7 @@ main() async {
7575
);
7676
```
7777
- For Flutter-specific errors (such as layout failures), use [FlutterError.onError][flutter_error]. For example:
78-
78+
7979
```dart
8080
var sentry = SentryClient(dsn: "https://...");
8181
FlutterError.onError = (details, {bool forceReport = false}) {
@@ -92,7 +92,7 @@ main() async {
9292
}
9393
};
9494
```
95-
- Use `Isolate.current.addErrorListener` to capture uncaught errors
95+
- Use `Isolate.current.addErrorListener` to capture uncaught errors
9696
in the root zone.
9797

9898
[run_zoned]: https://api.dartlang.org/stable/dart-async/runZoned.html

lib/src/version.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
library version;
1010

1111
/// The SDK version reported to Sentry.io in the submitted events.
12-
const String sdkVersion = '3.0.0-dev0';
12+
const String sdkVersion = '3.0.0';
1313

1414
/// The SDK name reported to Sentry.io in the submitted events.
1515
const String sdkName = 'dart';

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sentry
2-
version: 3.0.0-dev0
2+
version: 3.0.0
33
description: A pure Dart Sentry.io client.
44
author: Flutter Authors <[email protected]>
55
homepage: https://github.com/flutter/sentry

0 commit comments

Comments
 (0)