stack/sdks/implementations/swift/Package.swift
Konstantin Wohlwend a64c59f759 Use Swift Crypto
2026-01-19 20:19:48 -08:00

38 lines
909 B
Swift

// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "StackAuth",
platforms: [
.iOS(.v15),
.macOS(.v12),
.watchOS(.v8),
.tvOS(.v15),
.visionOS(.v1)
],
products: [
.library(
name: "StackAuth",
targets: ["StackAuth"]
),
],
dependencies: [
// Cross-platform crypto (provides CryptoKit API on Linux)
.package(url: "https://github.com/apple/swift-crypto.git", from: "3.0.0"),
],
targets: [
.target(
name: "StackAuth",
dependencies: [
.product(name: "Crypto", package: "swift-crypto"),
],
path: "Sources/StackAuth"
),
.testTarget(
name: "StackAuthTests",
dependencies: ["StackAuth"],
path: "Tests/StackAuthTests"
),
]
)