diff --git a/ekgclient/EkgClient.swift b/ekgclient/EkgClient.swift index 5411ea6..a06e7f3 100644 --- a/ekgclient/EkgClient.swift +++ b/ekgclient/EkgClient.swift @@ -13,6 +13,12 @@ public struct AppInfo: Sendable { public let appIdentifier: String public let version: String public let build: String + + public init(appIdentifier: String, version: String, build: String) { + self.appIdentifier = appIdentifier + self.version = version + self.build = build + } } public class EkgClient { diff --git a/ekgclient/Sender.swift b/ekgclient/Sender.swift index 3175ffc..eacfa0b 100644 --- a/ekgclient/Sender.swift +++ b/ekgclient/Sender.swift @@ -18,6 +18,10 @@ public struct ServerInfo { //ekg host server, e.g. https://builda-ekg.herokuapp.com/ for buildasaur public let host: NSURL + + public init(host: NSURL) { + self.host = host + } } /// Sends events to the server diff --git a/ekgclientTests/EkgClientTests.swift b/ekgclientTests/EkgClientTests.swift index a3e36ab..d690746 100644 --- a/ekgclientTests/EkgClientTests.swift +++ b/ekgclientTests/EkgClientTests.swift @@ -27,5 +27,5 @@ class ekgclientTests: XCTestCase { self.waitForExpectationsWithTimeout(60, handler: nil) } - + }