|
| 1 | +// swift-tools-version: 6.1 |
| 2 | + |
| 3 | +import PackageDescription |
| 4 | + |
| 5 | +let package = Package( |
| 6 | + name: "swift-custom-dump", |
| 7 | + platforms: [ |
| 8 | + .iOS(.v13), |
| 9 | + .macOS(.v10_15), |
| 10 | + .tvOS(.v13), |
| 11 | + .watchOS(.v6), |
| 12 | + ], |
| 13 | + products: [ |
| 14 | + .library( |
| 15 | + name: "CustomDump", |
| 16 | + targets: ["CustomDump"] |
| 17 | + ) |
| 18 | + ], |
| 19 | + traits: [ |
| 20 | + "FoundationNetworking", |
| 21 | + .default(enabledTraits: ["FoundationNetworking"]), |
| 22 | + ], |
| 23 | + dependencies: [ |
| 24 | + .package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", branch: "xcode-26-fix") |
| 25 | + ], |
| 26 | + targets: [ |
| 27 | + .target( |
| 28 | + name: "CustomDump", |
| 29 | + dependencies: [ |
| 30 | + .product(name: "IssueReporting", package: "xctest-dynamic-overlay"), |
| 31 | + ] |
| 32 | + ), |
| 33 | + .testTarget( |
| 34 | + name: "CustomDumpTests", |
| 35 | + dependencies: [ |
| 36 | + "CustomDump", |
| 37 | + .product(name: "IssueReportingTestSupport", package: "xctest-dynamic-overlay"), |
| 38 | + ] |
| 39 | + ), |
| 40 | + ] |
| 41 | +) |
| 42 | + |
| 43 | +for target in package.targets { |
| 44 | + target.swiftSettings = target.swiftSettings ?? [] |
| 45 | + target.swiftSettings?.append(contentsOf: [ |
| 46 | + .enableUpcomingFeature("ExistentialAny"), |
| 47 | + .enableUpcomingFeature("ImmutableWeakCaptures"), |
| 48 | + .enableUpcomingFeature("InferIsolatedConformances"), |
| 49 | + .enableUpcomingFeature("InternalImportsByDefault"), |
| 50 | + .enableUpcomingFeature("MemberImportVisibility"), |
| 51 | + .enableUpcomingFeature("NonisolatedNonsendingByDefault"), |
| 52 | + ]) |
| 53 | +} |
0 commit comments