commit
40dcfd153b
|
@ -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()
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>();
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue