-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
67 lines (53 loc) · 2.03 KB
/
Package.swift
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
58
59
60
61
62
63
64
65
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
/*
ton-sdk-swift-smc – commonly used tvm contracts swift package
Copyright (C) 2023 Oleh Hudeichuk
This file is part of ton-sdk-swift-smc.
ton-sdk-swift-smc is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
ton-sdk-swift-smc is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with ton-sdk-swift-smc. If not, see <https://www.gnu.org/licenses/>.
*/
import PackageDescription
let name: String = "TonSdkSwiftSmc"
var packageDependencies: [Package.Dependency] = [
.package(url: "https://github.com/nerzh/ton-sdk-swift.git", .upToNextMajor(from: "1.0.0")),
.package(url: "https://github.com/nerzh/swift-extensions-pack.git", .upToNextMajor(from: "1.19.1")),
]
var mainTarget: [Target.Dependency] = [
.product(name: "TonSdkSwift", package: "ton-sdk-swift"),
.product(name: "SwiftExtensionsPack", package: "swift-extensions-pack"),
]
var testTarget: [Target.Dependency] = mainTarget + [
.init(stringLiteral: name)
]
let package = Package(
name: name,
platforms: [
.macOS(.v13),
.iOS(.v13)
],
products: [
.library(
name: name,
targets: [name]),
],
dependencies: packageDependencies,
targets: [
.target(
name: name,
dependencies: mainTarget
),
.testTarget(
name: "\(name)Tests",
dependencies: testTarget
),
]
)