From 15e86c961a34555a0a4ae7e2a4f11947903c5bf9 Mon Sep 17 00:00:00 2001 From: Cristover Wurangian Date: Thu, 21 Mar 2024 11:43:49 +0700 Subject: [PATCH] upd MAUI sample --- .../LocalNotificationsSample2.csproj | 23 +++++++++++++++--- .../LocalNotificationsSample2/MauiProgram.cs | 4 +-- ...enSans-Regular.ttf => OpenSansRegular.ttf} | Bin ...Sans-Semibold.ttf => OpenSansSemibold.ttf} | Bin .../LocalNotifications.csproj | 3 +-- 5 files changed, 23 insertions(+), 7 deletions(-) rename Sample/Maui/LocalNotificationsSample2/Resources/Fonts/{OpenSans-Regular.ttf => OpenSansRegular.ttf} (100%) rename Sample/Maui/LocalNotificationsSample2/Resources/Fonts/{OpenSans-Semibold.ttf => OpenSansSemibold.ttf} (100%) diff --git a/Sample/Maui/LocalNotificationsSample2/LocalNotificationsSample2.csproj b/Sample/Maui/LocalNotificationsSample2/LocalNotificationsSample2.csproj index 9381d54..82fb4f7 100644 --- a/Sample/Maui/LocalNotificationsSample2/LocalNotificationsSample2.csproj +++ b/Sample/Maui/LocalNotificationsSample2/LocalNotificationsSample2.csproj @@ -1,7 +1,7 @@  - net7.0-android;net7.0-ios + net8.0-android;net8.0-ios Exe LocalNotificationsSample2 true @@ -25,10 +25,11 @@ - + + - + @@ -38,8 +39,24 @@ + + + + + + + + + + + + + + + + diff --git a/Sample/Maui/LocalNotificationsSample2/MauiProgram.cs b/Sample/Maui/LocalNotificationsSample2/MauiProgram.cs index 72990b6..16a14c1 100644 --- a/Sample/Maui/LocalNotificationsSample2/MauiProgram.cs +++ b/Sample/Maui/LocalNotificationsSample2/MauiProgram.cs @@ -13,8 +13,8 @@ public static MauiApp CreateMauiApp() .UseMauiApp() .ConfigureFonts(fonts => { - fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); - fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); + fonts.AddFont("OpenSansRegular.ttf", "OpenSansRegular"); + fonts.AddFont("OpenSansSemibold.ttf", "OpenSansSemibold"); }) .UseLocalNotifications(isFirebase: false, autoRegistration: false); diff --git a/Sample/Maui/LocalNotificationsSample2/Resources/Fonts/OpenSans-Regular.ttf b/Sample/Maui/LocalNotificationsSample2/Resources/Fonts/OpenSansRegular.ttf similarity index 100% rename from Sample/Maui/LocalNotificationsSample2/Resources/Fonts/OpenSans-Regular.ttf rename to Sample/Maui/LocalNotificationsSample2/Resources/Fonts/OpenSansRegular.ttf diff --git a/Sample/Maui/LocalNotificationsSample2/Resources/Fonts/OpenSans-Semibold.ttf b/Sample/Maui/LocalNotificationsSample2/Resources/Fonts/OpenSansSemibold.ttf similarity index 100% rename from Sample/Maui/LocalNotificationsSample2/Resources/Fonts/OpenSans-Semibold.ttf rename to Sample/Maui/LocalNotificationsSample2/Resources/Fonts/OpenSansSemibold.ttf diff --git a/Source/LocalNotifications/LocalNotifications.csproj b/Source/LocalNotifications/LocalNotifications.csproj index 2c28522..4651f64 100644 --- a/Source/LocalNotifications/LocalNotifications.csproj +++ b/Source/LocalNotifications/LocalNotifications.csproj @@ -1,6 +1,6 @@ - netstandard2.0;MonoAndroid13.0;Xamarin.iOS10;net8.0;net8.0-android;net8.0-ios; + netstandard2.0;MonoAndroid13.0;Xamarin.iOS10;net8.0;net8.0-android;net8.0-ios; true true $(AssemblyName) ($(TargetFramework)) @@ -65,7 +65,6 @@ -