From d98ee62fb5a6658bc04c2b70263926a9873d2f1c Mon Sep 17 00:00:00 2001 From: Kevin Hahn Date: Fri, 10 Jan 2025 16:40:11 +0700 Subject: [PATCH] display notifications for updates --- backend/FwLite/FwLiteMaui/FwLiteMaui.csproj | 3 +- backend/FwLite/FwLiteMaui/FwLiteMauiKernel.cs | 5 + .../Platforms/Windows/AppUpdateService.cs | 111 +++++++++++++++++- .../Platforms/Windows/Package.appxmanifest | 21 +++- .../Platforms/Windows/WindowsKernel.cs | 2 +- 5 files changed, 135 insertions(+), 7 deletions(-) diff --git a/backend/FwLite/FwLiteMaui/FwLiteMaui.csproj b/backend/FwLite/FwLiteMaui/FwLiteMaui.csproj index 37e5addc1..d0a8d4f3e 100644 --- a/backend/FwLite/FwLiteMaui/FwLiteMaui.csproj +++ b/backend/FwLite/FwLiteMaui/FwLiteMaui.csproj @@ -4,7 +4,7 @@ - net9.0-android;net9.0-ios;net9.0-maccatalyst + $(TargetFrameworks);net9.0-windows10.0.19041.0 + + + + + + + + + + + + + diff --git a/backend/FwLite/FwLiteMaui/Platforms/Windows/WindowsKernel.cs b/backend/FwLite/FwLiteMaui/Platforms/Windows/WindowsKernel.cs index ddf92c248..fad2b1099 100644 --- a/backend/FwLite/FwLiteMaui/Platforms/Windows/WindowsKernel.cs +++ b/backend/FwLite/FwLiteMaui/Platforms/Windows/WindowsKernel.cs @@ -9,9 +9,9 @@ public static class WindowsKernel public static void AddFwLiteWindows(this IServiceCollection services, IHostEnvironment environment) { if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) return; + services.AddSingleton(); if (!FwLiteMauiKernel.IsPortableApp) { - services.AddSingleton(); services.AddSingleton(); } services.Configure(config =>