1
0
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:
Kyle Spearrin
2016-06-26 00:16:10 -04:00
parent e38dbff152
commit 954e2294c0
8 changed files with 12010 additions and 16 deletions

View File

@@ -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;
}
}
}
}