-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
41 lines (38 loc) · 1.15 KB
/
Copy pathPackage.swift
File metadata and controls
41 lines (38 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// swift-tools-version: 6.1
import PackageDescription
#if swift(>=6.2)
let shrinkByDefault = true
#else
let shrinkByDefault = false
#endif
let package = Package(
name: "PropertyBased",
platforms: [.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6), .macCatalyst(.v13), .visionOS(.v1)],
products: [
.library(
name: "PropertyBased",
targets: ["PropertyBased"]
)
],
traits: [
.default(enabledTraits: shrinkByDefault ? ["EnableShrinking"] : []),
.trait(
name: "EnableShrinking",
description:
"This trait enables the shrinker by default. Regardless of this trait being set, you can use the shrinking() TestTrait to enable/disable the shrinker on a case-by-case basis."
),
],
dependencies: [],
targets: [
.target(
name: "PropertyBased",
dependencies: [],
exclude: ["PropertyCheck+Pack.swift.gyb", "Zip.swift.gyb"]
),
.testTarget(
name: "PropertyBasedTests",
dependencies: ["PropertyBased"],
exclude: ["ZipTests.swift.gyb"]
),
]
)