mirror of
https://github.com/bitwarden/android.git
synced 2026-05-24 07:01:26 -05:00
* WIP Add Share app extension on iOS for Send * Added Share app extension on iOS for Send and some code fixes as well * Updated iOS csprojs configs to linkskip the new extension project and also added AdHoc and AppStore configurations to iOS.ShareExtension.csproj * Code clean up and transformed bundle resources into links to the already used pngs of the main iOS project on ShareExtension * Updated build.yml to include provisioning profile for iOS Share extension * Adding in the missing provisioning profile * Removed .DS_Store from the iOS.ShareExtension csproj Resources * switching out the share extension profile * Added Share extension provisioning profile configuration on export options app store for github and also removed custom info.plist config for localhost which is not necessary Co-authored-by: Joseph Flinn <joseph.s.flinn@gmail.com>
41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
using Bit.iOS.Core.Utilities;
|
|
using System;
|
|
using UIKit;
|
|
|
|
namespace Bit.iOS.ShareExtension
|
|
{
|
|
public partial class LockPasswordViewController : Core.Controllers.LockPasswordViewController
|
|
{
|
|
public LockPasswordViewController(IntPtr handle)
|
|
: base(handle)
|
|
{
|
|
BiometricIntegrityKey = Bit.Core.Constants.iOSExtensionBiometricIntegrityKey;
|
|
DismissModalAction = Cancel;
|
|
}
|
|
|
|
public LoadingViewController LoadingController { 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 Cancel => () => LoadingController.CompleteRequest();
|
|
|
|
public override void ViewDidLoad()
|
|
{
|
|
base.ViewDidLoad();
|
|
_cancelButton.TintColor = ThemeHelpers.NavBarTextColor;
|
|
_submitButton.TintColor = ThemeHelpers.NavBarTextColor;
|
|
}
|
|
|
|
partial void SubmitButton_Activated(UIBarButtonItem sender)
|
|
{
|
|
var task = CheckPasswordAsync();
|
|
}
|
|
|
|
partial void CancelButton_Activated(UIBarButtonItem sender)
|
|
{
|
|
Cancel();
|
|
}
|
|
}
|
|
}
|