-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPackage.swift
More file actions
56 lines (54 loc) · 2.08 KB
/
Package.swift
File metadata and controls
56 lines (54 loc) · 2.08 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
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "SwiftMnemonic",
platforms: [
.iOS(.v14),
.macOS(.v11),
.watchOS(.v7),
.tvOS(.v14),
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "SwiftMnemonic",
targets: ["SwiftMnemonic"]),
],
dependencies: [
.package(url: "https://github.com/tesseract-one/UncommonCrypto.swift.git", .upToNextMinor(from: "0.2.1")),
.package(url: "https://github.com/KINGH242/swift-base58.git", from: "0.1.2")
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "SwiftMnemonic",
dependencies: [
.product(name: "UncommonCrypto", package: "UncommonCrypto.swift"),
.product(name: "SwiftBase58", package: "swift-base58")
],
resources: [
.embedInCode("wordlist/chinese_simplified.txt"),
.embedInCode("wordlist/chinese_traditional.txt"),
.embedInCode("wordlist/czech.txt"),
.embedInCode("wordlist/english.txt"),
.embedInCode("wordlist/french.txt"),
.embedInCode("wordlist/italian.txt"),
.embedInCode("wordlist/japanese.txt"),
.embedInCode("wordlist/korean.txt"),
.embedInCode("wordlist/portuguese.txt"),
.embedInCode("wordlist/russian.txt"),
.embedInCode("wordlist/spanish.txt"),
.embedInCode("wordlist/turkish.txt"),
]
),
.testTarget(
name: "SwiftMnemonicTests",
dependencies: ["SwiftMnemonic"],
resources: [
.copy("data")
]
),
]
)