Skip to content

Commit

Permalink
improve addons (ueman#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
ueman committed Oct 22, 2021
1 parent 69d06e9 commit 1d8969b
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 15 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ jobs:
- run: flutter pub get
- run: flutter format -n --set-exit-if-changed .
- run: flutter analyze
- run: flutter test --coverage
- uses: codecov/[email protected]
- run: flutter test
3 changes: 1 addition & 2 deletions .github/workflows/sentry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ jobs:
- run: flutter pub get
- run: flutter format -n --set-exit-if-changed .
- run: flutter analyze
- run: flutter test --coverage
- uses: codecov/[email protected]
- run: flutter test
5 changes: 5 additions & 0 deletions feedback_gitlab/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.2.0

* This update is compatible with feedback 2.2.0
* Improve documentation

## 2.0.0+1

* Update Readme
Expand Down
6 changes: 5 additions & 1 deletion feedback_gitlab/lib/src/feedback_gitlab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import 'package:flutter/foundation.dart';
import 'package:http/http.dart' as http;
import 'package:http_parser/http_parser.dart';

extension BetterFeedbackX on FeedbackData {
/// This is an extension to make it easier to call
/// [showAndUploadToGitLab].
extension BetterFeedbackX on FeedbackController {
/// Example usage:
/// ```dart
/// import 'package:feedback_gitlab/feedback_gitlab.dart';
Expand Down Expand Up @@ -40,6 +42,8 @@ extension BetterFeedbackX on FeedbackData {
}
}

/// See [BetterFeedbackX.showAndUploadToGitLab].
/// This is just [visibleForTesting].
@visibleForTesting
OnFeedbackCallback uploadToGitLab({
required String projectId,
Expand Down
6 changes: 3 additions & 3 deletions feedback_gitlab/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: feedback_gitlab
description: A simple way to create a GitLab issues from user feedback
version: 2.0.0+1
description: A Flutter package for getting better feedback. It allows the user to give interactive feedback directly in the app and upload it as an issue to GitLab
version: 2.2.0
homepage: https://uekoetter.dev
repository: https://github.com/ueman/feedback
issue_tracker: https://github.com/ueman/feedback/issues
Expand All @@ -12,7 +12,7 @@ environment:
dependencies:
flutter:
sdk: flutter
feedback: ^2.0.0
feedback: ^2.2.0
http: ^0.13.0
http_parser: ^4.0.0

Expand Down
5 changes: 5 additions & 0 deletions feedback_sentry/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.2.0

* This update make it compatible with feedback 2.2.0
* Improve documentation

## 2.0.0

* Initial version
21 changes: 18 additions & 3 deletions feedback_sentry/lib/feedback_sentry.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,27 @@ import 'package:flutter/foundation.dart';
import 'package:sentry/sentry.dart';
export 'package:feedback/feedback.dart';

extension SentryFeedback on FeedbackData {
void showAndUploadToSentry({Hub? hub}) {
this.show(sendToSentry(hub: hub));
/// Extension on [FeedbackController] in order to make
/// it easier to call [showAndUploadToSentry].
extension SentryFeedback on FeedbackController {
/// This method opens the feedback ui and the users feedback
/// is uploaded to Sentry after the user submitted his feedback.
/// [name] and [email] are optional. They are shown in the Sentry.io ui.s
void showAndUploadToSentry({
Hub? hub,
String? name,
String? email,
}) {
this.show(sendToSentry(
hub: hub,
name: name,
email: email,
));
}
}

/// See [SentryFeedback.showAndUploadToSentry].
/// This is just [visibleForTesting].
@visibleForTesting
OnFeedbackCallback sendToSentry({
Hub? hub,
Expand Down
10 changes: 6 additions & 4 deletions feedback_sentry/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: feedback_sentry
description: A simple way to to send user feedback with images to Sentry.io
version: 2.0.0
homepage: https://uekoetter.dev/
description: A Flutter package for getting better feedback. It allows the user to give interactive feedback directly in the app and upload it to Sentry.io
version: 2.2.0
homepage: https://uekoetter.dev
repository: https://github.com/ueman/feedback
issue_tracker: https://github.com/ueman/feedback/issues

environment:
sdk: ">=2.12.0 <3.0.0"
Expand All @@ -10,7 +12,7 @@ environment:
dependencies:
flutter:
sdk: flutter
feedback: ^2.0.0
feedback: ^2.2.0
sentry: ^6.0.0

dev_dependencies:
Expand Down

0 comments on commit 1d8969b

Please sign in to comment.