Skip to content

Commit 639a109

Browse files
authored
[flutter_local_notification_linux] fixed definition and registration of Linux implementation (#2371)
* fixed Linux pubspec to specify Linux platform implementation details * added missing registerWith method * updated changelog
1 parent a12d777 commit 639a109

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

Diff for: flutter_local_notifications_linux/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [4.0.1]
2+
3+
* Fixed issue [#2368](https://github.com/MaikuB/flutter_local_notifications/issues/2368). This involved updating pubspec so it defines that it implements the Linux implementation of `flutter_local_notifications` and updating the code so it registers the Linux implementation
4+
15
## [4.0.0+1]
26

37
* Bumped maximum Dart SDK constraint

Diff for: flutter_local_notifications_linux/lib/src/flutter_local_notifications.dart

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ class LinuxFlutterLocalNotificationsPlugin
2020
LinuxNotificationManager manager,
2121
) : _manager = manager;
2222

23+
/// Registers the Linux implementation.
24+
static void registerWith() {
25+
FlutterLocalNotificationsPlatform.instance =
26+
LinuxFlutterLocalNotificationsPlugin();
27+
}
28+
2329
final LinuxNotificationManager _manager;
2430

2531
/// Initializes the plugin.

Diff for: flutter_local_notifications_linux/pubspec.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
name: flutter_local_notifications_linux
22
description: Linux implementation of the flutter_local_notifications plugin
3-
version: 4.0.0+1
3+
version: 4.0.1
44
homepage: https://github.com/MaikuB/flutter_local_notifications/tree/master/flutter_local_notifications
55

6+
flutter:
7+
plugin:
8+
implements: flutter_local_notifications
9+
platforms:
10+
linux:
11+
dartPluginClass: LinuxFlutterLocalNotificationsPlugin
12+
13+
614
dependencies:
715
dbus: ^0.7.8
816
ffi: ^2.0.1

0 commit comments

Comments
 (0)