From 8983f2efcc775b1bba89d4af68d69290108df0b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Barrera?= Date: Tue, 12 Apr 2022 11:57:55 +0200 Subject: [PATCH 1/2] migrate mobile code to p14 --- src/Mobile/MauiProgram.cs | 4 +--- src/Mobile/Pages/DiscoverPage.xaml | 2 +- src/Mobile/Services/ServicesExtensions.cs | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Mobile/MauiProgram.cs b/src/Mobile/MauiProgram.cs index 5e70769..b66d3b8 100644 --- a/src/Mobile/MauiProgram.cs +++ b/src/Mobile/MauiProgram.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Components.WebView.Maui; -using MonkeyCache.FileStore; +using MonkeyCache.FileStore; namespace Microsoft.NetConf2021.Maui; @@ -9,7 +8,6 @@ public static class MauiProgram { var builder = MauiApp.CreateBuilder(); builder - .RegisterBlazorMauiWebView() .UseMauiApp() .ConfigureEssentials() .ConfigureServices() diff --git a/src/Mobile/Pages/DiscoverPage.xaml b/src/Mobile/Pages/DiscoverPage.xaml index aad0eb1..5864ef7 100644 --- a/src/Mobile/Pages/DiscoverPage.xaml +++ b/src/Mobile/Pages/DiscoverPage.xaml @@ -30,7 +30,7 @@ IsGrouped="True"> diff --git a/src/Mobile/Services/ServicesExtensions.cs b/src/Mobile/Services/ServicesExtensions.cs index 07ef47e..b9d12c6 100644 --- a/src/Mobile/Services/ServicesExtensions.cs +++ b/src/Mobile/Services/ServicesExtensions.cs @@ -6,7 +6,7 @@ public static class ServicesExtensions { public static MauiAppBuilder ConfigureServices(this MauiAppBuilder builder) { - builder.Services.AddBlazorWebView(); + builder.Services.AddMauiBlazorWebView(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); From b41761d640a45f1a5398c90d4de6c841479b26d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Barrera?= Date: Tue, 12 Apr 2022 11:59:59 +0200 Subject: [PATCH 2/2] migrate mobile blazor code to p14 --- src/MobileBlazor/mauiapp/MauiProgram.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/MobileBlazor/mauiapp/MauiProgram.cs b/src/MobileBlazor/mauiapp/MauiProgram.cs index 46a10dc..5bf77f8 100644 --- a/src/MobileBlazor/mauiapp/MauiProgram.cs +++ b/src/MobileBlazor/mauiapp/MauiProgram.cs @@ -18,10 +18,9 @@ public static class MauiProgram { var builder = MauiApp.CreateBuilder(); builder - .RegisterBlazorMauiWebView() .UseMauiApp(); - builder.Services.AddBlazorWebView(); + builder.Services.AddMauiBlazorWebView(); builder.Services.AddHttpClient(client => { client.BaseAddress = new Uri(APIUrl);