void AddScripts(ScriptChanges changes) { for (int ii = 0; ii < changes.Count; ++ii) { _pbxproj.AddScript(changes.NameAt(ii), changes.ShellAt(ii), changes.ScriptAt(ii)); } }
public void Merge(ScriptChanges other) { foreach (var s in other._scripts) { if (string.IsNullOrEmpty(s.Script.Trim())) { continue; } ScriptEntry existing = null; //only match scripts that have names if (!string.IsNullOrEmpty(s.Name)) { existing = _scripts.Find(o => o.Name == s.Name); } if (existing == null) { var entry = new ScriptEntry(s); _scripts.Add(entry); } else { existing.Script = s.Script; existing.Shell = s.Script; } } }
public XcodeChangeFile() { IsDirty = false; SavePath = ""; Platform = BuildPlatform.iOS; Frameworks = new FrameworkChanges(); FilesAndFolders = new FilesAndFolderChanges(); Scripts = new ScriptChanges(); BuildSettings = new BuildSettingsChanges(); InfoPlistChanges = new PListDictionary(); Signing = new SigningChanges(); Capabilities = new CapabilitiesChanges(); }
void LoadScripts(PListArray array) { if (array == null) { return; } try { Scripts = new ScriptChanges(array); } catch { Debug.LogWarning("EgoXproject: Corrupt scripts section in " + SavePath); } }