Skip to content

Commit

Permalink
Update Swift version to 5.4 (same as Vapor itself) and the Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsteinerde committed Jan 2, 2023
1 parent f63b100 commit be78929
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
18 changes: 9 additions & 9 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.1
// swift-tools-version:5.4
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand All @@ -9,10 +9,7 @@ let package = Package(
.macOS(.v10_15)
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "GraphiQLVapor",
targets: ["GraphiQLVapor"]),
.library(name: "GraphiQLVapor", targets: ["GraphiQLVapor"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
Expand All @@ -23,9 +20,12 @@ let package = Package(
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "GraphiQLVapor",
dependencies: ["Vapor"]),
.testTarget(
name: "GraphiQLVaporTests",
dependencies: ["GraphiQLVapor", "Vapor", "XCTVapor"]),
dependencies: [
.product(name: "Vapor", package: "vapor"),
]),
.testTarget(name: "GraphiQLVaporTests", dependencies: [
.target(name: "GraphiQLVapor"),
.product(name: "XCTVapor", package: "vapor"),
]),
]
)
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# GraphiQLVapor
[![Language](https://img.shields.io/badge/Swift-5.1-brightgreen.svg)](http://swift.org)
[![Language](https://img.shields.io/badge/Swift-5.4-brightgreen.svg)](http://swift.org)
[![Vapor Version](https://img.shields.io/badge/Vapor-4-F6CBCA.svg)](http://vapor.codes)
[![build](https://github.com/alexsteinerde/graphiql-vapor/workflows/build/badge.svg)](https://github.com/alexsteinerde/graphiql-vapor/actions)

Expand All @@ -11,10 +11,15 @@ import PackageDescription

let package = Package(
dependencies: [
.package(url: "https://github.com/alexsteinerde/graphiql-vapor.git", from: "2.0.0"),
.package(url: "https://github.com/alexsteinerde/graphiql-vapor.git", from: "2.2.0"),
],
targets: [
.target(name: "App", dependencies: ["GraphiQLVapor"]),
.target(
name: "App",
dependencies: [
.product(name: "GraphiQLVapor", package: "graphiql-vapor"),
]
),
...
]
)
Expand Down

0 comments on commit be78929

Please sign in to comment.