Skip to content

Commit 2c0e5ac

Browse files
committed
Update to Swift 4
1 parent 5228336 commit 2c0e5ac

File tree

4 files changed

+47
-4
lines changed

4 files changed

+47
-4
lines changed

Package.resolved

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// swift-tools-version:4.0
2+
13
/*
24
This source file is part of the Swift.org open source project
35

@@ -12,8 +14,19 @@ import PackageDescription
1214

1315
let package = Package(
1416
name: "DeckOfPlayingCards",
17+
products: [
18+
.library(name: "DeckOfPlayingCards", targets: ["DeckOfPlayingCards"]),
19+
],
1520
dependencies: [
16-
.Package(url: "https://github.com/apple/example-package-fisheryates.git", majorVersion: 2),
17-
.Package(url: "https://github.com/apple/example-package-playingcard.git", majorVersion: 3),
21+
.package(url: "https://github.com/apple/example-package-fisheryates.git", from: "2.0.0"),
22+
.package(url: "https://github.com/apple/example-package-playingcard.git", from: "3.0.0"),
23+
],
24+
targets: [
25+
.target(
26+
name: "DeckOfPlayingCards",
27+
dependencies: ["FisherYates", "PlayingCard"]),
28+
.testTarget(
29+
name: "DeckOfPlayingCardsTests",
30+
dependencies: ["DeckOfPlayingCards"]),
1831
]
1932
)

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ This example package will be cloned and built as a dependency if you build the `
22

33
git clone https://github.com/apple/example-package-dealer.git
44
cd example-package-dealer
5-
swift build
6-
.build/debug/Dealer
5+
swift run Dealer
76

87
# License
98

File renamed without changes.

0 commit comments

Comments
 (0)