From 64ef586f65f797510753ecf14e0647a5ed30b558 Mon Sep 17 00:00:00 2001 From: Michael Choe Date: Thu, 13 Jun 2019 16:22:19 -0400 Subject: [PATCH 1/2] Exposed initializers to objective-c --- RAD/Analytics.swift | 10 +++++----- RAD/Model/Entities/Configuration.swift | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/RAD/Analytics.swift b/RAD/Analytics.swift index 0a668a8..513dfd4 100644 --- a/RAD/Analytics.swift +++ b/RAD/Analytics.swift @@ -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, @@ -79,7 +79,7 @@ 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 @@ -87,12 +87,12 @@ import AVFoundation /// 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() } @@ -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 diff --git a/RAD/Model/Entities/Configuration.swift b/RAD/Model/Entities/Configuration.swift index c2163cb..60159b2 100644 --- a/RAD/Model/Entities/Configuration.swift +++ b/RAD/Model/Entities/Configuration.swift @@ -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, From 67de2e8fe1bfaf244ca33a07ed9baf3a0e18bda4 Mon Sep 17 00:00:00 2001 From: Michael Choe Date: Thu, 13 Jun 2019 16:23:55 -0400 Subject: [PATCH 2/2] Bumped podspec --- RAD.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RAD.podspec b/RAD.podspec index 9434dd4..66d1ab9 100644 --- a/RAD.podspec +++ b/RAD.podspec @@ -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.