From 94691a349bd0b83eabdac49fc35daf93c8ff92ca Mon Sep 17 00:00:00 2001 From: Tatsuyuki Kobayashi Date: Mon, 3 Oct 2022 15:23:26 +0900 Subject: [PATCH] Fix SwiftPM dependency warning for template project (#384) Fix not to use deprecated method --- Sources/CartonKit/Model/Template.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Sources/CartonKit/Model/Template.swift b/Sources/CartonKit/Model/Template.swift index 3aad808..7aa05a1 100644 --- a/Sources/CartonKit/Model/Template.swift +++ b/Sources/CartonKit/Model/Template.swift @@ -42,7 +42,6 @@ enum TemplateError: Error { } struct PackageDependency: CustomStringConvertible { - let name: String let url: String let version: Version @@ -60,7 +59,7 @@ struct PackageDependency: CustomStringConvertible { } var description: String { - #".package(name: "\#(name)", url: "\#(url)", \#(version))"# + #".package(url: "\#(url)", \#(version))"# } } @@ -143,7 +142,6 @@ extension Templates { project: project, dependencies: [ .init( - name: "JavaScriptKit", url: "https://github.com/swiftwasm/JavaScriptKit", version: .from(compatibleJSKitVersion.description) ), @@ -177,7 +175,6 @@ extension Templates { platforms: [".macOS(.v11)", ".iOS(.v13)"], dependencies: [ .init( - name: "Tokamak", url: "https://github.com/TokamakUI/Tokamak", version: .from("0.11.0") ),