From 545ce93dc4c8462cff3c624d0f9e3ae594e5cb64 Mon Sep 17 00:00:00 2001 From: Yegor Date: Wed, 11 Dec 2019 08:45:25 -0800 Subject: [PATCH] Implement pub recommendations (#50) --- CHANGELOG.md | 6 +++++- example/README.md | 12 ++++++++++++ bin/test.dart => example/main.dart | 0 lib/src/version.dart | 2 +- pubspec.yaml | 7 ++++--- 5 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 example/README.md rename bin/test.dart => example/main.dart (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5c5c224b4..885c6a129a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,12 @@ # package:sentry changelog +## 3.0.0+1 + +- `pubspec.yaml` and example code clean-up. + ## 3.0.0 -- Support Web +- Support Web - `SentryClient` from `package:sentry/sentry.dart` with conditional import - `SentryBrowserClient` for web from `package:sentry/browser_client.dart` - `SentryIOClient` for VM and Flutter from `package:sentry/io_client.dart` diff --git a/example/README.md b/example/README.md new file mode 100644 index 0000000000..4951541bfa --- /dev/null +++ b/example/README.md @@ -0,0 +1,12 @@ +# `package:sentry` example + +The example in this directory throws an error and sends it to Sentry.io. Use it +as a source of example code, or to smoke-test your Sentry.io configuration. + +To use the example, create a Sentry.io account and get a DSN for your project. +Then run the following command, replacing "{DSN}" with the one you got from +Sentry.io: + +``` +dart example/main.dart {DSN} +``` diff --git a/bin/test.dart b/example/main.dart similarity index 100% rename from bin/test.dart rename to example/main.dart diff --git a/lib/src/version.dart b/lib/src/version.dart index 3109a67e7e..723d2f223b 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'; +const String sdkVersion = '3.0.0+1'; /// The SDK name reported to Sentry.io in the submitted events. const String sdkName = 'dart'; diff --git a/pubspec.yaml b/pubspec.yaml index 443d0de748..878683a62f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,8 @@ name: sentry -version: 3.0.0 -description: A pure Dart Sentry.io client. -author: Flutter Authors +version: 3.0.0+1 +description: > + A crash reporting library for for Dart that sends crash reports to Sentry.io. + This library supports Dart VM, and Flutter for mobile, web, and desktop. homepage: https://github.com/flutter/sentry environment: