Skip to content

Commit

Permalink
here NW go
Browse files Browse the repository at this point in the history
  • Loading branch information
saroar committed Sep 22, 2022
1 parent 66e717d commit d22f805
Show file tree
Hide file tree
Showing 34 changed files with 1,940 additions and 3 deletions.
311 changes: 311 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,311 @@
{
"pins" : [
{
"identity" : "async-http-client",
"kind" : "remoteSourceControl",
"location" : "https://github.com/swift-server/async-http-client.git",
"state" : {
"revision" : "fc510a39cff61b849bf5cdff17eb2bd6d0777b49",
"version" : "1.11.5"
}
},
{
"identity" : "async-kit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/vapor/async-kit.git",
"state" : {
"revision" : "c3329e444bafbb12d1d312af9191be95348a8175",
"version" : "1.13.0"
}
},
{
"identity" : "bson",
"kind" : "remoteSourceControl",
"location" : "https://github.com/OpenKitten/BSON.git",
"state" : {
"revision" : "40956d97c36aa166b8baea5add897864e1568a78",
"version" : "7.0.29"
}
},
{
"identity" : "console-kit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/vapor/console-kit.git",
"state" : {
"revision" : "a7e67a1719933318b5ab7eaaed355cde020465b1",
"version" : "4.5.0"
}
},
{
"identity" : "fluent",
"kind" : "remoteSourceControl",
"location" : "https://github.com/vapor/fluent.git",
"state" : {
"revision" : "26c446002f03c5ab34b20d86873014ef3d92d0da",
"version" : "4.5.0"
}
},
{
"identity" : "fluent-kit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/vapor/fluent-kit.git",
"state" : {
"revision" : "38670d2eefcba27530272946d627ac8d4e45f017",
"version" : "1.35.1"
}
},
{
"identity" : "fluent-mongo-driver",
"kind" : "remoteSourceControl",
"location" : "https://github.com/vapor/fluent-mongo-driver.git",
"state" : {
"revision" : "e96cf416e4a224cf9f104c930abaa8b69fb4d8cd",
"version" : "1.1.2"
}
},
{
"identity" : "jwt",
"kind" : "remoteSourceControl",
"location" : "https://github.com/vapor/jwt.git",
"state" : {
"revision" : "506d238a707c0e7c1d2cf690863902eaf3bc4e94",
"version" : "4.2.1"
}
},
{
"identity" : "jwt-kit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/vapor/jwt-kit.git",
"state" : {
"revision" : "87ce13a1df913ba4d51cf00606df7ef24d455571",
"version" : "4.7.0"
}
},
{
"identity" : "mongokitten",
"kind" : "remoteSourceControl",
"location" : "https://github.com/OpenKitten/MongoKitten.git",
"state" : {
"revision" : "f2d245e50143e9d940566dd2d20914c040f34b9f",
"version" : "6.7.6"
}
},
{
"identity" : "multipart-kit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/vapor/multipart-kit.git",
"state" : {
"revision" : "0d55c35e788451ee27222783c7d363cb88092fab",
"version" : "4.5.2"
}
},
{
"identity" : "niodns",
"kind" : "remoteSourceControl",
"location" : "https://github.com/OpenKitten/NioDNS.git",
"state" : {
"revision" : "5d1c701127f1d399cfb27c38aeb40bfde40df004",
"version" : "2.1.1"
}
},
{
"identity" : "routing-kit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/vapor/routing-kit.git",
"state" : {
"revision" : "ffac7b3a127ce1e85fb232f1a6271164628809ad",
"version" : "4.6.0"
}
},
{
"identity" : "sql-kit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/vapor/sql-kit.git",
"state" : {
"revision" : "3c5413a229bc2abc962dab17ea66d25e448ad344",
"version" : "3.21.0"
}
},
{
"identity" : "swift-algorithms",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-algorithms.git",
"state" : {
"revision" : "b14b7f4c528c942f121c8b860b9410b2bf57825e",
"version" : "1.0.0"
}
},
{
"identity" : "swift-atomics",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-atomics.git",
"state" : {
"revision" : "919eb1d83e02121cdb434c7bfc1f0c66ef17febe",
"version" : "1.0.2"
}
},
{
"identity" : "swift-backtrace",
"kind" : "remoteSourceControl",
"location" : "https://github.com/swift-server/swift-backtrace.git",
"state" : {
"revision" : "f25620d5d05e2f1ba27154b40cafea2b67566956",
"version" : "1.3.3"
}
},
{
"identity" : "swift-case-paths",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-case-paths",
"state" : {
"revision" : "7346701ea29da0a85d4403cf3d7a589a58ae3dee",
"version" : "0.9.2"
}
},
{
"identity" : "swift-collections",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-collections.git",
"state" : {
"revision" : "f504716c27d2e5d4144fa4794b12129301d17729",
"version" : "1.0.3"
}
},
{
"identity" : "swift-crypto",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-crypto.git",
"state" : {
"revision" : "d9825fa541df64b1a7b182178d61b9a82730d01f",
"version" : "2.1.0"
}
},
{
"identity" : "swift-log",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-log.git",
"state" : {
"revision" : "6fe203dc33195667ce1759bf0182975e4653ba1c",
"version" : "1.4.4"
}
},
{
"identity" : "swift-metrics",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-metrics.git",
"state" : {
"revision" : "53be78637ecd165d1ddedc4e20de69b8f43ec3b7",
"version" : "2.3.2"
}
},
{
"identity" : "swift-nio",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-nio.git",
"state" : {
"revision" : "b4e0a274f7f34210e97e2f2c50ab02a10b549250",
"version" : "2.41.1"
}
},
{
"identity" : "swift-nio-extras",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-nio-extras.git",
"state" : {
"revision" : "6c84d247754ad77487a6f0694273b89b83efd056",
"version" : "1.14.0"
}
},
{
"identity" : "swift-nio-http2",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-nio-http2.git",
"state" : {
"revision" : "f9ab1c94c80d568efd762d2a638f25162691d766",
"version" : "1.22.1"
}
},
{
"identity" : "swift-nio-ssl",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-nio-ssl.git",
"state" : {
"revision" : "ba7c0d7f82affc518147ea61d240330bf7f7ea9b",
"version" : "2.22.1"
}
},
{
"identity" : "swift-nio-transport-services",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-nio-transport-services.git",
"state" : {
"revision" : "4e02d9cf35cabfb538c96613272fb027dd0c8692",
"version" : "1.13.1"
}
},
{
"identity" : "swift-numerics",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-numerics",
"state" : {
"revision" : "0a5bc04095a675662cf24757cc0640aa2204253b",
"version" : "1.0.2"
}
},
{
"identity" : "swift-parsing",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-parsing.git",
"state" : {
"revision" : "bc92e84968990b41640214b636667f35b6e5d44c",
"version" : "0.10.0"
}
},
{
"identity" : "swift-url-routing",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-url-routing.git",
"state" : {
"revision" : "80e8a0257ccdd639e31f709954ceca6b690fdc67",
"version" : "0.3.1"
}
},
{
"identity" : "vapor",
"kind" : "remoteSourceControl",
"location" : "https://github.com/vapor/vapor.git",
"state" : {
"revision" : "dda0de537e7906414dccd551e77095be1e34e3da",
"version" : "4.65.2"
}
},
{
"identity" : "vapor-routing",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/vapor-routing.git",
"state" : {
"revision" : "f07b4d7618bf48b450ed11c9f85b74ba8b9bae6c",
"version" : "0.1.1"
}
},
{
"identity" : "websocket-kit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/vapor/websocket-kit.git",
"state" : {
"revision" : "2d9d2188a08eef4a869d368daab21b3c08510991",
"version" : "2.6.1"
}
},
{
"identity" : "xctest-dynamic-overlay",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/xctest-dynamic-overlay",
"state" : {
"revision" : "30314f1ece684dd60679d598a9b89107557b67d9",
"version" : "0.4.1"
}
}
],
"version" : 2
}
59 changes: 56 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,75 @@ import PackageDescription

let package = Package(
name: "NWSharedModels",
platforms: [
.iOS(.v13),
.macOS(.v12)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "NWSharedModels",
targets: ["NWSharedModels"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(url: "https://github.com/vapor/vapor.git", from: "4.62.1"),
.package(url: "https://github.com/vapor/fluent.git", from: "4.4.0"),
.package(url: "https://github.com/vapor/fluent-mongo-driver.git", from: "1.1.2"),
.package(url: "https://github.com/vapor/jwt.git", from: "4.2.1"),

// Route
.package(url: "https://github.com/pointfreeco/vapor-routing.git", from: "0.1.1"),
// .package(url: "https://github.com/pointfreeco/swift-parsing.git", from: "0.9.2"),
.package(url: "https://github.com/pointfreeco/swift-url-routing.git", from: "0.3.0"),
.package(url: "https://github.com/OpenKitten/BSON.git", from: "7.0.0")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "NWSharedModels",
dependencies: []),
dependencies: [
.product(
name: "Vapor",
package: "vapor",
condition: .when(platforms: [.macOS, .linux])
),
.product(
name: "Fluent",
package: "fluent",
condition: .when(platforms: [.macOS, .linux])
),
.product(
name: "FluentMongoDriver",
package: "fluent-mongo-driver",
condition: .when(platforms: [.macOS, .linux])
),
.product(
name: "VaporRouting",
package: "vapor-routing",
condition: .when(platforms: [.macOS, .linux])
),
.product(
name: "JWT",
package: "jwt",
condition: .when(platforms: [.macOS, .linux])
),

// IOS
.product(
name: "URLRouting",
package: "swift-url-routing",
condition: .when(platforms: [.iOS])
),

.product(
name: "BSON",
package: "BSON"
)

]

),
.testTarget(
name: "NWSharedModelsTests",
dependencies: ["NWSharedModels"]),
Expand Down
Loading

0 comments on commit d22f805

Please sign in to comment.