Skip to content
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

chore: Merge develop into master #210

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## 3.2.1

- fix: #29 Package version in client payload (#203) (2024-10-23)
- chore(deps): bump build_runner from 2.4.12 to 2.4.13 (#201) (2024-10-02)
- chore(deps): bump uuid from 4.5.0 to 4.5.1 (#202) (2024-10-02)
- chore(deps): bump connectivity_plus from 6.0.5 to 6.1.0 (#205) (2024-11-02)
- chore(deps): bump network_info_plus from 6.0.1 to 6.1.0 (#207) (2024-11-02)
- chore(deps): bump path_provider from 2.1.4 to 2.1.5 (#206) (2024-11-02)
- chore(deps): bump package_info_plus from 8.0.2 to 8.1.0 (#208) (2024-11-02)
- chore(deps): bump device_info_plus from 10.1.2 to 11.1.0 (#209) (2024-11-02)

## 3.2.0

- feat: #30 add innerError to sendCustom method (#195)
Expand Down
2 changes: 2 additions & 0 deletions lib/src/messages/raygun_client_message.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:raygun4flutter/src/services/settings.dart';

part 'raygun_client_message.g.dart';

@JsonSerializable()
class RaygunClientMessage {
String? clientUrl = 'https://github.com/MindscapeHQ/raygun4flutter';
String? name = 'Raygun4Flutter';
String version = Settings.kVersion;

RaygunClientMessage();

Expand Down
4 changes: 3 additions & 1 deletion lib/src/messages/raygun_client_message.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions lib/src/services/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import 'package:shared_preferences/shared_preferences.dart';
import 'package:uuid/uuid.dart';

class Settings {
/// The current version of the Raygun4Flutter package.
static const kVersion = '3.2.1';

static const kDefaultCrashReportingEndpoint =
'https://api.raygun.com/entries';

Expand Down
30 changes: 15 additions & 15 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ packages:
dependency: "direct dev"
description:
name: build_runner
sha256: dd09dd4e2b078992f42aac7f1a622f01882a8492fef08486b27ddde929c19f04
sha256: "028819cfb90051c6b5440c7e574d1896f8037e3c96cf17aaeb054c9311cfbf4d"
url: "https://pub.dev"
source: hosted
version: "2.4.12"
version: "2.4.13"
build_runner_core:
dependency: transitive
description:
Expand Down Expand Up @@ -149,10 +149,10 @@ packages:
dependency: "direct main"
description:
name: connectivity_plus
sha256: "2056db5241f96cdc0126bd94459fc4cdc13876753768fc7a31c425e50a7177d0"
sha256: "876849631b0c7dc20f8b471a2a03142841b482438e3b707955464f5ffca3e4c3"
url: "https://pub.dev"
source: hosted
version: "6.0.5"
version: "6.1.0"
connectivity_plus_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -197,10 +197,10 @@ packages:
dependency: "direct main"
description:
name: device_info_plus
sha256: a7fd703482b391a87d60b6061d04dfdeab07826b96f9abd8f5ed98068acc0074
sha256: c4af09051b4f0508f6c1dc0a5c085bf014d5c9a4a0678ce1799c2b4d716387a0
url: "https://pub.dev"
source: hosted
version: "10.1.2"
version: "11.1.0"
device_info_plus_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -420,10 +420,10 @@ packages:
dependency: "direct main"
description:
name: network_info_plus
sha256: "6a31fa47c1f6e240f1b60de0a57d65a092ac1af7515247660f03643576984eb8"
sha256: "89bad7bf9614e78716f0f86c905fe2a850dbdcc00c377968d5260c49c2c6f2eb"
url: "https://pub.dev"
source: hosted
version: "6.0.1"
version: "6.1.0"
network_info_plus_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -452,10 +452,10 @@ packages:
dependency: "direct main"
description:
name: package_info_plus
sha256: a75164ade98cb7d24cfd0a13c6408927c6b217fa60dee5a7ff5c116a58f28918
sha256: df3eb3e0aed5c1107bb0fdb80a8e82e778114958b1c5ac5644fb1ac9cae8a998
url: "https://pub.dev"
source: hosted
version: "8.0.2"
version: "8.1.0"
package_info_plus_platform_interface:
dependency: transitive
description:
Expand All @@ -476,10 +476,10 @@ packages:
dependency: "direct main"
description:
name: path_provider
sha256: fec0d61223fba3154d87759e3cc27fe2c8dc498f6386c6d6fc80d1afdd1bf378
sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd"
url: "https://pub.dev"
source: hosted
version: "2.1.4"
version: "2.1.5"
path_provider_android:
dependency: transitive
description:
Expand Down Expand Up @@ -745,10 +745,10 @@ packages:
dependency: "direct main"
description:
name: uuid
sha256: f33d6bb662f0e4f79dcd7ada2e6170f3b3a2530c28fc41f49a411ddedd576a77
sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff
url: "https://pub.dev"
source: hosted
version: "4.5.0"
version: "4.5.1"
vector_math:
dependency: transitive
description:
Expand Down Expand Up @@ -838,5 +838,5 @@ packages:
source: hosted
version: "3.1.2"
sdks:
dart: ">=3.5.0-259.0.dev <4.0.0"
dart: ">=3.5.0 <4.0.0"
flutter: ">=3.22.0"
5 changes: 3 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: raygun4flutter
description: Raygun4flutter package is the official Raygun crash reporting provider for Flutter.
version: 3.2.0
# Also update lib/src/services/settings.dart kVersion
version: 3.2.1
homepage: https://raygun.com
repository: https://github.com/MindscapeHQ/Raygun4Flutter

Expand All @@ -10,7 +11,7 @@ environment:

dependencies:
connectivity_plus: ^6.0.1
device_info_plus: ^10.0.1
device_info_plus: ">=10.0.1 <12.0.0"
flutter:
sdk: flutter

Expand Down
13 changes: 13 additions & 0 deletions test/raygun4flutter_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,19 @@ void main() {
expect(capturedBody['details']['userCustomData'], {});
});

test('should fill client data', () async {
await Raygun.sendException(error: Exception('MESSAGE'));
// Client URL and name never change
expect(
capturedBody['details']['client']['clientUrl'],
'https://github.com/MindscapeHQ/raygun4flutter',
);
expect(capturedBody['details']['client']['name'], 'Raygun4Flutter');

// Version changes on each release
expect(capturedBody['details']['client']['version'], isNotEmpty);
});

test('sendException with tags', () async {
await Raygun.sendException(
error: Exception('MESSAGE'),
Expand Down