Skip to content

Commit

Permalink
chore: upgrade dependencies (#124)
Browse files Browse the repository at this point in the history
* chore: upgrade dependencies

* fix: analyze issues on example

* fix: deprecated methods

* fix: CI format command

* fix: deprecated methods
  • Loading branch information
miquelbeltran committed May 7, 2024
1 parent 833d5c6 commit 3160114
Show file tree
Hide file tree
Showing 15 changed files with 335 additions and 240 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
channel: stable
- run: flutter pub get
- run: flutter format -n --set-exit-if-changed .
- run: dart format --set-exit-if-changed .
- run: flutter analyze
- run: flutter test

6 changes: 3 additions & 3 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key key}) : super(key: key);
const MyApp({super.key});

@override
_MyAppState createState() => _MyAppState();
Expand All @@ -56,7 +56,7 @@ class _MyAppState extends State<MyApp> {
// example: custom onBeforeSend to process payload
Raygun.onBeforeSend = (payload) {
// example: print error message before sending
final message = payload.details.error.message;
final message = payload.details.error?.message;
debugPrint('Sending: $message');

// example: remove breadcrumbs with confidential data
Expand All @@ -65,7 +65,7 @@ class _MyAppState extends State<MyApp> {
);

// example: cancel sending if condition is met
if (message.contains('some-pattern')) {
if (message?.contains('some-pattern') ?? false) {
return null;
}

Expand Down
8 changes: 4 additions & 4 deletions example/macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import FlutterMacOS
import Foundation

import connectivity_plus_macos
import connectivity_plus
import device_info_plus
import network_info_plus_macos
import network_info_plus
import package_info_plus
import path_provider_macos
import shared_preferences_macos
import path_provider_foundation
import shared_preferences_foundation

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
ConnectivityPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlugin"))
Expand Down
Loading

0 comments on commit 3160114

Please sign in to comment.