public void Consolidate() { PBXDictionary consolidated = new PBXDictionary(); consolidated.internalNewlines = true; consolidated.Append <PBXBuildFile>(this.buildFiles); consolidated.Append <PBXCopyFilesBuildPhase>(this.copyBuildPhases); consolidated.Append <PBXFileReference>(this.fileReferences); consolidated.Append <PBXFrameworksBuildPhase>(this.frameworkBuildPhases); consolidated.Append <PBXGroup>(this.groups); consolidated.Append <PBXNativeTarget>(this.nativeTargets); consolidated.Add(project.guid, project.data); consolidated.Append <PBXResourcesBuildPhase>(this.resourcesBuildPhases); consolidated.Append <PBXShellScriptBuildPhase>(this.shellScriptBuildPhases); consolidated.Append <PBXSourcesBuildPhase>(this.sourcesBuildPhases); consolidated.Append <XCBuildConfiguration>(this.buildConfigurations); consolidated.Append <XCConfigurationList>(this.configurationLists); _objects = consolidated; consolidated = null; }
public void Consolidate() { PBXDictionary consolidated = new PBXDictionary(); consolidated.Append <PBXBuildFile>(this.buildFiles); //sort! consolidated.Append <PBXCopyFilesBuildPhase>(this.copyBuildPhases); consolidated.Append <PBXFileReference>(this.fileReferences); //sort! consolidated.Append <PBXFrameworksBuildPhase>(this.frameworkBuildPhases); consolidated.Append <PBXGroup>(this.groups); //sort! consolidated.Append <PBXNativeTarget>(this.nativeTargets); consolidated.Add(project.guid, project.data); //TODO this should be named PBXProject? consolidated.Append <PBXResourcesBuildPhase>(this.resourcesBuildPhases); consolidated.Append <PBXShellScriptBuildPhase>(this.shellScriptBuildPhases); consolidated.Append <PBXSourcesBuildPhase>(this.sourcesBuildPhases); consolidated.Append <PBXVariantGroup>(this.variantGroups); consolidated.Append <XCBuildConfiguration>(this.buildConfigurations); consolidated.Append <XCConfigurationList>(this.configurationLists); _objects = consolidated; consolidated = null; }
public void Consolidate() { PBXDictionary consolidated = new PBXDictionary(); consolidated.Append <PBXBuildFile>(buildFiles); consolidated.Append <PBXGroup>(groups); consolidated.Append <PBXFileReference>(fileReferences); consolidated.Append <PBXNativeTarget>(nativeTargets); consolidated.Append <PBXFrameworksBuildPhase>(frameworkBuildPhases); consolidated.Append <PBXResourcesBuildPhase>(resourcesBuildPhases); consolidated.Append <PBXShellScriptBuildPhase>(shellScriptBuildPhases); consolidated.Append <PBXSourcesBuildPhase>(sourcesBuildPhases); consolidated.Append <PBXCopyFilesBuildPhase>(copyBuildPhases); consolidated.Append <XCBuildConfiguration>(buildConfigurations); consolidated.Append <XCConfigurationList>(configurationLists); consolidated.Add(project.guid, project.data); _objects = consolidated; consolidated = null; }