From 45835c9328fec211b5758c6e0a47c145989f4a1c Mon Sep 17 00:00:00 2001 From: Anna Date: Mon, 7 Jun 2021 18:15:27 -0400 Subject: [PATCH] chore: bump version to 1.1.2 --- XIVChat Desktop Installer/Product.wxs | 3 +- .../XIVChat Desktop Installer.wixproj | 126 +++++++++--------- XIVChat Desktop/App.xaml.cs | 12 +- XIVChat Desktop/Notifications.cs | 21 --- XIVChat Desktop/XIVChat Desktop.csproj | 7 +- XIVChatCommon/XIVChatCommon.csproj | 6 +- 6 files changed, 79 insertions(+), 96 deletions(-) delete mode 100644 XIVChat Desktop/Notifications.cs diff --git a/XIVChat Desktop Installer/Product.wxs b/XIVChat Desktop Installer/Product.wxs index 6ac6a13..7a52984 100644 --- a/XIVChat Desktop Installer/Product.wxs +++ b/XIVChat Desktop Installer/Product.wxs @@ -1,6 +1,6 @@ - @@ -33,6 +33,7 @@ + diff --git a/XIVChat Desktop Installer/XIVChat Desktop Installer.wixproj b/XIVChat Desktop Installer/XIVChat Desktop Installer.wixproj index 438ae81..6789d55 100644 --- a/XIVChat Desktop Installer/XIVChat Desktop Installer.wixproj +++ b/XIVChat Desktop Installer/XIVChat Desktop Installer.wixproj @@ -1,68 +1,68 @@ - - Debug - x64 - 3.10 - 6017abe2-e82f-476d-b3da-18b634e092f2 - 2.0 - XIVChat Desktop Installer - Package - - - bin\$(Configuration)\ - obj\$(Configuration)\ - Debug - - - bin\$(Configuration)\ - obj\$(Configuration)\ - - - - - - - - $(WixExtDir)\WixBalExtension.dll - WixBalExtension - - - $(WixExtDir)\WixUIExtension.dll - WixUIExtension - - - - - - - - - - - - - bin\x64\Debug\ - x64 - - - bin\x64\Release\ - x64 - - - - ..\XIVChat Desktop\bin\$(Configuration)\netcoreapp3.1\publish - BasePath=..\XIVChat Desktop\bin\$(Configuration)\netcoreapp3.1\publish + Debug + x64 + 3.10 + 6017abe2-e82f-476d-b3da-18b634e092f2 + 2.0 + XIVChat Desktop Installer + Package - - - + + bin\$(Configuration)\ + obj\$(Configuration)\ + Debug + + + bin\$(Configuration)\ + obj\$(Configuration)\ + + + + + + + + $(WixExtDir)\WixBalExtension.dll + WixBalExtension + + + $(WixExtDir)\WixUIExtension.dll + WixUIExtension + + + + + + + + + + + + + bin\x64\Debug\ + x64 + + + bin\x64\Release\ + x64 + + + + + ..\XIVChat Desktop\bin\$(Configuration)\net5.0-windows10.0.18362.0\publish + BasePath=..\XIVChat Desktop\bin\$(Configuration)\net5.0-windows10.0.18362.0\publish + + + + diff --git a/XIVChat Desktop/App.xaml.cs b/XIVChat Desktop/App.xaml.cs index 80d40e3..9b1faa5 100644 --- a/XIVChat Desktop/App.xaml.cs +++ b/XIVChat Desktop/App.xaml.cs @@ -7,6 +7,7 @@ using System.Windows; using System.Windows.Markup; using System.Windows.Media.Imaging; using System.Windows.Threading; +using Windows.Data.Xml.Dom; using Windows.UI.Notifications; using Hardcodet.Wpf.TaskbarNotification; using Microsoft.Toolkit.Uwp.Notifications; @@ -49,8 +50,6 @@ namespace XIVChat_Desktop { } private async void Application_Startup(object sender, StartupEventArgs e) { - Notifications.Initialise(); - try { this.Config = Configuration.Load() ?? new Configuration(); } catch (Exception ex) { @@ -87,7 +86,8 @@ namespace XIVChat_Desktop { LocaliseAllElements(); // I guess this gets initialised where you call it the first time, so initialise it on the UI thread - this.Dispatcher.Invoke(() => { }); + this.Dispatcher.Invoke(() => { + }); #if RELEASE if (string.IsNullOrWhiteSpace(this.Config.LicenceKey) || !(await LicenceWindow.LicenceInfo(this.Config.LicenceKey)).Valid()) { @@ -172,9 +172,11 @@ namespace XIVChat_Desktop { var content = builder.GetToastContent(); - var toast = new ToastNotification(content.GetXml()); + var document = new XmlDocument(); + document.LoadXml(content.GetContent()); + var toast = new ToastNotification(document); - DesktopNotificationManagerCompat.CreateToastNotifier().Show(toast); + ToastNotificationManagerCompat.CreateToastNotifier().Show(toast); } private void Notify(string title, string text) { diff --git a/XIVChat Desktop/Notifications.cs b/XIVChat Desktop/Notifications.cs deleted file mode 100644 index 3d90e00..0000000 --- a/XIVChat Desktop/Notifications.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System.Runtime.InteropServices; -using Microsoft.Toolkit.Uwp.Notifications; - -namespace XIVChat_Desktop { - public static class Notifications { - public static void Initialise() { - DesktopNotificationManagerCompat.RegisterAumidAndComServer("XIVChat.XIVChat_Desktop"); - DesktopNotificationManagerCompat.RegisterActivator(); - } - } - - - [ClassInterface(ClassInterfaceType.None)] - [ComSourceInterfaces(typeof(INotificationActivationCallback))] - [Guid("F12BCC85-6FEE-4A9A-BBB8-08DFAA7BE1A8"), ComVisible(true)] - public class XivChatNotificationActivator : NotificationActivator { - public override void OnActivated(string invokedArgs, NotificationUserInput userInput, string appUserModelId) { - // TODO: Handle activation - } - } -} diff --git a/XIVChat Desktop/XIVChat Desktop.csproj b/XIVChat Desktop/XIVChat Desktop.csproj index 8fe2cf9..9d83362 100644 --- a/XIVChat Desktop/XIVChat Desktop.csproj +++ b/XIVChat Desktop/XIVChat Desktop.csproj @@ -1,14 +1,15 @@ - + WinExe - netcoreapp3.1 + net5.0-windows10.0.18362.0 + Windows XIVChat_Desktop true XIVChat Desktop enable XIVChat - 1.1.1 + 1.1.2 Resources\logo.ico app.manifest latest diff --git a/XIVChatCommon/XIVChatCommon.csproj b/XIVChatCommon/XIVChatCommon.csproj index 83600eb..5bd4a62 100644 --- a/XIVChatCommon/XIVChatCommon.csproj +++ b/XIVChatCommon/XIVChatCommon.csproj @@ -5,12 +5,12 @@ enable 1.0.0 1.0.0 - net48;netcoreapp3.1 + net48;net5.0 - - + +