Skip to content

Commit 46c81dc

Browse files
committed
switched from cryptokit to crypto
1 parent 64c2e57 commit 46c81dc

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

Package.resolved

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"object": {
3+
"pins": [
4+
{
5+
"package": "swift-crypto",
6+
"repositoryURL": "https://github.com/apple/swift-crypto.git",
7+
"state": {
8+
"branch": null,
9+
"revision": "3bea268b223651c4ab7b7b9ad62ef9b2d4143eb6",
10+
"version": "1.1.6"
11+
}
12+
}
13+
]
14+
},
15+
"version": 1
16+
}

Package.swift

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ let package = Package(
1515
dependencies: [
1616
// Dependencies declare other packages that this package depends on.
1717
// .package(url: /* package url */, from: "1.0.0"),
18+
.package(url: "https://github.com/apple/swift-crypto.git",
19+
from: "1.1.2"),
1820
],
1921
targets: [
2022
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
2123
// Targets can depend on other targets in this package, and on products in packages this package depends on.
2224
.target(
2325
name: "Keychain",
24-
dependencies: []),
26+
dependencies: [
27+
.product(name: "Crypto", package: "swift-crypto"),
28+
]),
2529
.testTarget(
2630
name: "KeychainTests",
2731
dependencies: ["Keychain"]),

Sources/Keychain/Keychain.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import CryptoKit
2+
import Crypto
33
import Foundation
44

55

0 commit comments

Comments
 (0)