Fix SwiftPM dependency warning for template project (#384)

Fix not to use deprecated method
This commit is contained in:
Tatsuyuki Kobayashi 2022-10-03 15:23:26 +09:00 committed by GitHub
parent 8227edf5aa
commit 94691a349b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -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")
),