Skip to content

Commit

Permalink
Added Obj-C support and updated Carthage dependencies to support Swif…
Browse files Browse the repository at this point in the history
…t 4.2
  • Loading branch information
Michael Choe committed Jun 11, 2019
1 parent 8cd39ba commit fffda38
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "AliSoftware/OHHTTPStubs" "6.1.0"
github "ashleymills/Reachability.swift" "v4.3.0"
github "AliSoftware/OHHTTPStubs" "7.0.0"
github "ashleymills/Reachability.swift" "v4.3.0"
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "AliSoftware/OHHTTPStubs" "6.1.0"
github "AliSoftware/OHHTTPStubs" "7.0.0"
github "ashleymills/Reachability.swift" "v4.3.0"
3 changes: 2 additions & 1 deletion RAD/Analytics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Foundation
import AVFoundation

/// The Analytics object which ties the framework components.
public class Analytics {
@objc public class Analytics: NSObject {
public typealias BackgroundFetchCompletion =
(UIBackgroundFetchResult) -> Void

Expand Down Expand Up @@ -61,6 +61,7 @@ public class Analytics {
Storage.shared?.load()
_debugger = AnalyticsDebugger()
scheduler = NetworkScheduler(configuration: configuration)
super.init()
startSendingData()
performSanityCheck()
}
Expand Down
3 changes: 2 additions & 1 deletion RAD/Model/Entities/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import Foundation

public class Configuration {
@objc public class Configuration: NSObject {
/// The time interval upon which events are sent to analytics server.
public let submissionTimeInterval: TimeInterval

Expand Down Expand Up @@ -47,5 +47,6 @@ public class Configuration {
self.expirationTimeInterval = expirationTimeInterval
self.sessionExpirationTimeInterval = sessionExpirationTimeInterval
self.requestHeaderFields = requestHeaderFields
super.init()
}
}

0 comments on commit fffda38

Please sign in to comment.