-
-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
link to my branch of swift testing enabling public issues
- Loading branch information
Showing
3 changed files
with
105 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// swift-tools-version:6.0 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Nimble", | ||
platforms: [ | ||
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6), .visionOS(.v1) | ||
], | ||
products: [ | ||
.library( | ||
name: "Nimble", | ||
targets: { | ||
var targets: [String] = ["Nimble"] | ||
#if os(macOS) | ||
targets.append("NimbleObjectiveC") | ||
#endif | ||
return targets | ||
}() | ||
), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/mattgallagher/CwlPreconditionTesting.git", .upToNextMajor(from: "2.2.0")), | ||
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"), | ||
.package(url: "https://github.com/younata/swift-testing", branch: "public-issues-pitch") | ||
], | ||
targets: { | ||
var testHelperDependencies: [PackageDescription.Target.Dependency] = ["Nimble"] | ||
#if os(macOS) | ||
testHelperDependencies.append("NimbleObjectiveC") | ||
#endif | ||
var targets: [Target] = [ | ||
.target( | ||
name: "Nimble", | ||
dependencies: [ | ||
.product(name: "CwlPreconditionTesting", package: "CwlPreconditionTesting", | ||
condition: .when(platforms: [.macOS, .iOS, .macCatalyst, .visionOS])), | ||
.product(name: "CwlPosixPreconditionTesting", package: "CwlPreconditionTesting", | ||
condition: .when(platforms: [.tvOS, .watchOS])), | ||
.product(name: "Testing", package: "swift-testing") | ||
], | ||
exclude: ["Info.plist"] | ||
), | ||
.target( | ||
name: "NimbleSharedTestHelpers", | ||
dependencies: testHelperDependencies | ||
), | ||
.testTarget( | ||
name: "NimbleTests", | ||
dependencies: ["Nimble", "NimbleSharedTestHelpers"], | ||
exclude: ["Info.plist"] | ||
), | ||
] | ||
#if os(macOS) | ||
targets.append(contentsOf: [ | ||
.target( | ||
name: "NimbleObjectiveC", | ||
dependencies: ["Nimble"] | ||
), | ||
.testTarget( | ||
name: "NimbleObjectiveCTests", | ||
dependencies: ["NimbleObjectiveC", "Nimble", "NimbleSharedTestHelpers"] | ||
) | ||
]) | ||
#endif | ||
return targets | ||
}(), | ||
swiftLanguageVersions: [.v5] | ||
) |