Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# CHANGELOG

## 3.5.0

- chore: bump minimum Dart SDK to 3.9.0 (required by json_annotation 4.10.0)
- chore(deps): bump json_serializable from 6.11.3 to 6.12.0
- chore(deps): bump json_annotation from 4.9.0 to 4.10.0
- chore(deps): bump build_runner from 2.10.4 to 2.10.5

## 3.4.0

- chore(deps): update multiple dependencies (#283) (2026-01-06)
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ packages:
path: ".."
relative: true
source: path
version: "3.4.0"
version: "3.5.0"
shared_preferences:
dependency: transitive
description:
Expand Down
9 changes: 2 additions & 7 deletions lib/raygun4flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ class Raygun {
///
/// [version] is optional, if not provided it will be obtained from your
/// pubspec.yaml.
static Future<void> init({
required String apiKey,
String? version,
}) async {
static Future<void> init({required String apiKey, String? version}) async {
Settings.apiKey = apiKey;
setVersion(version);
// Send stored crash reports
Expand All @@ -50,9 +47,7 @@ class Raygun {
///
/// [version] The version of your application, format x.x.x.x, where x is a
/// positive integer.
static Future<void> setVersion(
String? version,
) async {
static Future<void> setVersion(String? version) async {
if (version != null) {
Settings.version = version;
} else {
Expand Down
24 changes: 4 additions & 20 deletions lib/src/logging/raygun_logger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,45 +14,29 @@ class RaygunLogger {

static void d(String message) {
if (kDebugMode) {
developer.log(
'[RAYGUN][D] $message',
level: 500,
name: 'raygun4flutter',
);
developer.log('[RAYGUN][D] $message', level: 500, name: 'raygun4flutter');
}
if (testMode) {
print(message);
}
}

static void i(String message) {
developer.log(
'[RAYGUN][I] $message',
level: 800,
name: 'raygun4flutter',
);
developer.log('[RAYGUN][I] $message', level: 800, name: 'raygun4flutter');
if (testMode) {
print(message);
}
}

static void w(String message) {
developer.log(
'[RAYGUN][W] $message',
level: 900,
name: 'raygun4flutter',
);
developer.log('[RAYGUN][W] $message', level: 900, name: 'raygun4flutter');
if (testMode) {
print(message);
}
}

static void e(String message) {
developer.log(
'[RAYGUN][E] $message',
level: 1000,
name: 'raygun4flutter',
);
developer.log('[RAYGUN][E] $message', level: 1000, name: 'raygun4flutter');
if (testMode) {
print(message);
}
Expand Down
10 changes: 3 additions & 7 deletions lib/src/messages/network_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ class NetworkInfo {
}
final info = plus.NetworkInfo();
final ip4 = await info.getWifiIP();
return [
if (ip4 != null) ip4,
];
return [if (ip4 != null) ip4];
}

static Future<String> getConnectivityState() async {
Expand All @@ -39,9 +37,7 @@ class NetworkInfo {

Map<String, dynamic> toJson() => _$NetworkInfoToJson(this);

factory NetworkInfo.fromJson(
Map<String, dynamic> json,
) =>
factory NetworkInfo.fromJson(Map<String, dynamic> json) =>
_$NetworkInfoFromJson(json);
}

Expand All @@ -54,7 +50,7 @@ extension _ConnectivityResult on ConnectivityResult {
ConnectivityResult.none => 'Not Connected',
ConnectivityResult.bluetooth => 'Bluetooth',
ConnectivityResult.vpn => 'VPN',
ConnectivityResult.other => 'Other'
ConnectivityResult.other => 'Other',
};
}
}
5 changes: 3 additions & 2 deletions lib/src/messages/network_info.g.dart

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

4 changes: 1 addition & 3 deletions lib/src/messages/raygun_app_context.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ class RaygunAppContext {

Map<String, dynamic> toJson() => _$RaygunAppContextToJson(this);

factory RaygunAppContext.fromJson(
Map<String, dynamic> json,
) =>
factory RaygunAppContext.fromJson(Map<String, dynamic> json) =>
_$RaygunAppContextFromJson(json);
}
4 changes: 1 addition & 3 deletions lib/src/messages/raygun_app_context.g.dart

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

4 changes: 1 addition & 3 deletions lib/src/messages/raygun_breadcrumb_message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ class RaygunBreadcrumbMessage {

Map<String, dynamic> toJson() => _$RaygunBreadcrumbMessageToJson(this);

factory RaygunBreadcrumbMessage.fromJson(
Map<String, dynamic> json,
) =>
factory RaygunBreadcrumbMessage.fromJson(Map<String, dynamic> json) =>
_$RaygunBreadcrumbMessageFromJson(json);
}

Expand Down
48 changes: 24 additions & 24 deletions lib/src/messages/raygun_breadcrumb_message.g.dart

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

4 changes: 1 addition & 3 deletions lib/src/messages/raygun_client_message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ class RaygunClientMessage {

Map<String, dynamic> toJson() => _$RaygunClientMessageToJson(this);

factory RaygunClientMessage.fromJson(
Map<String, dynamic> json,
) =>
factory RaygunClientMessage.fromJson(Map<String, dynamic> json) =>
_$RaygunClientMessageFromJson(json);
}
12 changes: 6 additions & 6 deletions 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.

4 changes: 1 addition & 3 deletions lib/src/messages/raygun_environment_message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ class RaygunEnvironmentMessage {

Map<String, dynamic> toJson() => _$RaygunEnvironmentMessageToJson(this);

factory RaygunEnvironmentMessage.fromJson(
Map<String, dynamic> json,
) =>
factory RaygunEnvironmentMessage.fromJson(Map<String, dynamic> json) =>
_$RaygunEnvironmentMessageFromJson(json);
}
99 changes: 49 additions & 50 deletions lib/src/messages/raygun_environment_message.g.dart

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

4 changes: 1 addition & 3 deletions lib/src/messages/raygun_error_message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ class RaygunErrorMessage {
);
}

factory RaygunErrorMessage.fromJson(
Map<String, dynamic> json,
) =>
factory RaygunErrorMessage.fromJson(Map<String, dynamic> json) =>
_$RaygunErrorMessageFromJson(json);
}
Loading