Skip to content

Commit 40d6b55

Browse files
committed
Update to swift-tools-version:5.3
1 parent ebbfaa6 commit 40d6b55

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Package.swift

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:4.0
1+
// swift-tools-version:5.3
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
/*
@@ -20,16 +20,22 @@ let package = Package(
2020
],
2121
dependencies: [
2222
// Dependencies declare other packages that this package depends on.
23-
.package(url: "https://github.com/apple/example-package-deckofplayingcards.git", from: "3.0.0"),
23+
.package(name: "DeckOfPlayingCards",
24+
url: "https://github.com/apple/example-package-deckofplayingcards.git",
25+
from: "3.0.0"),
2426
],
2527
targets: [
2628
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
2729
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
2830
.target(
2931
name: "Dealer",
30-
dependencies: ["DeckOfPlayingCards"]),
32+
dependencies: [
33+
.byName(name: "DeckOfPlayingCards")
34+
]),
3135
.testTarget(
3236
name: "DealerTests",
33-
dependencies: ["Dealer"]),
37+
dependencies: [
38+
.byName(name: "Dealer")
39+
]),
3440
]
3541
)

0 commit comments

Comments
 (0)