4
4
import PackageDescription
5
5
6
6
let package = Package (
7
- name: " tkey_pkg " ,
7
+ name: " tkey-mpc-swift " ,
8
8
platforms: [
9
- . iOS( SupportedPlatform . IOSVersion . v14 ) ,
9
+ . iOS( . v13 ) , . macOS ( . v10_15 )
10
10
] ,
11
11
products: [
12
12
// Products define the executables and libraries a package produces, and make them visible to other packages.
13
13
. library(
14
- name: " ThresholdKey " ,
15
- targets: [ " tkey-pkg " ] ) ,
14
+ name: " tkey-mpc-swift " ,
15
+ targets: [ " tkey-mpc-swift " ] ) ,
16
16
] ,
17
17
dependencies: [
18
18
// Dependencies declare other packages that this package depends on.
19
19
// .package(url: /* package url */, from: "1.0.0"),
20
- . package ( name: " TorusUtils " , url: " https://github.com/torusresearch/torus-utils-swift " , from: " 6.1 .0" ) ,
20
+ . package ( name: " TorusUtils " , url: " https://github.com/torusresearch/torus-utils-swift " , from: " 7.0 .0" ) ,
21
21
// dev dependencies only
22
22
. package ( name: " CryptoSwift " , url: " https://github.com/krzyzanowskim/CryptoSwift.git " , from: " 1.5.1 " ) ,
23
23
. package ( name: " jwt-kit " , url: " https://github.com/vapor/jwt-kit.git " , from: " 4.0.0 " ) ,
@@ -28,18 +28,18 @@ let package = Package(
28
28
. binaryTarget( name: " libtkey " ,
29
29
path: " Sources/libtkey/libtkey.xcframework "
30
30
) ,
31
- . target( name: " lib " ,
31
+ . target( name: " tkey " ,
32
32
dependencies: [ " libtkey " ] ,
33
33
path: " Sources/libtkey "
34
34
) ,
35
35
. target(
36
- name: " tkey-pkg " ,
37
- dependencies: [ " lib " , " TorusUtils " ] ,
36
+ name: " tkey-mpc-swift " ,
37
+ dependencies: [ " tkey " , " TorusUtils " ] ,
38
38
path: " Sources/ThresholdKey "
39
39
) ,
40
40
. testTarget(
41
41
name: " tkey-pkgTests " ,
42
- dependencies: [ " tkey-pkg " , " CryptoSwift " , . product( name: " JWTKit " , package : " jwt-kit " ) ] ,
42
+ dependencies: [ " tkey-mpc-swift " , " CryptoSwift " , . product( name: " JWTKit " , package : " jwt-kit " ) ] ,
43
43
path: " Tests/tkeypkgTests "
44
44
) ,
45
45
]
0 commit comments