Skip to content

Commit 0bfbbf1

Browse files
committed
MonitoredAppMiddleware target added
1 parent b647332 commit 0bfbbf1

31 files changed

+525
-133
lines changed
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1140"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "D69218D1241DD50500A888D4"
18+
BuildableName = "Sourcery"
19+
BlueprintName = "Sourcery"
20+
ReferencedContainer = "container:../SwiftRexMonitor.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "YES"
27+
buildForArchiving = "YES"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "MonitoredAppMiddleware"
32+
BuildableName = "MonitoredAppMiddleware"
33+
BlueprintName = "MonitoredAppMiddleware"
34+
ReferencedContainer = "container:">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
buildConfiguration = "Debug"
41+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
shouldUseLaunchSchemeArgsEnv = "YES">
44+
<Testables>
45+
<TestableReference
46+
skipped = "NO">
47+
<BuildableReference
48+
BuildableIdentifier = "primary"
49+
BlueprintIdentifier = "MonitoredAppMiddlewareTests"
50+
BuildableName = "MonitoredAppMiddlewareTests"
51+
BlueprintName = "MonitoredAppMiddlewareTests"
52+
ReferencedContainer = "container:">
53+
</BuildableReference>
54+
</TestableReference>
55+
</Testables>
56+
</TestAction>
57+
<LaunchAction
58+
buildConfiguration = "Debug"
59+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
60+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
61+
launchStyle = "0"
62+
useCustomWorkingDirectory = "NO"
63+
ignoresPersistentStateOnLaunch = "NO"
64+
debugDocumentVersioning = "YES"
65+
debugServiceExtension = "internal"
66+
allowLocationSimulation = "YES">
67+
</LaunchAction>
68+
<ProfileAction
69+
buildConfiguration = "Release"
70+
shouldUseLaunchSchemeArgsEnv = "YES"
71+
savedToolIdentifier = ""
72+
useCustomWorkingDirectory = "NO"
73+
debugDocumentVersioning = "YES">
74+
<MacroExpansion>
75+
<BuildableReference
76+
BuildableIdentifier = "primary"
77+
BlueprintIdentifier = "MonitoredAppMiddleware"
78+
BuildableName = "MonitoredAppMiddleware"
79+
BlueprintName = "MonitoredAppMiddleware"
80+
ReferencedContainer = "container:">
81+
</BuildableReference>
82+
</MacroExpansion>
83+
</ProfileAction>
84+
<AnalyzeAction
85+
buildConfiguration = "Debug">
86+
</AnalyzeAction>
87+
<ArchiveAction
88+
buildConfiguration = "Release"
89+
revealArchiveInOrganizer = "YES">
90+
</ArchiveAction>
91+
</Scheme>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// swift-tools-version:5.2
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "MonitoredAppMiddleware",
8+
platforms: [
9+
.iOS(.v13), .macOS(.v10_15), .tvOS(.v13), .watchOS(.v6)
10+
],
11+
products: [
12+
.library(name: "MonitoredAppMiddleware", targets: ["MonitoredAppMiddleware"])
13+
],
14+
dependencies: [
15+
.package(name: "MultipeerCombine", path: "../MultipeerCombine"),
16+
.package(name: "MultipeerRedux", path: "../MultipeerRedux"),
17+
.package(name: "CombineRex", url: "https://github.com/SwiftRex/SwiftRex.git", from: "0.7.0")
18+
],
19+
targets: [
20+
.target(name: "MonitoredAppMiddleware", dependencies: ["MultipeerCombine", "MultipeerRedux", "CombineRex"]),
21+
.testTarget(name: "MonitoredAppMiddlewareTests", dependencies: ["MonitoredAppMiddleware"])
22+
]
23+
)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
sources:
2+
- .
3+
templates:
4+
- ../../../Tools/SourceryTemplates
5+
output:
6+
CodeGen
7+
args:
8+
imports: ["MultipeerConnectivity", "MultipeerRedux"]
9+
testable-imports: []
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Generated using Sourcery 0.17.0 — https://github.com/krzysztofzablocki/Sourcery
2+
// DO NOT EDIT
3+
4+
// swiftlint:disable all
5+
6+
import Foundation
7+
#if os(iOS) || os(tvOS) || os(watchOS)
8+
import UIKit
9+
#elseif os(OSX)
10+
import AppKit
11+
#endif
12+
13+
import MultipeerConnectivity
14+
import MultipeerRedux
15+
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
// Generated using Sourcery 0.17.0 — https://github.com/krzysztofzablocki/Sourcery
2+
// DO NOT EDIT
3+
4+
5+
import MultipeerConnectivity
6+
import MultipeerRedux
7+
extension MessageType: Codable {
8+
enum CodingKeys: String, CodingKey {
9+
case type
10+
case associatedValues
11+
12+
enum IntroductionKeys: String, CodingKey {
13+
case associatedValue0
14+
}
15+
enum ActionKeys: String, CodingKey {
16+
case associatedValue0
17+
}
18+
}
19+
20+
public init(from decoder: Decoder) throws {
21+
let container = try decoder.container(keyedBy: CodingKeys.self)
22+
switch try container.decode(String.self, forKey: .type) {
23+
case "introduction":
24+
let subContainer = try container.nestedContainer(keyedBy: CodingKeys.IntroductionKeys.self, forKey: .associatedValues)
25+
let associatedValues0 = try subContainer.decode(PeerMetadata.self, forKey: .associatedValue0)
26+
self = .introduction(associatedValues0)
27+
case "action":
28+
let subContainer = try container.nestedContainer(keyedBy: CodingKeys.ActionKeys.self, forKey: .associatedValues)
29+
let associatedValues0 = try subContainer.decode(ActionMessage.self, forKey: .associatedValue0)
30+
self = .action(associatedValues0)
31+
default:
32+
throw DecodingError.keyNotFound(CodingKeys.type, .init(codingPath: container.codingPath, debugDescription: "Unknown key"))
33+
}
34+
}
35+
36+
public func encode(to encoder: Encoder) throws {
37+
var container = encoder.container(keyedBy: CodingKeys.self)
38+
switch self {
39+
case let .introduction(associatedValue0):
40+
try container.encode("introduction", forKey: .type)
41+
var subContainer = container.nestedContainer(keyedBy: CodingKeys.IntroductionKeys.self, forKey: .associatedValues)
42+
try subContainer.encode(associatedValue0, forKey: .associatedValue0)
43+
case let .action(associatedValue0):
44+
try container.encode("action", forKey: .type)
45+
var subContainer = container.nestedContainer(keyedBy: CodingKeys.ActionKeys.self, forKey: .associatedValues)
46+
try subContainer.encode(associatedValue0, forKey: .associatedValue0)
47+
}
48+
}
49+
}
50+
extension PayloadTree: Codable {
51+
enum CodingKeys: String, CodingKey {
52+
case type
53+
case associatedValues
54+
55+
enum UnkeyedKeys: String, CodingKey {
56+
case associatedValue0
57+
}
58+
enum KeyedKeys: String, CodingKey {
59+
case key
60+
case value
61+
}
62+
enum ArrayKeys: String, CodingKey {
63+
case key
64+
case values
65+
}
66+
}
67+
68+
public init(from decoder: Decoder) throws {
69+
let container = try decoder.container(keyedBy: CodingKeys.self)
70+
switch try container.decode(String.self, forKey: .type) {
71+
case "unkeyed":
72+
let subContainer = try container.nestedContainer(keyedBy: CodingKeys.UnkeyedKeys.self, forKey: .associatedValues)
73+
let associatedValues0 = try subContainer.decode(String.self, forKey: .associatedValue0)
74+
self = .unkeyed(associatedValues0)
75+
case "keyed":
76+
let subContainer = try container.nestedContainer(keyedBy: CodingKeys.KeyedKeys.self, forKey: .associatedValues)
77+
let associatedValues0 = try subContainer.decode(String.self, forKey: .key)
78+
let associatedValues1 = try subContainer.decode(String.self, forKey: .value)
79+
self = .keyed(key: associatedValues0, value: associatedValues1)
80+
case "array":
81+
let subContainer = try container.nestedContainer(keyedBy: CodingKeys.ArrayKeys.self, forKey: .associatedValues)
82+
let associatedValues0 = try subContainer.decode(String.self, forKey: .key)
83+
let associatedValues1 = try subContainer.decode([PayloadTree].self, forKey: .values)
84+
self = .array(key: associatedValues0, values: associatedValues1)
85+
default:
86+
throw DecodingError.keyNotFound(CodingKeys.type, .init(codingPath: container.codingPath, debugDescription: "Unknown key"))
87+
}
88+
}
89+
90+
public func encode(to encoder: Encoder) throws {
91+
var container = encoder.container(keyedBy: CodingKeys.self)
92+
switch self {
93+
case let .unkeyed(associatedValue0):
94+
try container.encode("unkeyed", forKey: .type)
95+
var subContainer = container.nestedContainer(keyedBy: CodingKeys.UnkeyedKeys.self, forKey: .associatedValues)
96+
try subContainer.encode(associatedValue0, forKey: .associatedValue0)
97+
case let .keyed(key, value):
98+
try container.encode("keyed", forKey: .type)
99+
var subContainer = container.nestedContainer(keyedBy: CodingKeys.KeyedKeys.self, forKey: .associatedValues)
100+
try subContainer.encode(key, forKey: .key)
101+
try subContainer.encode(value, forKey: .value)
102+
case let .array(key, values):
103+
try container.encode("array", forKey: .type)
104+
var subContainer = container.nestedContainer(keyedBy: CodingKeys.ArrayKeys.self, forKey: .associatedValues)
105+
try subContainer.encode(key, forKey: .key)
106+
try subContainer.encode(values, forKey: .values)
107+
}
108+
}
109+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Generated using Sourcery 0.17.0 — https://github.com/krzysztofzablocki/Sourcery
2+
// DO NOT EDIT
3+
4+
5+
import MultipeerConnectivity
6+
import MultipeerRedux
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Generated using Sourcery 0.17.0 — https://github.com/krzysztofzablocki/Sourcery
2+
// DO NOT EDIT
3+
4+
import MultipeerConnectivity
5+
import MultipeerRedux
6+
@inline(never)
7+
private func _abstract(file: StaticString = #file, line: UInt = #line) -> Never {
8+
fatalError("Method must be overridden", file: file, line: line)
9+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Generated using Sourcery 0.17.0 — https://github.com/krzysztofzablocki/Sourcery
2+
// DO NOT EDIT
3+
4+
5+
import MultipeerConnectivity
6+
import MultipeerRedux
7+

0 commit comments

Comments
 (0)