Skip to content

Commit 78c9f7a

Browse files
committed
Added support for swift-tools-version:5.2
1 parent 87ef0ed commit 78c9f7a

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,10 @@ xcuserdata/
2222

2323
# Carthage
2424
Carthage/
25+
26+
# Swift Package Manager
27+
#
28+
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
29+
# Packages/
30+
# Package.pins
31+
.build/

Package.swift

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
1+
// swift-tools-version:5.2
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
14
import PackageDescription
25

36
let package = Package(
4-
name: "SwiftyTimer",
5-
dependencies: [],
6-
exclude: ["Sources/Info.plist", "Sources/SwiftyTimer.h", "SwiftyTimerTests"]
7-
8-
)
7+
name: "SwiftyTimer",
8+
products: [
9+
// Products define the executables and libraries produced by a package, and make them visible to other packages.
10+
.library(
11+
name: "SwiftyTimer",
12+
targets: ["SwiftyTimer"]),
13+
],
14+
dependencies: [
15+
// Dependencies declare other packages that this package depends on.
16+
// .package(url: /* package url */, from: "1.0.0"),
17+
],
18+
targets: [
19+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
20+
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
21+
.target(
22+
name: "SwiftyTimer",
23+
dependencies: []),
24+
]
25+
)

0 commit comments

Comments
 (0)