Skip to content

Commit

Permalink
Merge pull request #45 from orlandos-nl/feature/async-await
Browse files Browse the repository at this point in the history
Feature/async await
  • Loading branch information
Joannis authored Aug 7, 2023
2 parents bd7cfea + ba73d3a commit f6d439b
Show file tree
Hide file tree
Showing 56 changed files with 3,880 additions and 1,246 deletions.
67 changes: 67 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/CypherProtocol.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1330"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CypherProtocol"
BuildableName = "CypherProtocol"
BlueprintName = "CypherProtocol"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CypherProtocol"
BuildableName = "CypherProtocol"
BlueprintName = "CypherProtocol"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Release"
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
Expand Down
242 changes: 165 additions & 77 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,79 +1,167 @@
{
"object": {
"pins": [
{
"package": "BSON",
"repositoryURL": "https://github.com/OpenKitten/BSON.git",
"state": {
"branch": null,
"revision": "98a2c90988895f1b985ed0066180995df995924c",
"version": "7.0.28"
}
},
{
"package": "Dribble",
"repositoryURL": "[email protected]:orlandos-nl/Dribble.git",
"state": {
"branch": "main",
"revision": "c106d1834facac06742985d3558b0cdc5069585b",
"version": null
}
},
{
"package": "jwt-kit",
"repositoryURL": "https://github.com/vapor/jwt-kit.git",
"state": {
"branch": null,
"revision": "7a9a04df93e71de10fa2e8d6e9430dd0a7924643",
"version": "4.2.4"
}
},
{
"package": "swift-crypto",
"repositoryURL": "https://github.com/apple/swift-crypto.git",
"state": {
"branch": null,
"revision": "3bea268b223651c4ab7b7b9ad62ef9b2d4143eb6",
"version": "1.1.6"
}
},
{
"package": "swift-log",
"repositoryURL": "https://github.com/apple/swift-log.git",
"state": {
"branch": null,
"revision": "5d66f7ba25daf4f94100e7022febf3c75e37a6c7",
"version": "1.4.2"
}
},
{
"package": "swift-nio",
"repositoryURL": "https://github.com/apple/swift-nio.git",
"state": {
"branch": null,
"revision": "f2705f9655ede35399b12040e892cf653126de98",
"version": "2.32.2"
}
},
{
"package": "swift-nio-ssl",
"repositoryURL": "https://github.com/apple/swift-nio-ssl.git",
"state": {
"branch": null,
"revision": "2e74773972bd6254c41ceeda827f229bccbf1c0f",
"version": "2.15.0"
}
},
{
"package": "websocket-kit",
"repositoryURL": "https://github.com/vapor/websocket-kit.git",
"state": {
"branch": null,
"revision": "b1c4df8f6c848c2e977726903bbe6578eed723ad",
"version": "2.2.0"
}
}
]
},
"version": 1
"pins" : [
{
"identity" : "bson",
"kind" : "remoteSourceControl",
"location" : "https://github.com/orlandos-nl/BSON.git",
"state" : {
"revision" : "98a2c90988895f1b985ed0066180995df995924c",
"version" : "7.0.28"
}
},
{
"identity" : "dribble",
"kind" : "remoteSourceControl",
"location" : "https://github.com/orlandos-nl/Dribble.git",
"state" : {
"revision" : "afbfa0a83bd41880820b8883a765fd0d310eabfd",
"version" : "0.1.0"
}
},
{
"identity" : "jwt-kit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/vapor/jwt-kit.git",
"state" : {
"revision" : "1822bb0abf0a31a4b5078ec19061c548835253b5",
"version" : "4.3.0"
}
},
{
"identity" : "swift-atomics",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-atomics",
"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-cluster-membership",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-cluster-membership.git",
"state" : {
"revision" : "3896fce7e9eb9cfce8a20abd94408f7e8c62fc2d",
"version" : "0.3.1"
}
},
{
"identity" : "swift-collections",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-collections.git",
"state" : {
"revision" : "48254824bb4248676bf7ce56014ff57b142b77eb",
"version" : "1.0.2"
}
},
{
"identity" : "swift-crypto",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-crypto.git",
"state" : {
"revision" : "ddb07e896a2a8af79512543b1c7eb9797f8898a5",
"version" : "1.1.7"
}
},
{
"identity" : "swift-distributed-actors",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-distributed-actors.git",
"state" : {
"revision" : "bd2e4c0dd278c2071d07fcc449185b816a15d80d",
"version" : "1.0.0-beta.1.1"
}
},
{
"identity" : "swift-log",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-log.git",
"state" : {
"revision" : "5d66f7ba25daf4f94100e7022febf3c75e37a6c7",
"version" : "1.4.2"
}
},
{
"identity" : "swift-metrics",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-metrics.git",
"state" : {
"revision" : "1c1408bf8fc21be93713e897d2badf500ea38419",
"version" : "2.3.1"
}
},
{
"identity" : "swift-nio",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-nio.git",
"state" : {
"revision" : "124119f0bb12384cef35aa041d7c3a686108722d",
"version" : "2.40.0"
}
},
{
"identity" : "swift-nio-extras",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-nio-extras.git",
"state" : {
"revision" : "a75e92bde3683241c15df3dd905b7a6dcac4d551",
"version" : "1.12.1"
}
},
{
"identity" : "swift-nio-ssl",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-nio-ssl.git",
"state" : {
"revision" : "52a486ff6de9bc3e26bf634c5413c41c5fa89ca5",
"version" : "2.17.2"
}
},
{
"identity" : "swift-protobuf",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-protobuf.git",
"state" : {
"revision" : "e1499bc69b9040b29184f7f2996f7bab467c1639",
"version" : "1.19.0"
}
},
{
"identity" : "swift-service-discovery",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-service-discovery.git",
"state" : {
"revision" : "c83afedb1c95ef0111907cd6e2fd03d7175cc0d0",
"version" : "1.2.0"
}
},
{
"identity" : "taskqueue",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Joannis/TaskQueue.git",
"state" : {
"revision" : "38df6560a3ce185e0954ec2851b01ee82c01ee2c",
"version" : "1.0.0"
}
},
{
"identity" : "websocket-kit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/vapor/websocket-kit.git",
"state" : {
"revision" : "ff8fbce837ef01a93d49c6fb49a72be0f150dac7",
"version" : "2.3.0"
}
}
],
"version" : 2
}
33 changes: 26 additions & 7 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// swift-tools-version:5.5
// swift-tools-version:5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "CypherTextKit",
platforms: [
.macOS(.v12),
.iOS(.v15),
.macOS(.v13),
.iOS(.v16),
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
Expand All @@ -17,16 +17,25 @@ let package = Package(
.library(
name: "MessagingHelpers",
targets: ["MessagingHelpers"]),
.library(
name: "CypherProtocol",
targets: ["CypherProtocol"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/apple/swift-crypto.git", from: "1.0.0"),
// .package(name: "swift-nio", path: "/Users/joannisorlandos/git/joannis/swift-nio"),
// .package(name: "swift-nio-ssl", path: "/Users/joannisorlandos/git/joannis/swift-nio-ssl"),
// .package(name: "Dribble", path: "/Users/joannisorlandos/git/orlandos-nl/Dribble"),
.package(url: "https://github.com/apple/swift-distributed-actors.git", from: "1.0.0-beta.1.1"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.0.0"),
.package(url: "https://github.com/orlandos-nl/Dribble.git", from: "0.1.0"),
.package(url: "https://github.com/vapor/jwt-kit.git", from: "4.0.0"),
.package(url: "https://github.com/vapor/websocket-kit.git", from: "2.0.0"),
.package(url: "https://github.com/orlandos-nl/Dribble.git", .branch("main")),
.package(url: "https://github.com/OpenKitten/BSON.git", from: "7.0.0"),
.package(url: "https://github.com/orlandos-nl/BSON.git", from: "7.0.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.0"),
.package(url: "https://github.com/Joannis/TaskQueue.git", from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand All @@ -37,6 +46,8 @@ let package = Package(
.product(name: "Dribble", package: "Dribble"),
.target(name: "CypherProtocol"),
.product(name: "Logging", package: "swift-log"),
.product(name: "TaskQueue", package: "TaskQueue"),
// .product(name: "DistributedActors", package: "swifIt-distributed-actors")
]),
.target(
name: "MessagingHelpers",
Expand All @@ -57,11 +68,19 @@ let package = Package(
]),
.testTarget(
name: "CypherMessagingTests",
dependencies: ["CypherMessaging"]
dependencies: [
"CypherMessaging",
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOFoundationCompat", package: "swift-nio"),
]
),
.testTarget(
name: "CypherMessagingHelpersTests",
dependencies: ["MessagingHelpers"]
dependencies: [
"MessagingHelpers",
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOFoundationCompat", package: "swift-nio"),
]
),
]
)
Loading

0 comments on commit f6d439b

Please sign in to comment.