Skip to content

Commit

Permalink
Resolves Swift Package Manager issue related to swift-snapshot-testing (
Browse files Browse the repository at this point in the history
johnxnguyen#203)

* Tidied up some formatting inconsistencies in Package.swift

* Modified SwiftPM testTarget specification to exclude DownSnapshotTests

* Applied some final clarifying changes to Package.swift
  • Loading branch information
stevebaranski authored and regennz committed Apr 14, 2020
1 parent 2093239 commit cc071aa
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 10 deletions.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 26 additions & 10 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,47 @@ let package = Package(
platforms: [
.macOS("10.11"),
.iOS("9.0"),
.tvOS("9.0"),
.watchOS("2.0"),
.tvOS("9.0")
],
products: [
.library(
name: "Down",
targets: ["Down"]),
.library(
name: "Down",
targets: ["Down"]
)
],
dependencies: [],
targets: [
.target(
name: "libcmark",
dependencies: [],
path: "Source/cmark",
exclude: ["include"],
publicHeadersPath: "./"),
publicHeadersPath: "./"
),
.target(
name: "Down",
dependencies: ["libcmark"],
path: "Source/",
exclude: ["cmark", "Down.h"]),
exclude: ["cmark", "Down.h"]
),
.testTarget(
name: "DownTests",
dependencies: ["Down"],
path: "Tests/",
exclude: ["Fixtures", "DownViewTests.swift"]),
]
exclude: [
"AST/VisitorTests.swift",
"DownViewTests.swift",
"Fixtures",
"Styler/BlockQuoteStyleTests.swift",
"Styler/CodeBlockStyleTests.swift",
"Styler/DownDebugLayoutManagerTests.swift",
"Styler/HeadingStyleTests.swift",
"Styler/LinkStyleTests.swift",
"Styler/InlineStyleTests.swift",
"Styler/ListItemStyleTests.swift",
"Styler/StylerTestSuite.swift",
"Styler/ThematicBreakSyleTests.swift"
]
)
],
swiftLanguageVersions: [.v5]
)

0 comments on commit cc071aa

Please sign in to comment.