From 11553c1a5e9982cbcdfac976a4c135a7501223f8 Mon Sep 17 00:00:00 2001 From: "novr (Nobuhisa Komiya)" Date: Wed, 29 Nov 2023 14:16:14 +0900 Subject: [PATCH] update: swift settings --- Package.swift | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Package.swift b/Package.swift index e2e84d0..0458d5f 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.3 +// swift-tools-version:5.7 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription @@ -9,21 +9,26 @@ let package = Package( // Products define the executables and libraries produced by a package, and make them visible to other packages. .library( name: "DangerSwiftShoki", + type: .dynamic, targets: ["DangerSwiftShoki"]), ], dependencies: [ // Dependencies declare other packages that this package depends on. // .package(url: /* package url */, from: "1.0.0"), - .package(name: "danger-swift", url: "https://github.com/danger/swift.git", from: "3.0.0"), + .package(url: "https://github.com/danger/swift.git", from: "3.0.0"), ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages which this package depends on. .target( name: "DangerSwiftShoki", - dependencies: [.product(name: "Danger", package: "danger-swift")]), + dependencies: [ + .product(name: "Danger", package: "swift") + ] + ), .testTarget( name: "DangerSwiftShokiTests", - dependencies: ["DangerSwiftShoki"]), + dependencies: ["DangerSwiftShoki"] + ), ] )