public override void UpdateProps() { base.m_Properties.values.Remove("projectReferences"); if (this.projectReferences.Count > 0) { PBXElementArray array = base.m_Properties.CreateArray("projectReferences"); foreach (ProjectReference reference in this.projectReferences) { PBXElementDict dict = array.AddDict(); dict.SetString("ProductGroup", reference.group); dict.SetString("ProjectRef", reference.projectRef); } } base.SetPropertyList("targets", this.targets); base.SetPropertyString("buildConfigurationList", this.buildConfigList); if (this.knownAssetTags.Count > 0) { PBXElementDict dict2; if (base.m_Properties.Contains("attributes")) { dict2 = base.m_Properties["attributes"].AsDict(); } else { dict2 = base.m_Properties.CreateDict("attributes"); } PBXElementArray array2 = dict2.CreateArray("knownAssetTags"); foreach (string str in this.knownAssetTags) { array2.AddString(str); } } }
public override void UpdateProps() { this.m_Properties.values.Remove("projectReferences"); if (this.projectReferences.Count > 0) { PBXElementArray array = this.m_Properties.CreateArray("projectReferences"); foreach (ProjectReference projectReference in this.projectReferences) { PBXElementDict pbxElementDict = array.AddDict(); pbxElementDict.SetString("ProductGroup", projectReference.group); pbxElementDict.SetString("ProjectRef", projectReference.projectRef); } } this.SetPropertyList("targets", this.targets); this.SetPropertyString("buildConfigurationList", this.buildConfigList); if (this.knownAssetTags.Count > 0) { PBXElementArray array = (!this.m_Properties.Contains("attributes") ? this.m_Properties.CreateDict("attributes") : this.m_Properties["attributes"].AsDict()).CreateArray("knownAssetTags"); foreach (string val in this.knownAssetTags) { array.AddString(val); } } foreach (PBXCapabilityType.TargetCapabilityPair targetCapabilityPair in this.capabilities) { PBXElementDict pbxElementDict1 = this.m_Properties.Contains("attributes") ? this.m_Properties["attributes"].AsDict() : this.m_Properties.CreateDict("attributes"); PBXElementDict pbxElementDict2 = pbxElementDict1.Contains("TargetAttributes") ? pbxElementDict1["TargetAttributes"].AsDict() : pbxElementDict1.CreateDict("TargetAttributes"); PBXElementDict pbxElementDict3 = pbxElementDict2.Contains(targetCapabilityPair.targetGuid) ? pbxElementDict2[targetCapabilityPair.targetGuid].AsDict() : pbxElementDict2.CreateDict(targetCapabilityPair.targetGuid); PBXElementDict pbxElementDict4 = pbxElementDict3.Contains("SystemCapabilities") ? pbxElementDict3["SystemCapabilities"].AsDict() : pbxElementDict3.CreateDict("SystemCapabilities"); string id = targetCapabilityPair.capability.id; (pbxElementDict4.Contains(id) ? pbxElementDict4[id].AsDict() : pbxElementDict4.CreateDict(id)).SetString("enabled", "1"); } foreach (KeyValuePair <string, string> keyValuePair in this.teamIDs) { PBXElementDict pbxElementDict1 = this.m_Properties.Contains("attributes") ? this.m_Properties["attributes"].AsDict() : this.m_Properties.CreateDict("attributes"); PBXElementDict pbxElementDict2 = pbxElementDict1.Contains("TargetAttributes") ? pbxElementDict1["TargetAttributes"].AsDict() : pbxElementDict1.CreateDict("TargetAttributes"); (pbxElementDict2.Contains(keyValuePair.Key) ? pbxElementDict2[keyValuePair.Key].AsDict() : pbxElementDict2.CreateDict(keyValuePair.Key)).SetString("DevelopmentTeam", keyValuePair.Value); } }