Skip to content

Commit

Permalink
support also binary targets (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
osrufung authored May 9, 2023
1 parent 0aa0a61 commit f178a39
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions Sources/SPMExtractor/Module+Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public struct Package: Decodable {
case library
case test
case executable
case binary
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/jungle/Commands/Main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ struct Jungle: AsyncParsableCommand {
static var configuration = CommandConfiguration(
commandName: "jungle",
abstract: "SwiftPM and Cocoapods based projects complexity analyzer.",
version: "2.2.1",
version: "2.2.2",
subcommands: [HistoryCommand.self, CompareCommand.self, GraphCommand.self, ModulesCommand.self, DependantCommand.self],
defaultSubcommand: CompareCommand.self
)
Expand Down
12 changes: 12 additions & 0 deletions Tests/SPMExtractorTests/SPMExtractorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,18 @@ final class SPMExtractorTests: XCTestCase {
"SamplePackage"
],
"type" : "library"
},
{
"c99name" : "BinaryTarget",
"module_type" : "BinaryTarget",
"name" : "BinaryTarget",
"path" : "remote/archive/101116667.zip",
"product_memberships" : [
],
"sources" : [
],
"type" : "binary"
}
],
"tools_version" : "5.7"
Expand Down

0 comments on commit f178a39

Please sign in to comment.