using CommunityToolkit.Maui;
using Microsoft.Maui.Controls.Compatibility.Hosting;
using RMLib.Android.Renderers;
using RMLib.Custom;
namespace MinhaQualidade;
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder.UseMauiApp<App>()
.UseMauiCompatibility()
.ConfigureMauiHandlers(handlers =>
{
#if ANDROID
handlers.AddCompatibilityRenderer(typeof(RMSCustomEntry), typeof(RMSCustomEntryRenderer));
#endif
})
.ConfigureEffects(effects =>
{
})
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
fonts.AddFont("NunitoSans-Bold.ttf", "NunitoSansBold");
fonts.AddFont("NunitoSans-ExtraLight.ttf", "NunitoSansExtraLight");
fonts.AddFont("NunitoSans-Regular.ttf", "NunitoSansRegular");
fonts.AddFont("Nunito-SemiBold.ttf", "NunitoSemiBold");
})
.UseMauiCommunityToolkit();
return builder.Build();
}
} |