mirror of
https://github.com/bitwarden/mobile
synced 2026-01-18 16:33:15 +00:00
[EC-528] Refactor Custom Fields into separate components (#1662)
* Refactored CustomFields to stop using RepeaterView and use BindableLayout and divided the different types on different files and added a factory to create them * Fix formatting
This commit is contained in:
committed by
GitHub
parent
2016eadb0d
commit
b7048de2a1
23
src/App/Utilities/AppSetup.cs
Normal file
23
src/App/Utilities/AppSetup.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Bit.App.Lists.ItemViewModels.CustomFields;
|
||||
using Bit.Core.Abstractions;
|
||||
using Bit.Core.Utilities;
|
||||
|
||||
namespace Bit.App.Utilities
|
||||
{
|
||||
public interface IAppSetup
|
||||
{
|
||||
void InitializeServicesLastChance();
|
||||
}
|
||||
|
||||
public class AppSetup : IAppSetup
|
||||
{
|
||||
public void InitializeServicesLastChance()
|
||||
{
|
||||
var i18nService = ServiceContainer.Resolve<II18nService>("i18nService");
|
||||
var eventService = ServiceContainer.Resolve<IEventService>("eventService");
|
||||
|
||||
// TODO: This could be further improved by Lazy Registration since it may not be needed at all
|
||||
ServiceContainer.Register<ICustomFieldItemFactory>("customFieldItemFactory", new CustomFieldItemFactory(i18nService, eventService));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user