Exemplo n.º 1
0
        //Associated Domains
        void ApplyAssociatedDomainsCapability(AssociatedDomainsCapability capability)
        {
            //update pbxproject
            _pbxproj.EnableSystemCapability("com.apple.SafariKeychain", true);
            //update entitlements file
            var entitlementChanges = new PListDictionary();
            var domains            = new PListArray();

            entitlementChanges.Add("com.apple.developer.associated-domains", domains);

            foreach (var item in capability.AssociatedDomains)
            {
                domains.Add(item);
            }

            ApplyEntitlementsChanges(entitlementChanges, true);
        }
 public AssociatedDomainsCapability(AssociatedDomainsCapability other)
     : base(other)
 {
     AssociatedDomains = new List <string>(other.AssociatedDomains);
 }