Skip to content

Commit

Permalink
feat(linux): migrate to xdg-desktop-portal for notifications
Browse files Browse the repository at this point in the history
The xdg-desktop-portal is the new standard for desktop notifications
and is supported by GNOME, KDE, and other desktop environments. It
also works with Flatpak and Snap applications.

Resolves MaikuB#1757
  • Loading branch information
Merrit committed Sep 29, 2023
1 parent 264110c commit 6febbfe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flutter_local_notifications/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ dependencies:
flutter_local_notifications_platform_interface: ^7.0.0
timezone: ^0.9.0

dependency_overrides:
flutter_local_notifications_linux:
path: ../flutter_local_notifications_linux

dev_dependencies:
flutter_driver:
sdk: flutter
Expand Down
7 changes: 7 additions & 0 deletions flutter_local_notifications_linux/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ dependencies:
ref: 8d18d560ba3388627c998011a0803defc0e84c30
xdg_directories: ">=0.2.0+1 <2.0.0"

dependency_overrides:
# Temporarily use a fork of xdg_desktop_portal to support the ActionInvoked signal
xdg_desktop_portal:
git:
url: https://github.com/Merrit/xdg_desktop_portal.dart.git
ref: 8d18d560ba3388627c998011a0803defc0e84c30

dev_dependencies:
build_runner: ^2.3.3
flutter_test:
Expand Down

0 comments on commit 6febbfe

Please sign in to comment.