From 5941c09e963af1785d3f69fbd67802ae3b7be810 Mon Sep 17 00:00:00 2001 From: Michael Bui <25263378+MaikuB@users.noreply.github.com> Date: Tue, 23 Jul 2024 21:45:47 +1000 Subject: [PATCH] updated plugin to no longer register Linux implementation (#2379) --- flutter_local_notifications/CHANGELOG.md | 1 + .../lib/src/flutter_local_notifications_plugin.dart | 3 --- flutter_local_notifications/pubspec.yaml | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/flutter_local_notifications/CHANGELOG.md b/flutter_local_notifications/CHANGELOG.md index 02c08011b..ddb902ea1 100644 --- a/flutter_local_notifications/CHANGELOG.md +++ b/flutter_local_notifications/CHANGELOG.md @@ -2,6 +2,7 @@ * **Breaking change** Bumped minimum Flutter SDK requirement to 3.13 * [Android] **Breaking change** removed the deprecated `androidAllowWhileIdle` parameter from `zonedSchedule()` and `periodicallyShow()` methods. `androidScheduleMode` is now a required parameter +* Bumped dependency on `flutter_local_notifications_linux` to 4.0.1. Updated app-facing packaging to no longer create and register the Linux implementation as this will now be handled by the `flutter_local_notifications_linux` package itself ## [17.2.1+2] diff --git a/flutter_local_notifications/lib/src/flutter_local_notifications_plugin.dart b/flutter_local_notifications/lib/src/flutter_local_notifications_plugin.dart index ae3b0eb4c..5d770d0ce 100644 --- a/flutter_local_notifications/lib/src/flutter_local_notifications_plugin.dart +++ b/flutter_local_notifications/lib/src/flutter_local_notifications_plugin.dart @@ -38,9 +38,6 @@ class FlutterLocalNotificationsPlugin { } else if (defaultTargetPlatform == TargetPlatform.macOS) { FlutterLocalNotificationsPlatform.instance = MacOSFlutterLocalNotificationsPlugin(); - } else if (defaultTargetPlatform == TargetPlatform.linux) { - FlutterLocalNotificationsPlatform.instance = - LinuxFlutterLocalNotificationsPlugin(); } } diff --git a/flutter_local_notifications/pubspec.yaml b/flutter_local_notifications/pubspec.yaml index 83521e7bc..c8759797d 100644 --- a/flutter_local_notifications/pubspec.yaml +++ b/flutter_local_notifications/pubspec.yaml @@ -2,7 +2,7 @@ name: flutter_local_notifications description: A cross platform plugin for displaying and scheduling local notifications for Flutter applications with the ability to customise for each platform. -version: 17.2.1+2 +version: 17.2.2 homepage: https://github.com/MaikuB/flutter_local_notifications/tree/master/flutter_local_notifications issue_tracker: https://github.com/MaikuB/flutter_local_notifications/issues @@ -10,7 +10,7 @@ dependencies: clock: ^1.1.0 flutter: sdk: flutter - flutter_local_notifications_linux: ^4.0.0 + flutter_local_notifications_linux: ^4.0.1 flutter_local_notifications_platform_interface: ^7.2.0 timezone: ^0.9.0