You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.2 KiB
54 lines
1.2 KiB
using CommunityToolkit.Maui;
|
|
using LivreLand.View;
|
|
using LivreLand.ViewModel;
|
|
using Microsoft.Extensions.Logging;
|
|
using Model;
|
|
using Stub;
|
|
using ViewModels;
|
|
|
|
namespace LivreLand;
|
|
|
|
public static class MauiProgram
|
|
{
|
|
public static MauiApp CreateMauiApp()
|
|
{
|
|
var builder = MauiApp.CreateBuilder();
|
|
builder
|
|
.UseMauiApp<App>()
|
|
.UseMauiCommunityToolkit()
|
|
.ConfigureFonts(fonts =>
|
|
{
|
|
fonts.AddFont("SF-Compact-Display-Black.otf", "SFCompactDisplayBlack");
|
|
fonts.AddFont("SF-Compact-Display-Bold.otf", "SFCompactDisplayBold");
|
|
});
|
|
|
|
builder.Services
|
|
.AddSingleton<BibliothequeView>()
|
|
.AddSingleton<TousView>()
|
|
.AddSingleton<FiltrageAuteurView>()
|
|
.AddSingleton<FiltrageDateView>()
|
|
.AddSingleton<FiltrageNoteView>()
|
|
.AddSingleton<ALirePlusTardView>()
|
|
|
|
.AddSingleton<NavigatorVM>()
|
|
|
|
.AddSingleton<ILibraryManager, LibraryStub>()
|
|
.AddSingleton<IUserLibraryManager, UserLibraryStub>()
|
|
.AddSingleton<Manager>()
|
|
|
|
.AddSingleton<ManagerVM>()
|
|
|
|
.AddSingleton<TousVM>()
|
|
.AddSingleton<FiltrageAuteurVM>()
|
|
.AddSingleton<FiltrageDateVM>()
|
|
.AddSingleton<FiltrageNoteVM>()
|
|
.AddSingleton<ALirePlusTardVM>();
|
|
|
|
#if DEBUG
|
|
builder.Logging.AddDebug();
|
|
#endif
|
|
|
|
return builder.Build();
|
|
}
|
|
}
|