Skip to content

Commit

Permalink
Merge pull request #14 from npr/release/1.2.1
Browse files Browse the repository at this point in the history
Exposed initializers to objective-c
  • Loading branch information
Michael Choe authored Jun 13, 2019
2 parents d55d5df + 67de2e8 commit 2340f66
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
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.2.0"
s.version = "1.2.1"
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
10 changes: 5 additions & 5 deletions RAD/Analytics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import AVFoundation
/// - *request header fields*: [:] - empty dictionary.
///
/// - Parameter configuration: The configuration object.
public init(
@objc public init(
configuration: Configuration = Configuration(
submissionTimeInterval: TimeInterval.hours(1),
batchSize: 100,
Expand Down Expand Up @@ -79,20 +79,20 @@ import AVFoundation
/// ```
///
/// - Parameter player: The player to be observed.
public func observePlayer(_ player: AVPlayer) {
@objc public func observePlayer(_ player: AVPlayer) {
playerObserver = PlayerObserver(
player: player, configuration: configuration)
playerObserver?.delegate = _debugger
}

/// Starts sending data to analytics servers.
/// Sending data is started automatically at object creation.
public func startSendingData() {
@objc public func startSendingData() {
scheduler.startScheduling()
}

/// Stops sending data to analytics servers.
public func stopSendingData() {
@objc public func stopSendingData() {
scheduler.endScheduling()
}

Expand All @@ -101,7 +101,7 @@ import AVFoundation
/// calls the completion handler on the main queue.
///
/// - Parameter completion: The completion handler.
public func performBackgroundFetch(
@objc public func performBackgroundFetch(
completion: @escaping BackgroundFetchCompletion
) {
scheduler.executeDataSent { result in
Expand Down
2 changes: 1 addition & 1 deletion RAD/Model/Entities/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import Foundation
/// request created to each tracking url.
public let requestHeaderFields: [String: String]

public init(
@objc public init(
submissionTimeInterval: TimeInterval,
batchSize: UInt,
expirationTimeInterval: DateComponents,
Expand Down

0 comments on commit 2340f66

Please sign in to comment.