-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from MatsMoll/develop
Updated Swift version and minor improvments
- Loading branch information
Showing
12 changed files
with
55 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5.1.2 | ||
5.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
// swift-tools-version:5.1 | ||
// swift-tools-version:5.2 | ||
import PackageDescription | ||
import Foundation | ||
|
||
var dependencies: [Package.Dependency] = [ | ||
// 💧 A server-side Swift web framework. | ||
.package(url: "https://github.com/vapor/vapor.git", from: "3.3.1"), | ||
.package(name: "Vapor", url: "https://github.com/vapor/vapor.git", from: "3.3.3"), | ||
|
||
// Encodes Form requests | ||
.package(url: "https://github.com/vapor/url-encoded-form.git", from: "1.0.0"), | ||
.package(name: "URLEncodedForm", url: "https://github.com/vapor/url-encoded-form.git", from: "1.0.0"), | ||
|
||
.package(url: "https://github.com/MatsMoll/htmlkit-vapor-3-provider.git", from: "1.0.0-beta.3"), | ||
.package(name: "HTMLKitVaporProvider", url: "https://github.com/MatsMoll/htmlkit-vapor-3-provider.git", from: "1.0.0-beta.3"), | ||
] | ||
|
||
|
||
|
@@ -25,19 +25,19 @@ case "LOCAL": | |
) | ||
case "DEV": | ||
dependencies.append(contentsOf: [ | ||
.package(url: "https://Kognita:[email protected]/MatsMoll/KognitaCore", .branch("develop")), | ||
.package(url: "https://Kognita:[email protected]/MatsMoll/KognitaPages", .branch("develop")), | ||
.package(url: "https://Kognita:[email protected]/MatsMoll/kognita-rest-api", .branch("develop")), | ||
.package(name: "KognitaCore", url: "https://Kognita:[email protected]/MatsMoll/KognitaCore", .branch("develop")), | ||
.package(name: "KognitaViews", url: "https://Kognita:[email protected]/MatsMoll/KognitaPages", .branch("develop")), | ||
.package(name: "KognitaAPI", url: "https://Kognita:[email protected]/MatsMoll/kognita-rest-api", .branch("develop")), | ||
] | ||
) | ||
default: | ||
let coreVersion = ProcessInfo.processInfo.environment["KOGNITA_CORE"] ?? "2.0.0" | ||
let pagesVersion = ProcessInfo.processInfo.environment["KOGNITA_PAGES"] ?? "2.0.0" | ||
let apiVersion = ProcessInfo.processInfo.environment["KOGNITA_API"] ?? "2.0.0" | ||
dependencies.append(contentsOf: [ | ||
.package(url: "https://Kognita:[email protected]/MatsMoll/KognitaCore", from: Version(stringLiteral: coreVersion)), | ||
.package(url: "https://Kognita:[email protected]/MatsMoll/KognitaPages", from: Version(stringLiteral: pagesVersion)), | ||
.package(url: "https://Kognita:[email protected]/MatsMoll/kognita-rest-api", from: Version(stringLiteral: apiVersion)), | ||
.package(name: "KognitaCore", url: "https://Kognita:[email protected]/MatsMoll/KognitaCore", from: Version(stringLiteral: coreVersion)), | ||
.package(name: "KognitaViews", url: "https://Kognita:[email protected]/MatsMoll/KognitaPages", from: Version(stringLiteral: pagesVersion)), | ||
.package(name: "KognitaAPI", url: "https://Kognita:[email protected]/MatsMoll/kognita-rest-api", from: Version(stringLiteral: apiVersion)), | ||
] | ||
) | ||
} | ||
|
@@ -50,15 +50,18 @@ let package = Package( | |
dependencies: dependencies, | ||
targets: [ | ||
.target(name: "App", dependencies: [ | ||
"KognitaCore", | ||
"KognitaViews", | ||
"KognitaAPI", | ||
"Vapor", | ||
"URLEncodedForm", | ||
"HTMLKitVaporProvider", | ||
.product(name: "Vapor", package: "Vapor"), | ||
.product(name: "KognitaCore", package: "KognitaCore"), | ||
.product(name: "KognitaViews", package: "KognitaViews"), | ||
.product(name: "KognitaAPI", package: "KognitaAPI"), | ||
.product(name: "URLEncodedForm", package: "URLEncodedForm"), | ||
.product(name: "HTMLKitVaporProvider", package: "HTMLKitVaporProvider"), | ||
]), | ||
.target(name: "Run", dependencies: ["App"]), | ||
.testTarget(name: "AppTests", dependencies: ["App", "KognitaCoreTestable"]) | ||
.testTarget(name: "AppTests", dependencies: [ | ||
.target(name: "App"), | ||
.product(name: "KognitaCoreTestable", package: "KognitaCore"), | ||
]) | ||
] | ||
) | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.