Skip to content

Commit

Permalink
Merge pull request #9 from MihaelIsaev/master
Browse files Browse the repository at this point in the history
Upgrade to Vapor4 🚀
  • Loading branch information
twof authored Mar 3, 2020
2 parents 9a137b5 + 7de0e81 commit 7b235a4
Show file tree
Hide file tree
Showing 16 changed files with 271 additions and 260 deletions.
43 changes: 0 additions & 43 deletions .circleci/config.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: test
on: [push, pull_request]
jobs:
vapor_xenial:
container:
image: vapor/swift:5.2-xenial
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: swift test --enable-test-discovery --sanitize=thread
vapor_bionic:
container:
image: vapor/swift:5.2-bionic
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: swift test --enable-test-discovery --sanitize=thread
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ xcuserdata
*.xcodeproj
DerivedData/
.DS_Store
.swiftpm
133 changes: 53 additions & 80 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -2,156 +2,129 @@
"object": {
"pins": [
{
"package": "Console",
"repositoryURL": "https://github.com/vapor/console.git",
"package": "async-http-client",
"repositoryURL": "https://github.com/swift-server/async-http-client.git",
"state": {
"branch": null,
"revision": "d6cf07af59ae63cd95c4b5f98cf1f25627750fd1",
"version": "3.1.0"
"revision": "e2636a4c24e646d3e480fc666da0c090818beb09",
"version": "1.1.0"
}
},
{
"package": "Core",
"repositoryURL": "https://github.com/vapor/core.git",
"package": "async-kit",
"repositoryURL": "https://github.com/vapor/async-kit.git",
"state": {
"branch": null,
"revision": "96ce86ebf9198328795c4b9cb711489460be083c",
"version": "3.4.4"
"revision": "094dad1142e4e272a328ab44edd39730f246fb3e",
"version": "1.0.0-rc.1"
}
},
{
"package": "Crypto",
"repositoryURL": "https://github.com/vapor/crypto.git",
"package": "console-kit",
"repositoryURL": "https://github.com/vapor/console-kit.git",
"state": {
"branch": null,
"revision": "5605334590affd4785a5839806b4504407e054ac",
"version": "3.3.0"
"revision": "de99d83c9f3c298371002729cc0601e4b5d9e0c9",
"version": "4.0.0-rc.1"
}
},
{
"package": "DatabaseKit",
"repositoryURL": "https://github.com/vapor/database-kit.git",
"package": "routing-kit",
"repositoryURL": "https://github.com/vapor/routing-kit.git",
"state": {
"branch": null,
"revision": "3a17dbbe9be5f8c37703e4b7982c1332ad6b00c4",
"version": "1.3.1"
"revision": "dbc3eafdbe243e9a46eeb6fd7d99266bee52f89f",
"version": "4.0.0-rc.1"
}
},
{
"package": "HTTP",
"repositoryURL": "https://github.com/vapor/http.git",
"package": "swift-backtrace",
"repositoryURL": "https://github.com/swift-server/swift-backtrace.git",
"state": {
"branch": null,
"revision": "6973bf50dab8dd00e4daf8cb82ca72b33f5db016",
"version": "3.1.6"
"revision": "eaf2cef011c0c23d1701aa60b364def8015dc3c7",
"version": "1.1.1"
}
},
{
"package": "Multipart",
"repositoryURL": "https://github.com/vapor/multipart.git",
"package": "swift-crypto",
"repositoryURL": "https://github.com/apple/swift-crypto.git",
"state": {
"branch": null,
"revision": "e57007c23a52b68e44ebdfc70cbe882a7c4f1ec3",
"version": "3.0.2"
"revision": "9be4a93a76d4b80105044747b35d456de7289c87",
"version": "1.0.0"
}
},
{
"package": "Routing",
"repositoryURL": "https://github.com/vapor/routing.git",
"package": "swift-log",
"repositoryURL": "https://github.com/apple/swift-log.git",
"state": {
"branch": null,
"revision": "3219e328491b0853b8554c5a694add344d2c6cfb",
"version": "3.0.1"
"revision": "74d7b91ceebc85daf387ebb206003f78813f71aa",
"version": "1.2.0"
}
},
{
"package": "Service",
"repositoryURL": "https://github.com/vapor/service.git",
"package": "swift-metrics",
"repositoryURL": "https://github.com/apple/swift-metrics.git",
"state": {
"branch": null,
"revision": "281a70b69783891900be31a9e70051b6fe19e146",
"version": "1.0.0"
"revision": "09b72f68ed9b01b614c12855fc7e22876b97a97e",
"version": "1.2.1"
}
},
{
"package": "swift-nio",
"repositoryURL": "https://github.com/apple/swift-nio.git",
"state": {
"branch": null,
"revision": "a20e129c22ad00a51c902dca54a5456f90664780",
"version": "1.12.0"
}
},
{
"package": "swift-nio-ssl",
"repositoryURL": "https://github.com/apple/swift-nio-ssl.git",
"state": {
"branch": null,
"revision": "db16c3a90b101bb53b26a58867a344ad428072e0",
"version": "1.3.2"
"revision": "16ab4d657e1ad4e77bd5f8b94af8538561643053",
"version": "2.14.0"
}
},
{
"package": "swift-nio-ssl-support",
"repositoryURL": "https://github.com/apple/swift-nio-ssl-support.git",
"package": "swift-nio-extras",
"repositoryURL": "https://github.com/apple/swift-nio-extras.git",
"state": {
"branch": null,
"revision": "c02eec4e0e6d351cd092938cf44195a8e669f555",
"version": "1.0.0"
"revision": "b4dbfacff47fb8d0f9e0a422d8d37935a9f10570",
"version": "1.4.0"
}
},
{
"package": "swift-nio-zlib-support",
"repositoryURL": "https://github.com/apple/swift-nio-zlib-support.git",
"package": "swift-nio-http2",
"repositoryURL": "https://github.com/apple/swift-nio-http2.git",
"state": {
"branch": null,
"revision": "37760e9a52030bb9011972c5213c3350fa9d41fd",
"version": "1.0.0"
"revision": "65ebab9db70623bf1b58305edaa26ee5629856ed",
"version": "1.9.1"
}
},
{
"package": "TemplateKit",
"repositoryURL": "https://github.com/vapor/template-kit.git",
"state": {
"branch": null,
"revision": "aff2d6fc65bfd04579b0201b31a8d6720239c1cf",
"version": "1.1.1"
}
},
{
"package": "URLEncodedForm",
"repositoryURL": "https://github.com/vapor/url-encoded-form.git",
"state": {
"branch": null,
"revision": "932024f363ee5ff59059cf7d67194a1c271d3d0c",
"version": "1.0.5"
}
},
{
"package": "Validation",
"repositoryURL": "https://github.com/vapor/validation.git",
"package": "swift-nio-ssl",
"repositoryURL": "https://github.com/apple/swift-nio-ssl.git",
"state": {
"branch": null,
"revision": "4de213cf319b694e4ce19e5339592601d4dd3ff6",
"version": "2.1.1"
"revision": "af46d9b58fafbb76f9b01177568d435a1b024f99",
"version": "2.6.2"
}
},
{
"package": "Vapor",
"package": "vapor",
"repositoryURL": "https://github.com/vapor/vapor.git",
"state": {
"branch": null,
"revision": "157d3b15336caa882662cc75024dd04b2e225246",
"version": "3.1.0"
"revision": "0613ee957463e92bf248197ad95e3246805bf6a5",
"version": "4.0.0-rc.1"
}
},
{
"package": "WebSocket",
"repositoryURL": "https://github.com/vapor/websocket.git",
"package": "websocket-kit",
"repositoryURL": "https://github.com/vapor/websocket-kit.git",
"state": {
"branch": null,
"revision": "eb4277f75f1d96a3d15c852cdd89af1799093dcd",
"version": "1.1.0"
"revision": "aac462481bcd3039d5db9a0fbe7f4e47eefe2295",
"version": "2.0.0-rc.1"
}
}
]
Expand Down
26 changes: 19 additions & 7 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// swift-tools-version:4.0
// swift-tools-version:5.2
import PackageDescription

let package = Package(
name: "Twilio",
name: "VaporTwilioService",
platforms: [
.macOS(.v10_15)
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
Expand All @@ -11,12 +14,21 @@ let package = Package(
],
dependencies: [
// 💧 A server-side Swift web framework.
.package(url: "https://github.com/vapor/vapor.git", from: "3.0.0")
.package(url: "https://github.com/vapor/vapor.git", from: "4.0.0-rc")
],
targets: [
.target(name: "Twilio", dependencies: ["Vapor"]),
.target(name: "ExampleApp", dependencies: ["Vapor", "Twilio"]),
.target(name: "ExampleRun", dependencies: ["ExampleApp"]),
.testTarget(name: "TwilioTests", dependencies: ["Twilio"])
.target(name: "Twilio", dependencies: [
.product(name: "Vapor", package: "vapor"),
]),
.target(name: "ExampleApp", dependencies: [
.target(name: "Twilio"),
.product(name: "Vapor", package: "vapor"),
]),
.target(name: "ExampleRun", dependencies: [
.target(name: "ExampleApp"),
]),
.testTarget(name: "TwilioTests", dependencies: [
.target(name: "Twilio"),
])
]
)
Loading

0 comments on commit 7b235a4

Please sign in to comment.