Skip to content

Commit

Permalink
Remove GraphViz feature (#1485)
Browse files Browse the repository at this point in the history
* Remove GraphViz to pass build on Xcode 16

* Update documentations
Kohki Miki authored Jul 2, 2024
1 parent f51719c commit 7eb5e9b
Showing 7 changed files with 2 additions and 206 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@

## Next Version

- Removed `xcodegen dump --type graphviz` feature. @giginet

## 2.41.0

### Added
9 changes: 0 additions & 9 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -18,15 +18,6 @@
"version" : "0.0.6"
}
},
{
"identity" : "graphviz",
"kind" : "remoteSourceControl",
"location" : "https://github.com/SwiftDocOrg/GraphViz.git",
"state" : {
"revision" : "70bebcf4597b9ce33e19816d6bbd4ba9b7bdf038",
"version" : "0.2.0"
}
},
{
"identity" : "jsonutilities",
"kind" : "remoteSourceControl",
2 changes: 0 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -19,7 +19,6 @@ let package = Package(
.package(url: "https://github.com/tuist/XcodeProj.git", exact: "8.13.0"),
.package(url: "https://github.com/jakeheis/SwiftCLI.git", from: "6.0.3"),
.package(url: "https://github.com/mxcl/Version", from: "2.0.0"),
.package(url: "https://github.com/SwiftDocOrg/GraphViz.git", exact: "0.2.0"),
.package(url: "https://github.com/freddi-kit/ArtifactBundleGen", exact: "0.0.6")
],
targets: [
@@ -41,7 +40,6 @@ let package = Package(
"XcodeProj",
"PathKit",
"XcodeGenCore",
"GraphViz",
], resources: [
.copy("SettingPresets")
]),
22 changes: 0 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -35,7 +35,6 @@ The project spec is a YAML or JSON file that defines your targets, configuration
- ✅ Distribute your spec amongst multiple files for easy **sharing** and overriding
- ✅ Easily create **multi-platform** frameworks
- ✅ Integrate **Carthage** frameworks without any work
- ✅ Export **Dependency Diagrams** to view in [Graphviz](https://www.graphviz.org)

Given an example project spec:

@@ -138,27 +137,6 @@ Options:

There are other commands as well such as `xcodegen dump` which lets one output the resolved spec in many different formats, or write it to a file. Use `xcodegen help` to see more detailed usage information.

## Dependency Diagrams
<details>
<summary>Click to expand!</summary>

#### How to export dependency diagrams:

To stdout:

```
xcodegen dump --type graphviz
```

To a file:

```
xcodegen dump --type graphviz --file Graph.viz
```

During implementation, `graphviz` formatting was validated using [GraphvizOnline](https://dreampuf.github.io/GraphvizOnline/), [WebGraphviz](http://www.webgraphviz.com), and [Graphviz on MacOS](https://graphviz.org).
</details>

## Editing
```shell
git clone https://github.com/yonaskolb/XcodeGen.git
3 changes: 0 additions & 3 deletions Sources/XcodeGenCLI/Commands/DumpCommand.swift
Original file line number Diff line number Diff line change
@@ -41,8 +41,6 @@ class DumpCommand: ProjectCommand {
output = try Yams.dump(object: project.toJSONDictionary())
case .summary:
output = project.debugDescription
case .graphviz:
output = GraphVizGenerator().generateModuleGraphViz(targets: project.targets)
}

if let file = file {
@@ -61,7 +59,6 @@ private enum DumpType: String, ConvertibleFromString, CaseIterable {
case parsedJSON = "parsed-json"
case parsedYaml = "parsed-yaml"
case summary
case graphviz

static var defaultValue: DumpType { .yaml }
}
66 changes: 0 additions & 66 deletions Sources/XcodeGenKit/GraphVizGenerator.swift

This file was deleted.

104 changes: 0 additions & 104 deletions Tests/XcodeGenKitTests/GraphVizGeneratorTests.swift

This file was deleted.

0 comments on commit 7eb5e9b

Please sign in to comment.