From 6febbfe84d93f8969261a2ef8cd95fa46851dd82 Mon Sep 17 00:00:00 2001 From: Kristen McWilliam <9575627+Merrit@users.noreply.github.com> Date: Tue, 9 May 2023 15:20:56 -0400 Subject: [PATCH] feat(linux): migrate to xdg-desktop-portal for notifications 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 #1757 --- flutter_local_notifications/pubspec.yaml | 4 ++++ flutter_local_notifications_linux/pubspec.yaml | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/flutter_local_notifications/pubspec.yaml b/flutter_local_notifications/pubspec.yaml index 546bb9463..871047d3c 100644 --- a/flutter_local_notifications/pubspec.yaml +++ b/flutter_local_notifications/pubspec.yaml @@ -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 diff --git a/flutter_local_notifications_linux/pubspec.yaml b/flutter_local_notifications_linux/pubspec.yaml index 365638711..0aff80a09 100644 --- a/flutter_local_notifications_linux/pubspec.yaml +++ b/flutter_local_notifications_linux/pubspec.yaml @@ -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: