Merge pull request #60 from migueBarrera/feature/migrate-p14

Migrate to p14
pull/61/head
James Montemagno 2022-04-12 14:03:10 -07:00 committed by GitHub
commit 40dcfd153b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 7 deletions

View File

@ -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<App>()
.ConfigureEssentials()
.ConfigureServices()

View File

@ -30,7 +30,7 @@
IsGrouped="True">
<CollectionView.ItemsLayout>
<GridItemsLayout Orientation="Vertical"
Span="{OnIdiom Phone=2, Tablet=3, Desktop=3}"
Span="{OnIdiom Phone=2, Tablet=3, Desktop=3, Default=3}"
HorizontalItemSpacing="5"
VerticalItemSpacing="5" />
</CollectionView.ItemsLayout>

View File

@ -6,7 +6,7 @@ public static class ServicesExtensions
{
public static MauiAppBuilder ConfigureServices(this MauiAppBuilder builder)
{
builder.Services.AddBlazorWebView();
builder.Services.AddMauiBlazorWebView();
builder.Services.AddSingleton<SubscriptionsService>();
builder.Services.AddSingleton<ShowsService>();
builder.Services.AddSingleton<ListenLaterService>();

View File

@ -18,10 +18,9 @@ public static class MauiProgram
{
var builder = MauiApp.CreateBuilder();
builder
.RegisterBlazorMauiWebView()
.UseMauiApp<App>();
builder.Services.AddBlazorWebView();
builder.Services.AddMauiBlazorWebView();
builder.Services.AddHttpClient<PodcastService>(client =>
{
client.BaseAddress = new Uri(APIUrl);