-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathPackage.swift
More file actions
executable file
·57 lines (54 loc) · 1.47 KB
/
Package.swift
File metadata and controls
executable file
·57 lines (54 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// swift-tools-version:5.3
//
// Package.swift
// Paseto
//
// Created by Aidan Woods on 04/03/2018.
// Copyright © 2017 Aidan Woods. All rights reserved.
//
import PackageDescription
let package = Package(
name: "Paseto",
platforms: [
// Same baseline as CryptoSwift
// Increased iOS, tvOS and watchOS because of ISO8601DateFormatter
.macOS(.v10_12), .iOS(.v10), .tvOS(.v10), .watchOS(.v3)
],
products: [
.library(name: "Paseto", targets: ["Paseto"]),
],
dependencies: [
.package(
name: "Sodium",
url: "https://github.com/aidantwoods/swift-sodium.git",
.branch("full-clibsodium-build")
),
.package(
url: "https://github.com/krzyzanowskim/CryptoSwift.git",
.upToNextMajor(from: "1.4.2")
),
.package(
url: "https://github.com/aidantwoods/TypedJSON.git",
.upToNextMinor(from: "0.1.2")
)
],
targets: [
.target(
name: "Paseto",
dependencies: [
.product(name: "Clibsodium", package: "Sodium"),
.product(name: "Sodium", package: "Sodium"),
"CryptoSwift",
"TypedJSON"
]
),
.testTarget(
name: "PasetoTests",
dependencies: ["Paseto"],
resources: [
.copy("TestVectors")
]
),
],
swiftLanguageVersions: [.v5]
)