Flutter3, local_desktop_notifications on linux again #484

Merged
sarah merged 8 commits from flutter3_notify into trunk 2022-06-21 21:08:47 +00:00
Owner
No description provided.
dan added 2 commits 2022-06-20 23:02:23 +00:00
dan force-pushed flutter3_notify from a0f5473c57 to c66e3583ab 2022-06-20 23:04:23 +00:00 Compare
sarah reviewed 2022-06-20 23:05:18 +00:00
@ -176,6 +176,7 @@ class CwtchNotifier {
seenMessageCallback!(data["ProfileOnion"]!, identifier, DateTime.now().toUtc());
}
print("New Message from peer...");
Owner

delete

delete
dan marked this conversation as resolved
@ -129,0 +132,4 @@
// Cwtch can install in non flutter supported ways on linux, this code detects where the assets are on Linux
Future<String> detectLinuxAssetsPath() async {
Owner

delete or ?

delete or ?
Author
Owner

now its being used! it was holding till it could be used

now its being used! it was holding till it could be used
dan marked this conversation as resolved
@ -129,0 +134,4 @@
// Cwtch can install in non flutter supported ways on linux, this code detects where the assets are on Linux
Future<String> detectLinuxAssetsPath() async {
//var devStat = FileStat.stat("assets");
//var localStat = FileStat.stat("data/flutter_assets");
Owner

delete or ?

delete or ?
dan marked this conversation as resolved
@ -129,0 +138,4 @@
var homeStat = FileStat.stat((Platform.environment["HOME"] ?? "") + "/.local/share/cwtch/data/flutter_assets");
var rootStat = FileStat.stat("/usr/share/cwtch/data/flutter_assets");
/*if ((await devStat).type == FileSystemEntityType.directory) {
Owner

delete or ?

delete or ?
Author
Owner

was stubbed out to test, reenabled

was stubbed out to test, reenabled
dan marked this conversation as resolved
@ -148,3 +191,4 @@
}
Future<void> notify(String message, String profile, int conversationId) async {
print("notify if !globalAppState.focus so do? ${!globalAppState.focus}");
Owner

delete or EnvDebug

delete or EnvDebug
dan marked this conversation as resolved
@ -151,1 +194,4 @@
print("notify if !globalAppState.focus so do? ${!globalAppState.focus}");
if (!globalAppState.focus) {
print("do notify!");
Owner

delete

delete
dan marked this conversation as resolved
@ -154,1 +201,4 @@
NotificationDetails(linux: LinuxNotificationDetails(suppressSound: true, category: LinuxNotificationCategory.imReceived(), icon: FilePathLinuxIcon(path.join(linuxAssetsPath, 'assets/knott.png')))),
payload: jsonEncode(NotificationPayload(profile, conversationId)));
print("done notify");
Owner

delete

delete
dan marked this conversation as resolved
@ -3,10 +3,14 @@
#
list(APPEND FLUTTER_PLUGIN_LIST
screen_retriever
Owner

what is this about?

what is this about?
Author
Owner

generated file, don't know

generated file, don't know
dan marked this conversation as resolved
dan added 1 commit 2022-06-20 23:10:51 +00:00
continuous-integration/drone/pr Build was killed Details
dabca870fb
remove notification debugging and linux notifier
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/792
dan force-pushed flutter3_notify from 5fa6502460 to 85d21299ff 2022-06-20 23:57:32 +00:00 Compare
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/793
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/795
dan force-pushed flutter3_notify from 2452f304ce to d9acca7b1b 2022-06-21 20:06:45 +00:00 Compare
dan changed title from WIP: Flutter3, local_desktop_notifications on linux again to Flutter3, local_desktop_notifications on linux again 2022-06-21 20:15:28 +00:00
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/796
sarah approved these changes 2022-06-21 20:22:43 +00:00
dan added 1 commit 2022-06-21 20:58:17 +00:00
continuous-integration/drone/pr Build is passing Details
c7e6cfcbc1
macos podfile lock update for flutter 3
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/797
sarah merged commit c01860f1de into trunk 2022-06-21 21:08:47 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/cwtch-ui#484
No description provided.