mirror of
https://github.com/bitwarden/mobile
synced 2025-12-19 01:33:22 +00:00
added domain name parsing. moved iphone debug profile to only arm64 for faster building.
This commit is contained in:
@@ -7,6 +7,9 @@ namespace Bit.iOS.Extension.Models
|
||||
{
|
||||
public class SiteViewModel
|
||||
{
|
||||
private DomainName _domain = null;
|
||||
private bool _domainParsed = false;
|
||||
|
||||
public SiteViewModel(Site site)
|
||||
{
|
||||
Id = site.Id;
|
||||
@@ -40,5 +43,26 @@ namespace Bit.iOS.Extension.Models
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public DomainName Domain
|
||||
{
|
||||
get
|
||||
{
|
||||
if(_domainParsed)
|
||||
{
|
||||
return _domain;
|
||||
}
|
||||
|
||||
_domainParsed = true;
|
||||
|
||||
DomainName domain;
|
||||
if(DomainName.TryParse(Uri, out domain))
|
||||
{
|
||||
_domain = domain;
|
||||
}
|
||||
|
||||
return _domain;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user