|
| 1 | +// swift-tools-version: 6.1 |
| 2 | + |
| 3 | +import PackageDescription |
| 4 | + |
| 5 | +let package = Package( |
| 6 | + name: "swift-foundation-extensions", |
| 7 | + platforms: [ |
| 8 | + .macOS(.v10_15), |
| 9 | + .macCatalyst(.v13), |
| 10 | + .iOS(.v13), |
| 11 | + .tvOS(.v13), |
| 12 | + .watchOS(.v6) |
| 13 | + ], |
| 14 | + products: [ |
| 15 | + .library( |
| 16 | + name: "FoundationExtensions", |
| 17 | + targets: ["FoundationExtensions"] |
| 18 | + ), |
| 19 | + .library( |
| 20 | + name: "FoundationExtensionsMacros", |
| 21 | + targets: ["FoundationExtensionsMacros"] |
| 22 | + ), |
| 23 | + ], |
| 24 | + dependencies: [ |
| 25 | + .package( |
| 26 | + url: "https://github.com/capturecontext/swift-resettable.git", |
| 27 | + .upToNextMinor(from: "0.1.0") |
| 28 | + ), |
| 29 | + .package( |
| 30 | + url: "https://github.com/capturecontext/swift-equated.git", |
| 31 | + .upToNextMinor(from: "0.0.1") |
| 32 | + ), |
| 33 | + .package( |
| 34 | + url: "https://github.com/capturecontext/swift-associated-objects.git", |
| 35 | + .upToNextMinor(from: "0.1.0") |
| 36 | + ) |
| 37 | + ], |
| 38 | + targets: [ |
| 39 | + .target( |
| 40 | + name: "FoundationExtensions", |
| 41 | + dependencies: [ |
| 42 | + .product( |
| 43 | + name: "AssociatedObjects", |
| 44 | + package: "swift-associated-objects" |
| 45 | + ), |
| 46 | + .product( |
| 47 | + name: "Resettable", |
| 48 | + package: "swift-resettable" |
| 49 | + ), |
| 50 | + .product( |
| 51 | + name: "Equated", |
| 52 | + package: "swift-equated" |
| 53 | + ), |
| 54 | + ] |
| 55 | + ), |
| 56 | + .target( |
| 57 | + name: "FoundationExtensionsMacros", |
| 58 | + dependencies: [ |
| 59 | + .target(name: "FoundationExtensions"), |
| 60 | + .product( |
| 61 | + name: "AssociatedObjectsMacros", |
| 62 | + package: "swift-associated-objects" |
| 63 | + ), |
| 64 | + ] |
| 65 | + ), |
| 66 | + .testTarget( |
| 67 | + name: "FoundationExtensionsTests", |
| 68 | + dependencies: [ |
| 69 | + .target(name: "FoundationExtensions"), |
| 70 | + ] |
| 71 | + ), |
| 72 | + ] |
| 73 | +) |
0 commit comments