1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-13 23:03:23 +00:00

PM-3349 PM-3350 MAUI Migration Initial

This commit is contained in:
Federico Maccaroni
2023-09-29 11:02:19 -03:00
parent bbef0f8c93
commit 8ef9443b1e
717 changed files with 5367 additions and 4702 deletions

47
src/App/MauiProgram.cs Normal file
View File

@@ -0,0 +1,47 @@
namespace Bit.App
{
public class MauiProgram
{
public static MauiApp CreateMauiApp()
{
return Core.MauiProgram.ConfigureMauiAppBuilder(
effects =>
{
#if ANDROID
effects.Add<Effects.FabShadowEffect, Effects.FabShadowPlatformEffect>();
#else
effects.Add<Effects.NoEmojiKeyboardEffect, Bit.iOS.Core.Effects.NoEmojiKeyboardEffect>();
effects.Add<Effects.ScrollEnabledEffect, Effects.ScrollEnabledPlatformEffect>();
effects.Add<Effects.ScrollViewContentInsetAdjustmentBehaviorEffect, Bit.App.Effects.ScrollViewContentInsetAdjustmentBehaviorPlatformEffect>();
#endif
},
handlers =>
{
#if ANDROID
Bit.App.Handlers.EntryHandlerMappings.Setup();
Bit.App.Handlers.EditorHandlerMappings.Setup();
Bit.App.Handlers.LabelHandlerMappings.Setup();
Bit.App.Handlers.PickerHandlerMappings.Setup();
Bit.App.Handlers.SearchBarHandlerMappings.Setup();
Bit.App.Handlers.SwitchHandlerMappings.Setup();
Bit.App.Handlers.DatePickerHandlerMappings.Setup();
Bit.App.Handlers.SliderHandlerMappings.Setup();
Bit.App.Handlers.StepperHandlerMappings.Setup();
Bit.App.Handlers.TimePickerHandlerMappings.Setup();
Bit.App.Handlers.ButtonHandlerMappings.Setup();
#else
iOS.Core.Handlers.ButtonHandlerMappings.Setup();
iOS.Core.Handlers.DatePickerHandlerMappings.Setup();
iOS.Core.Handlers.EditorHandlerMappings.Setup();
iOS.Core.Handlers.EntryHandlerMappings.Setup();
//iOS.Core.Handlers.LabelHandlerMappings.Setup();
iOS.Core.Handlers.PickerHandlerMappings.Setup();
iOS.Core.Handlers.SearchBarHandlerMappings.Setup();
iOS.Core.Handlers.StepperHandlerMappings.Setup();
iOS.Core.Handlers.TimePickerHandlerMappings.Setup();
#endif
}
).Build();
}
}
}