diff --git a/src/iOS.Autofill/CredentialProviderViewController.cs b/src/iOS.Autofill/CredentialProviderViewController.cs index ccb9df3b3..706156d14 100644 --- a/src/iOS.Autofill/CredentialProviderViewController.cs +++ b/src/iOS.Autofill/CredentialProviderViewController.cs @@ -12,8 +12,7 @@ using Plugin.Connectivity; using Plugin.Fingerprint; using Plugin.Settings.Abstractions; using SimpleInjector; -using System; -using System.Diagnostics; +using System; using UIKit; using XLabs.Ioc; using XLabs.Ioc.SimpleInjectorContainer; @@ -69,7 +68,23 @@ namespace Bit.iOS.Autofill return; } - PerformSegue("loginListSegue", this); + var lockService = Resolver.Resolve(); + var lockType = lockService.GetLockTypeAsync(false).GetAwaiter().GetResult(); + switch (lockType) + { + case App.Enums.LockType.Fingerprint: + PerformSegue("lockFingerprintSegue", this); + break; + case App.Enums.LockType.PIN: + PerformSegue("lockPinSegue", this); + break; + case App.Enums.LockType.Password: + PerformSegue("lockPasswordSegue", this); + break; + default: + PerformSegue("loginListSegue", this); + break; + } } public override void ProvideCredentialWithoutUserInteraction(ASPasswordCredentialIdentity credentialIdentity) @@ -123,16 +138,39 @@ namespace Bit.iOS.Autofill public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender) { var navController = segue.DestinationViewController as UINavigationController; - if(navController != null) + if (navController != null) { var listLoginController = navController.TopViewController as LoginListViewController; + var fingerprintViewController = navController.TopViewController as LockFingerprintViewController; + var pinViewController = navController.TopViewController as LockPinViewController; + var passwordViewController = navController.TopViewController as LockPasswordViewController; - if(listLoginController != null) + if (listLoginController != null) { listLoginController.Context = _context; listLoginController.CPViewController = this; } + else if (fingerprintViewController != null) + { + fingerprintViewController.CPViewController = this; + } + else if (pinViewController != null) + { + pinViewController.CPViewController = this; + } + else if (passwordViewController != null) + { + passwordViewController.CPViewController = this; + } } + } + + public void DismissLockAndContinue() + { + DismissViewController(false, () => + { + PerformSegue("loginListSegue", this); + }); } private void SetIoc() diff --git a/src/iOS.Autofill/LockFingerprintViewController.cs b/src/iOS.Autofill/LockFingerprintViewController.cs index a5a81466a..1adc9a00a 100644 --- a/src/iOS.Autofill/LockFingerprintViewController.cs +++ b/src/iOS.Autofill/LockFingerprintViewController.cs @@ -1,23 +1,23 @@ using System; using UIKit; -namespace Bit.iOS.Extension +namespace Bit.iOS.Autofill { public partial class LockFingerprintViewController : Core.Controllers.LockFingerprintViewController { public LockFingerprintViewController(IntPtr handle) : base(handle) { } - public LoadingViewController LoadingController { get; set; } + public CredentialProviderViewController CPViewController { get; set; } public override UINavigationItem BaseNavItem => NavItem; public override UIBarButtonItem BaseCancelButton => CancelButton; public override UIButton BaseUseButton => UseButton; public override UIButton BaseFingerprintButton => FingerprintButton; - public override Action Success => () => LoadingController.DismissLockAndContinue(); + public override Action Success => () => CPViewController.DismissLockAndContinue(); partial void CancelButton_Activated(UIBarButtonItem sender) { - LoadingController.CompleteRequest(null); + CPViewController.CompleteRequest(); } partial void FingerprintButton_TouchUpInside(UIButton sender) diff --git a/src/iOS.Autofill/LockFingerprintViewController.designer.cs b/src/iOS.Autofill/LockFingerprintViewController.designer.cs new file mode 100644 index 000000000..9df92b01b --- /dev/null +++ b/src/iOS.Autofill/LockFingerprintViewController.designer.cs @@ -0,0 +1,64 @@ +// WARNING +// +// This file has been generated automatically by Visual Studio from the outlets and +// actions declared in your storyboard file. +// Manual changes to this file will not be maintained. +// +using Foundation; +using System; +using System.CodeDom.Compiler; +using UIKit; + +namespace Bit.iOS.Autofill +{ + [Register ("LockFingerprintViewController")] + partial class LockFingerprintViewController + { + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UIBarButtonItem CancelButton { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UIButton FingerprintButton { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UINavigationItem NavItem { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UIButton UseButton { get; set; } + + [Action ("CancelButton_Activated:")] + [GeneratedCode ("iOS Designer", "1.0")] + partial void CancelButton_Activated (UIKit.UIBarButtonItem sender); + + [Action ("FingerprintButton_TouchUpInside:")] + [GeneratedCode ("iOS Designer", "1.0")] + partial void FingerprintButton_TouchUpInside (UIKit.UIButton sender); + + void ReleaseDesignerOutlets () + { + if (CancelButton != null) { + CancelButton.Dispose (); + CancelButton = null; + } + + if (FingerprintButton != null) { + FingerprintButton.Dispose (); + FingerprintButton = null; + } + + if (NavItem != null) { + NavItem.Dispose (); + NavItem = null; + } + + if (UseButton != null) { + UseButton.Dispose (); + UseButton = null; + } + } + } +} \ No newline at end of file diff --git a/src/iOS.Autofill/LockPasswordViewController.cs b/src/iOS.Autofill/LockPasswordViewController.cs index d51531591..a5eb523f8 100644 --- a/src/iOS.Autofill/LockPasswordViewController.cs +++ b/src/iOS.Autofill/LockPasswordViewController.cs @@ -1,18 +1,18 @@ using System; using UIKit; -namespace Bit.iOS.Extension +namespace Bit.iOS.Autofill { public partial class LockPasswordViewController : Core.Controllers.LockPasswordViewController { public LockPasswordViewController(IntPtr handle) : base(handle) { } - public LoadingViewController LoadingController { get; set; } + public CredentialProviderViewController CPViewController { get; set; } public override UINavigationItem BaseNavItem => NavItem; public override UIBarButtonItem BaseCancelButton => CancelButton; public override UIBarButtonItem BaseSubmitButton => SubmitButton; - public override Action Success => () => LoadingController.DismissLockAndContinue(); + public override Action Success => () => CPViewController.DismissLockAndContinue(); partial void SubmitButton_Activated(UIBarButtonItem sender) { @@ -21,7 +21,7 @@ namespace Bit.iOS.Extension partial void CancelButton_Activated(UIBarButtonItem sender) { - LoadingController.CompleteRequest(null); + CPViewController.CompleteRequest(); } } } diff --git a/src/iOS.Autofill/LockPasswordViewController.designer.cs b/src/iOS.Autofill/LockPasswordViewController.designer.cs new file mode 100644 index 000000000..3e6edf80a --- /dev/null +++ b/src/iOS.Autofill/LockPasswordViewController.designer.cs @@ -0,0 +1,64 @@ +// WARNING +// +// This file has been generated automatically by Visual Studio from the outlets and +// actions declared in your storyboard file. +// Manual changes to this file will not be maintained. +// +using Foundation; +using System; +using System.CodeDom.Compiler; +using UIKit; + +namespace Bit.iOS.Autofill +{ + [Register ("LockPasswordViewController")] + partial class LockPasswordViewController + { + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UIBarButtonItem CancelButton { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UITableView MainTableView { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UINavigationItem NavItem { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UIBarButtonItem SubmitButton { get; set; } + + [Action ("CancelButton_Activated:")] + [GeneratedCode ("iOS Designer", "1.0")] + partial void CancelButton_Activated (UIKit.UIBarButtonItem sender); + + [Action ("SubmitButton_Activated:")] + [GeneratedCode ("iOS Designer", "1.0")] + partial void SubmitButton_Activated (UIKit.UIBarButtonItem sender); + + void ReleaseDesignerOutlets () + { + if (CancelButton != null) { + CancelButton.Dispose (); + CancelButton = null; + } + + if (MainTableView != null) { + MainTableView.Dispose (); + MainTableView = null; + } + + if (NavItem != null) { + NavItem.Dispose (); + NavItem = null; + } + + if (SubmitButton != null) { + SubmitButton.Dispose (); + SubmitButton = null; + } + } + } +} \ No newline at end of file diff --git a/src/iOS.Autofill/LockPinViewController.cs b/src/iOS.Autofill/LockPinViewController.cs index 2737135be..18e6eacfc 100644 --- a/src/iOS.Autofill/LockPinViewController.cs +++ b/src/iOS.Autofill/LockPinViewController.cs @@ -1,24 +1,24 @@ using System; using UIKit; -namespace Bit.iOS.Extension +namespace Bit.iOS.Autofill { public partial class LockPinViewController : Core.Controllers.LockPinViewController { public LockPinViewController(IntPtr handle) : base(handle) { } - public LoadingViewController LoadingController { get; set; } + public CredentialProviderViewController CPViewController { get; set; } public override UINavigationItem BaseNavItem => NavItem; public override UIBarButtonItem BaseCancelButton => CancelButton; public override UILabel BasePinLabel => PinLabel; public override UILabel BaseInstructionLabel => InstructionLabel; public override UITextField BasePinTextField => PinTextField; - public override Action Success => () => LoadingController.DismissLockAndContinue(); + public override Action Success => () => CPViewController.DismissLockAndContinue(); partial void CancelButton_Activated(UIBarButtonItem sender) { - LoadingController.CompleteRequest(null); + CPViewController.CompleteRequest(); } } } diff --git a/src/iOS.Autofill/LockPinViewController.designer.cs b/src/iOS.Autofill/LockPinViewController.designer.cs new file mode 100644 index 000000000..9227edd6e --- /dev/null +++ b/src/iOS.Autofill/LockPinViewController.designer.cs @@ -0,0 +1,69 @@ +// WARNING +// +// This file has been generated automatically by Visual Studio from the outlets and +// actions declared in your storyboard file. +// Manual changes to this file will not be maintained. +// +using Foundation; +using System; +using System.CodeDom.Compiler; +using UIKit; + +namespace Bit.iOS.Autofill +{ + [Register ("LockPinViewController")] + partial class LockPinViewController + { + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UIBarButtonItem CancelButton { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UILabel InstructionLabel { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UINavigationItem NavItem { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UILabel PinLabel { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UITextField PinTextField { get; set; } + + [Action ("CancelButton_Activated:")] + [GeneratedCode ("iOS Designer", "1.0")] + partial void CancelButton_Activated (UIKit.UIBarButtonItem sender); + + void ReleaseDesignerOutlets () + { + if (CancelButton != null) { + CancelButton.Dispose (); + CancelButton = null; + } + + if (InstructionLabel != null) { + InstructionLabel.Dispose (); + InstructionLabel = null; + } + + if (NavItem != null) { + NavItem.Dispose (); + NavItem = null; + } + + if (PinLabel != null) { + PinLabel.Dispose (); + PinLabel = null; + } + + if (PinTextField != null) { + PinTextField.Dispose (); + PinTextField = null; + } + } + } +} \ No newline at end of file diff --git a/src/iOS.Autofill/LoginAddViewController.cs b/src/iOS.Autofill/LoginAddViewController.cs index acaa68a7a..1a24c50eb 100644 --- a/src/iOS.Autofill/LoginAddViewController.cs +++ b/src/iOS.Autofill/LoginAddViewController.cs @@ -2,7 +2,7 @@ using System; using Foundation; using UIKit; -namespace Bit.iOS.Extension +namespace Bit.iOS.Autofill { public partial class LoginAddViewController : Core.Controllers.LoginAddViewController { @@ -10,7 +10,6 @@ namespace Bit.iOS.Extension { } public LoginListViewController LoginListController { get; set; } - public LoadingViewController LoadingController { get; set; } public override UINavigationItem BaseNavItem => NavItem; public override UIBarButtonItem BaseCancelButton => CancelBarButton; @@ -18,27 +17,12 @@ namespace Bit.iOS.Extension public override Action Success => () => { - if(LoginListController != null) - { - LoginListController.DismissModal(); - } - else if(LoadingController != null) - { - LoadingController.CompleteUsernamePasswordRequest(UsernameCell.TextField.Text, - PasswordCell.TextField.Text, null, null); - } + LoginListController?.DismissModal(); }; partial void CancelBarButton_Activated(UIBarButtonItem sender) { - if(LoginListController != null) - { - DismissViewController(true, null); - } - else - { - LoadingController.CompleteRequest(null); - } + DismissViewController(true, null); } async partial void SaveBarButton_Activated(UIBarButtonItem sender) diff --git a/src/iOS.Autofill/LoginAddViewController.designer.cs b/src/iOS.Autofill/LoginAddViewController.designer.cs new file mode 100644 index 000000000..f256f50ac --- /dev/null +++ b/src/iOS.Autofill/LoginAddViewController.designer.cs @@ -0,0 +1,55 @@ +// WARNING +// +// This file has been generated automatically by Visual Studio from the outlets and +// actions declared in your storyboard file. +// Manual changes to this file will not be maintained. +// +using Foundation; +using System; +using System.CodeDom.Compiler; +using UIKit; + +namespace Bit.iOS.Autofill +{ + [Register ("LoginAddViewController")] + partial class LoginAddViewController + { + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UIBarButtonItem CancelBarButton { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UINavigationItem NavItem { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UIBarButtonItem SaveBarButton { get; set; } + + [Action ("CancelBarButton_Activated:")] + [GeneratedCode ("iOS Designer", "1.0")] + partial void CancelBarButton_Activated (UIKit.UIBarButtonItem sender); + + [Action ("SaveBarButton_Activated:")] + [GeneratedCode ("iOS Designer", "1.0")] + partial void SaveBarButton_Activated (UIKit.UIBarButtonItem sender); + + void ReleaseDesignerOutlets () + { + if (CancelBarButton != null) { + CancelBarButton.Dispose (); + CancelBarButton = null; + } + + if (NavItem != null) { + NavItem.Dispose (); + NavItem = null; + } + + if (SaveBarButton != null) { + SaveBarButton.Dispose (); + SaveBarButton = null; + } + } + } +} \ No newline at end of file diff --git a/src/iOS.Autofill/LoginListViewController.cs b/src/iOS.Autofill/LoginListViewController.cs index 743b03edc..2690ea1a0 100644 --- a/src/iOS.Autofill/LoginListViewController.cs +++ b/src/iOS.Autofill/LoginListViewController.cs @@ -17,6 +17,7 @@ using Bit.App.Resources; using Bit.App.Models; using Bit.App.Utilities; using Bit.iOS.Core.Models; +using Bit.iOS.Core.Views; namespace Bit.iOS.Autofill { @@ -62,14 +63,12 @@ namespace Bit.iOS.Autofill var navController = segue.DestinationViewController as UINavigationController; if(navController != null) { - /* var addLoginController = navController.TopViewController as LoginAddViewController; if(addLoginController != null) { addLoginController.Context = Context; addLoginController.LoginListController = this; } - */ } } @@ -82,87 +81,16 @@ namespace Bit.iOS.Autofill }); } - public class TableSource : UITableViewSource + public class TableSource : ExtensionTableSource { - private const string CellIdentifier = "TableCell"; - - private IEnumerable _tableItems = new List(); private Context _context; private LoginListViewController _controller; - private ICipherService _cipherService; - private ISettings _settings; - private bool _accessPremium; public TableSource(LoginListViewController controller) + :base(controller.Context, controller) { _context = controller.Context; _controller = controller; - _accessPremium = Helpers.CanAccessPremium(); - _cipherService = Resolver.Resolve(); - _settings = Resolver.Resolve(); - } - - public async Task LoadItemsAsync() - { - var combinedLogins = new List(); - - var logins = await _cipherService.GetAllAsync(_context.UrlString); - if(logins?.Item1 != null) - { - combinedLogins.AddRange(logins.Item1); - } - if(logins?.Item2 != null) - { - combinedLogins.AddRange(logins.Item2); - } - - _tableItems = combinedLogins.Select(s => new CipherViewModel(s)) - .OrderBy(s => s.Name) - .ThenBy(s => s.Username) - .ToList() ?? new List(); - } - - public IEnumerable TableItems { get; set; } - - public override nint RowsInSection(UITableView tableview, nint section) - { - return _tableItems == null || _tableItems.Count() == 0 ? 1 : _tableItems.Count(); - } - - public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) - { - if(_tableItems == null || _tableItems.Count() == 0) - { - var noDataCell = new UITableViewCell(UITableViewCellStyle.Default, "NoDataCell"); - noDataCell.TextLabel.Text = AppResources.NoItemsTap; - noDataCell.TextLabel.TextAlignment = UITextAlignment.Center; - noDataCell.TextLabel.LineBreakMode = UILineBreakMode.WordWrap; - noDataCell.TextLabel.Lines = 0; - return noDataCell; - } - - var cell = tableView.DequeueReusableCell(CellIdentifier); - - // if there are no cells to reuse, create a new one - if(cell == null) - { - Debug.WriteLine("BW Log, Make new cell for list."); - cell = new UITableViewCell(UITableViewCellStyle.Subtitle, CellIdentifier); - cell.DetailTextLabel.TextColor = cell.DetailTextLabel.TintColor = new UIColor(red: 0.47f, green: 0.47f, blue: 0.47f, alpha: 1.0f); - } - return cell; - } - - public override void WillDisplay(UITableView tableView, UITableViewCell cell, NSIndexPath indexPath) - { - if(_tableItems == null || _tableItems.Count() == 0 || cell == null) - { - return; - } - - var item = _tableItems.ElementAt(indexPath.Row); - cell.TextLabel.Text = item.Name; - cell.DetailTextLabel.Text = item.Username; } public override void RowSelected(UITableView tableView, NSIndexPath indexPath) @@ -254,20 +182,6 @@ namespace Bit.iOS.Autofill _controller.PresentViewController(alert, true, null); } } - - private string GetTotp(CipherViewModel item) - { - string totp = null; - if(_accessPremium) - { - if(item != null && !string.IsNullOrWhiteSpace(item.Totp.Value)) - { - totp = Crypto.Totp(item.Totp.Value); - } - } - - return totp; - } } } } diff --git a/src/iOS.Autofill/LoginListViewController.designer.cs b/src/iOS.Autofill/LoginListViewController.designer.cs new file mode 100644 index 000000000..3e0636502 --- /dev/null +++ b/src/iOS.Autofill/LoginListViewController.designer.cs @@ -0,0 +1,55 @@ +// WARNING +// +// This file has been generated automatically by Visual Studio from the outlets and +// actions declared in your storyboard file. +// Manual changes to this file will not be maintained. +// +using Foundation; +using System; +using System.CodeDom.Compiler; +using UIKit; + +namespace Bit.iOS.Autofill +{ + [Register ("LoginListViewController")] + partial class LoginListViewController + { + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UIBarButtonItem AddBarButton { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UIBarButtonItem CancelBarButton { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UINavigationItem NavItem { get; set; } + + [Action ("AddBarButton_Activated:")] + [GeneratedCode ("iOS Designer", "1.0")] + partial void AddBarButton_Activated (UIKit.UIBarButtonItem sender); + + [Action ("CancelBarButton_Activated:")] + [GeneratedCode ("iOS Designer", "1.0")] + partial void CancelBarButton_Activated (UIKit.UIBarButtonItem sender); + + void ReleaseDesignerOutlets () + { + if (AddBarButton != null) { + AddBarButton.Dispose (); + AddBarButton = null; + } + + if (CancelBarButton != null) { + CancelBarButton.Dispose (); + CancelBarButton = null; + } + + if (NavItem != null) { + NavItem.Dispose (); + NavItem = null; + } + } + } +} \ No newline at end of file diff --git a/src/iOS.Autofill/MainInterface.storyboard b/src/iOS.Autofill/MainInterface.storyboard index 896ff1f0f..d5f7b0484 100644 --- a/src/iOS.Autofill/MainInterface.storyboard +++ b/src/iOS.Autofill/MainInterface.storyboard @@ -33,7 +33,6 @@ - @@ -521,89 +520,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/iOS.Autofill/PasswordGeneratorViewController.cs b/src/iOS.Autofill/PasswordGeneratorViewController.cs index 36f3b99aa..46f904496 100644 --- a/src/iOS.Autofill/PasswordGeneratorViewController.cs +++ b/src/iOS.Autofill/PasswordGeneratorViewController.cs @@ -1,7 +1,7 @@ using System; using UIKit; -namespace Bit.iOS.Extension +namespace Bit.iOS.Autofill { public partial class PasswordGeneratorViewController : Core.Controllers.PasswordGeneratorViewController { @@ -16,7 +16,7 @@ namespace Bit.iOS.Extension partial void SelectBarButton_Activated(UIBarButtonItem sender) { - GoogleAnalyticsService.TrackExtensionEvent("SelectedGeneratedPassword"); + GoogleAnalyticsService.TrackAutofillExtensionEvent("SelectedGeneratedPassword"); DismissViewController(true, () => { Parent.PasswordCell.TextField.Text = PasswordLabel.Text; diff --git a/src/iOS.Autofill/PasswordGeneratorViewController.designer.cs b/src/iOS.Autofill/PasswordGeneratorViewController.designer.cs new file mode 100644 index 000000000..cff6e5a65 --- /dev/null +++ b/src/iOS.Autofill/PasswordGeneratorViewController.designer.cs @@ -0,0 +1,82 @@ +// WARNING +// +// This file has been generated automatically by Visual Studio from the outlets and +// actions declared in your storyboard file. +// Manual changes to this file will not be maintained. +// +using Foundation; +using System; +using System.CodeDom.Compiler; +using UIKit; + +namespace Bit.iOS.Autofill +{ + [Register ("PasswordGeneratorViewController")] + partial class PasswordGeneratorViewController + { + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UIView BaseView { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UIBarButtonItem CancelBarButton { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UINavigationItem NavItem { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UIView OptionsContainer { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UILabel PasswordLabel { get; set; } + + [Outlet] + [GeneratedCode ("iOS Designer", "1.0")] + UIKit.UIBarButtonItem SelectBarButton { get; set; } + + [Action ("CancelBarButton_Activated:")] + [GeneratedCode ("iOS Designer", "1.0")] + partial void CancelBarButton_Activated (UIKit.UIBarButtonItem sender); + + [Action ("SelectBarButton_Activated:")] + [GeneratedCode ("iOS Designer", "1.0")] + partial void SelectBarButton_Activated (UIKit.UIBarButtonItem sender); + + void ReleaseDesignerOutlets () + { + if (BaseView != null) { + BaseView.Dispose (); + BaseView = null; + } + + if (CancelBarButton != null) { + CancelBarButton.Dispose (); + CancelBarButton = null; + } + + if (NavItem != null) { + NavItem.Dispose (); + NavItem = null; + } + + if (OptionsContainer != null) { + OptionsContainer.Dispose (); + OptionsContainer = null; + } + + if (PasswordLabel != null) { + PasswordLabel.Dispose (); + PasswordLabel = null; + } + + if (SelectBarButton != null) { + SelectBarButton.Dispose (); + SelectBarButton = null; + } + } + } +} \ No newline at end of file diff --git a/src/iOS.Autofill/iOS.Autofill.csproj b/src/iOS.Autofill/iOS.Autofill.csproj index 55aecf233..b523706fe 100644 --- a/src/iOS.Autofill/iOS.Autofill.csproj +++ b/src/iOS.Autofill/iOS.Autofill.csproj @@ -1,5 +1,4 @@ - - + Debug iPhoneSimulator @@ -10,8 +9,7 @@ BitwardeniOSAutofill Resources Properties - - + true @@ -74,10 +72,8 @@ Entitlements.plist iPhone Developer True - - - - + + None False False @@ -88,8 +84,7 @@ False False --http-message-handler=NSUrlSessionHandler - - + Default NSUrlSessionHandler @@ -220,6 +215,24 @@ CredentialProviderViewController.cs + + ..\iOS.Extension\LockFingerprintViewController.cs + + + ..\iOS.Extension\LockPasswordViewController.cs + + + ..\iOS.Extension\LockPinViewController.cs + + + ..\iOS.Extension\LoginAddViewController.cs + + + ..\iOS.Extension\LoginListViewController.cs + + + ..\iOS.Extension\PasswordGeneratorViewController.cs +