Skip to content

Commit

Permalink
for some reason automatic initializers don't work outside of the module?
Browse files Browse the repository at this point in the history
  • Loading branch information
Honza Dvorsky committed Sep 17, 2015
1 parent b97d3f6 commit f76978b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ekgclient/EkgClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions ekgclient/Sender.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ekgclientTests/EkgClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ class ekgclientTests: XCTestCase {

self.waitForExpectationsWithTimeout(60, handler: nil)
}

}

0 comments on commit f76978b

Please sign in to comment.