-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Support Swift 6.0 chore: Update dependencies
- Loading branch information
Showing
8 changed files
with
79 additions
and
45 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// swift-tools-version: 6.0 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
extension [Platform] { | ||
static let darwin: [Platform] = [.macOS, .macCatalyst, .iOS, .tvOS, .watchOS, .custom("visionos")] | ||
static let nonDarwin: [Platform] = [.linux, .android, .windows, .wasi, .openbsd] | ||
} | ||
|
||
let package = Package( | ||
name: "JWSETKit", | ||
defaultLocalization: "en", | ||
platforms: [ | ||
.iOS(.v14), | ||
.macOS(.v11), | ||
.tvOS(.v14), | ||
.macCatalyst(.v14), | ||
], | ||
products: [ | ||
.library( | ||
name: "JWSETKit", | ||
targets: ["JWSETKit"] | ||
), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/Flight-School/AnyCodable", .upToNextMajor(from: "0.6.7")), | ||
.package(url: "https://github.com/apple/swift-asn1.git", .upToNextMajor(from: "1.2.0")), | ||
.package(url: "https://github.com/apple/swift-crypto.git", .upToNextMajor(from: "3.5.0")), | ||
.package(url: "https://github.com/apple/swift-certificates", .upToNextMajor(from: "1.5.0")), | ||
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", .upToNextMajor(from: "1.8.2")), | ||
.package(url: "https://github.com/tsolomko/SWCompression.git", .upToNextMajor(from: "4.8.6")), | ||
], | ||
targets: [ | ||
.target( | ||
name: "JWSETKit", | ||
dependencies: [ | ||
"AnyCodable", | ||
.product(name: "SwiftASN1", package: "swift-asn1"), | ||
.product(name: "X509", package: "swift-certificates"), | ||
// Linux support | ||
.product(name: "Crypto", package: "swift-crypto"), | ||
.product(name: "_CryptoExtras", package: "swift-crypto", condition: .when(platforms: .nonDarwin)), | ||
.product(name: "CryptoSwift", package: "CryptoSwift", condition: .when(platforms: .nonDarwin)), | ||
.product(name: "SWCompression", package: "SWCompression", condition: .when(platforms: .nonDarwin)), | ||
], | ||
resources: [ | ||
.process("PrivacyInfo.xcprivacy"), | ||
] | ||
), | ||
.testTarget( | ||
name: "JWSETKitTests", | ||
dependencies: ["JWSETKit"] | ||
), | ||
] | ||
) | ||
|
||
for target in package.targets { | ||
target.swiftSettings = [ | ||
.enableUpcomingFeature("ExistentialAny"), | ||
] | ||
} |
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
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