1
- // swift-tools-version:5.5
1
+ // swift-tools-version:5.7
2
2
3
3
//===----------------------------------------------------------------------===//
4
4
//
@@ -55,13 +55,6 @@ automatic linking type with `-auto` suffix appended to product's name.
55
55
*/
56
56
let autoProducts = [ swiftPMProduct, swiftPMDataModelProduct]
57
57
58
- let useSwiftCryptoV2 = ProcessInfo . processInfo. environment [ " SWIFTPM_USE_SWIFT_CRYPTO_V1 " ] == nil
59
- let minimumCryptoVersion : Version = useSwiftCryptoV2 ? " 2.2.3 " : " 1.1.7 "
60
- var swiftSettings : [ SwiftSetting ] = [ ]
61
- if useSwiftCryptoV2 {
62
- swiftSettings. append ( . define( " CRYPTO_v2 " ) )
63
- }
64
-
65
58
var packageCollectionsSigningTargets = [ Target] ( )
66
59
var packageCollectionsSigningDeps : [ Target . Dependency ] = [
67
60
" Basics " ,
@@ -96,15 +89,14 @@ packageCollectionsSigningTargets.append(
96
89
. target(
97
90
/** Package collections signing */
98
91
name: " PackageCollectionsSigning " ,
99
- dependencies: packageCollectionsSigningDeps,
100
- swiftSettings: swiftSettings
92
+ dependencies: packageCollectionsSigningDeps
101
93
)
102
94
)
103
95
104
96
let package = Package (
105
97
name: " SwiftPM " ,
106
98
platforms: [
107
- . macOS( " 10.15.4 " ) ,
99
+ . macOS( . v12 ) ,
108
100
. iOS( " 13.4 " )
109
101
] ,
110
102
products:
@@ -710,7 +702,7 @@ let relatedDependenciesBranch = "main"
710
702
if ProcessInfo . processInfo. environment [ " SWIFTPM_LLBUILD_FWK " ] == nil {
711
703
if ProcessInfo . processInfo. environment [ " SWIFTCI_USE_LOCAL_DEPS " ] == nil {
712
704
package . dependencies += [
713
- . package ( url: " https://github.com/apple/swift-llbuild.git " , . branch( relatedDependenciesBranch) ) ,
705
+ . package ( url: " https://github.com/apple/swift-llbuild.git " , branch: relatedDependenciesBranch) ,
714
706
]
715
707
} else {
716
708
// In Swift CI, use a local path to llbuild to interoperate with tools
@@ -724,15 +716,16 @@ if ProcessInfo.processInfo.environment["SWIFTPM_LLBUILD_FWK"] == nil {
724
716
725
717
if ProcessInfo . processInfo. environment [ " SWIFTCI_USE_LOCAL_DEPS " ] == nil {
726
718
package . dependencies += [
727
- . package ( url: " https://github.com/apple/swift-tools-support-core.git " , . branch( relatedDependenciesBranch) ) ,
719
+ . package ( url: " https://github.com/apple/swift-tools-support-core.git " , branch: relatedDependenciesBranch) ,
728
720
// The 'swift-argument-parser' version declared here must match that
729
721
// used by 'swift-driver' and 'sourcekit-lsp'. Please coordinate
730
722
// dependency version changes here with those projects.
731
723
. package ( url: " https://github.com/apple/swift-argument-parser.git " , . upToNextMinor( from: " 1.2.2 " ) ) ,
732
- . package ( url: " https://github.com/apple/swift-driver.git " , . branch( relatedDependenciesBranch) ) ,
733
- . package ( url: " https://github.com/apple/swift-crypto.git " , . upToNextMinor( from: minimumCryptoVersion ) ) ,
724
+ . package ( url: " https://github.com/apple/swift-driver.git " , branch: relatedDependenciesBranch) ,
725
+ . package ( url: " https://github.com/apple/swift-crypto.git " , . upToNextMinor( from: " 2.3.0 " ) ) ,
734
726
. package ( url: " https://github.com/apple/swift-system.git " , . upToNextMinor( from: " 1.1.1 " ) ) ,
735
727
. package ( url: " https://github.com/apple/swift-collections.git " , . upToNextMinor( from: " 1.0.1 " ) ) ,
728
+ . package ( url: " https://github.com/apple/swift-certificates.git " , branch: " main " ) ,
736
729
]
737
730
} else {
738
731
package . dependencies += [
@@ -742,6 +735,7 @@ if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
742
735
. package ( path: " ../swift-crypto " ) ,
743
736
. package ( path: " ../swift-system " ) ,
744
737
. package ( path: " ../swift-collections " ) ,
738
+ . package ( path: " ../swift-certificates " ) ,
745
739
]
746
740
}
747
741
0 commit comments