Skip to content

Commit 7973cea

Browse files
committed
Update package to Swift 4
1 parent ca261c5 commit 7973cea

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/.build
33
/Packages
44
/*.xcodeproj
5+
Package.resolved

Package.swift

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// swift-tools-version:4.0
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
14
/*
25
This source file is part of the Swift.org open source project
36

@@ -11,8 +14,19 @@
1114
import PackageDescription
1215

1316
let package = Package(
14-
name: "Dealer",
17+
name: "dealer",
18+
products: [
19+
.executable(name: "Dealer", targets: ["Dealer"]),
20+
],
1521
dependencies: [
16-
.Package(url: "https://github.com/apple/example-package-deckofplayingcards.git", majorVersion: 3),
22+
// Dependencies declare other packages that this package depends on.
23+
.package(url: "https://github.com/apple/example-package-deckofplayingcards.git", from: "3.0.0"),
24+
],
25+
targets: [
26+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
27+
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
28+
.target(
29+
name: "Dealer",
30+
dependencies: ["DeckOfPlayingCards"]),
1731
]
1832
)
File renamed without changes.

0 commit comments

Comments
 (0)