protected void SetPropertyString(string name, string value) { if (value == null) { m_Properties.Remove(name); } else { m_Properties.SetString(name, value); } }
public override void UpdateProps() { this.SetPropertyString("fileRef", this.fileRef); PBXElementDict settings = (PBXElementDict)null; if (this.m_Properties.Contains("settings")) { settings = this.m_Properties["settings"].AsDict(); } if (this.compileFlags != null && this.compileFlags != "") { if (settings == null) { settings = this.m_Properties.CreateDict("settings"); } settings.SetString("COMPILER_FLAGS", this.compileFlags); } else { if (settings != null) { settings.Remove("COMPILER_FLAGS"); } } PBXElementDict pbxElementDict = this.UpdatePropsAttribute(this.UpdatePropsAttribute(this.UpdatePropsAttribute(settings, this.weak, "Weak"), this.codeSignOnCopy, "CodeSignOnCopy"), this.removeHeadersOnCopy, "RemoveHeadersOnCopy"); if (this.assetTags.Count > 0) { if (pbxElementDict == null) { pbxElementDict = this.m_Properties.CreateDict("settings"); } PBXElementArray array = pbxElementDict.CreateArray("ASSET_TAGS"); foreach (string assetTag in this.assetTags) { array.AddString(assetTag); } } else { if (pbxElementDict != null) { pbxElementDict.Remove("ASSET_TAGS"); } } if (pbxElementDict == null || pbxElementDict.values.Count != 0) { return; } this.m_Properties.Remove("settings"); }