Exemplo n.º 1
0
        public static BuildConfigEntryData FromNameValue(string name, string value)
        {
            BuildConfigEntryData ret = new BuildConfigEntryData();

            ret.name = name;
            ret.AddValue(value);
            return(ret);
        }
        public static BuildConfigEntryData FromNameValue(string name, string value)
        {
            BuildConfigEntryData data = new BuildConfigEntryData {
                name = name
            };

            data.AddValue(value);
            return(data);
        }
Exemplo n.º 3
0
        public override void UpdateVars()
        {
            this.baseConfigurationReference = this.GetPropertyString("baseConfigurationReference");
            this.entries = new SortedDictionary <string, BuildConfigEntryData>();
            if (!this.m_Properties.Contains("buildSettings"))
            {
                return;
            }
            PBXElementDict pbxElementDict = this.m_Properties["buildSettings"].AsDict();

            foreach (string index in (IEnumerable <string>)pbxElementDict.values.Keys)
            {
                PBXElement pbxElement1 = pbxElementDict[index];
                if (pbxElement1 is PBXElementString)
                {
                    if (this.entries.ContainsKey(index))
                    {
                        this.entries[index].val.Add(pbxElement1.AsString());
                    }
                    else
                    {
                        this.entries.Add(index, BuildConfigEntryData.FromNameValue(index, pbxElement1.AsString()));
                    }
                }
                else if (pbxElement1 is PBXElementArray)
                {
                    foreach (PBXElement pbxElement2 in pbxElement1.AsArray().values)
                    {
                        if (pbxElement2 is PBXElementString)
                        {
                            if (this.entries.ContainsKey(index))
                            {
                                this.entries[index].val.Add(pbxElement2.AsString());
                            }
                            else
                            {
                                this.entries.Add(index, BuildConfigEntryData.FromNameValue(index, pbxElement2.AsString()));
                            }
                        }
                    }
                }
            }
        }
Exemplo n.º 4
0
        public override void UpdateVars()
        {
            baseConfigurationReference = GetPropertyString("baseConfigurationReference");

            entries = new SortedDictionary <string, BuildConfigEntryData>();
            if (m_Properties.Contains("buildSettings"))
            {
                var dict = m_Properties["buildSettings"].AsDict();
                foreach (var key in dict.values.Keys)
                {
                    var value = dict[key];
                    if (value is PBXElementString)
                    {
                        if (entries.ContainsKey(key))
                        {
                            entries[key].val.Add(value.AsString());
                        }
                        else
                        {
                            entries.Add(key, BuildConfigEntryData.FromNameValue(key, value.AsString()));
                        }
                    }
                    else if (value is PBXElementArray)
                    {
                        foreach (var pvalue in value.AsArray().values)
                        {
                            if (pvalue is PBXElementString)
                            {
                                if (entries.ContainsKey(key))
                                {
                                    entries[key].val.Add(pvalue.AsString());
                                }
                                else
                                {
                                    entries.Add(key, BuildConfigEntryData.FromNameValue(key, pvalue.AsString()));
                                }
                            }
                        }
                    }
                }
            }
        }
 public override void UpdateVars()
 {
     this.entries = new SortedDictionary <string, BuildConfigEntryData>();
     if (base.m_Properties.Contains("buildSettings"))
     {
         PBXElementDict dict = base.m_Properties["buildSettings"].AsDict();
         foreach (string str in dict.values.Keys)
         {
             PBXElement element = dict[str];
             if (element is PBXElementString)
             {
                 if (this.entries.ContainsKey(str))
                 {
                     this.entries[str].val.Add(element.AsString());
                 }
                 else
                 {
                     this.entries.Add(str, BuildConfigEntryData.FromNameValue(str, element.AsString()));
                 }
             }
             else if (element is PBXElementArray)
             {
                 foreach (PBXElement element2 in element.AsArray().values)
                 {
                     if (element2 is PBXElementString)
                     {
                         if (this.entries.ContainsKey(str))
                         {
                             this.entries[str].val.Add(element2.AsString());
                         }
                         else
                         {
                             this.entries.Add(str, BuildConfigEntryData.FromNameValue(str, element2.AsString()));
                         }
                     }
                 }
             }
         }
     }
 }
Exemplo n.º 6
0
 public void SetProperty(string name, string value)
 {
     entries[name] = BuildConfigEntryData.FromNameValue(name, EscapeWithQuotesIfNeeded(name, value));
 }