maxchuquimia / xcgrapher

Framework-level dependency graph generator for Xcode projects - with support for custom graphing
101 stars 8 forks source link

Add Support to `--package path/to/Package.swift` Parameter #7

Closed rogerluan closed 3 years ago

rogerluan commented 3 years ago

Description

This PR picks up the work that was initiated here https://github.com/maxchuquimia/xcgrapher/commit/d04da282e4207dd72e6c63e99438430000698fed and aims to bring support for the --package argument, which receives a path to a Package.swift file, and plots a graph for the dependencies of the given Swift Package.

The heavy lifting was really done by @maxchuquimia. What I did was finish up the TODO left here https://github.com/maxchuquimia/xcgrapher/commit/d04da282e4207dd72e6c63e99438430000698fed#diff-153d5429d399c18d0a6dd32f593f6d1411fd0c8e9df19e62701497835913edb9R31 and fix the unit tests. I also added a new dependency to the sample SPM project to make the resulting graph look more interesting (where 2 packages (SomePackage and Moya) depends on the same dependency (Alamofire).

Resolves #4

Note: this PR was branched off of #6 so please review & possibly merge it first, before reviewing & merging this one. As I'm working off of a GitHub Fork, I can't point this PR against my other branch 😬

Demo

image
rogerluan commented 3 years ago

Thanks for merging this in @maxchuquimia ! 🎉 🚀🚀