Skip to content

Commit

Permalink
Merge pull request #13 from npr/fix/add-objc-support
Browse files Browse the repository at this point in the history
Fix/add objc support
  • Loading branch information
Michael Choe authored Jun 11, 2019
2 parents 8cd39ba + c8a7504 commit d55d5df
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 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"
2 changes: 1 addition & 1 deletion RAD.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "RAD"
s.version = "1.1.0"
s.version = "1.2.0"
s.summary = "The RAD SDK is a great starting place to learn more about how a RAD implementation might work in your client app."

s.description = "Remote Audio Data (RAD) measures podcast listening across a range of participating clients and platforms, aggregating the data in a publishers’ analytics endpoint. RAD is not intended to replace download statistics as a point of measurement for the on-demand audio industry, but is designed to provide data on listening events to complement this download statistics.
Expand Down
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 d55d5df

Please sign in to comment.