From fffda381a181c76398a5cc9449f59d1b95b5c0be Mon Sep 17 00:00:00 2001 From: Michael Choe Date: Tue, 11 Jun 2019 15:32:11 -0400 Subject: [PATCH 1/2] Added Obj-C support and updated Carthage dependencies to support Swift 4.2 --- Cartfile | 4 ++-- Cartfile.resolved | 2 +- RAD/Analytics.swift | 3 ++- RAD/Model/Entities/Configuration.swift | 3 ++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Cartfile b/Cartfile index b560b2e..a00871b 100644 --- a/Cartfile +++ b/Cartfile @@ -1,2 +1,2 @@ -github "AliSoftware/OHHTTPStubs" "6.1.0" -github "ashleymills/Reachability.swift" "v4.3.0" \ No newline at end of file +github "AliSoftware/OHHTTPStubs" "7.0.0" +github "ashleymills/Reachability.swift" "v4.3.0" diff --git a/Cartfile.resolved b/Cartfile.resolved index 3977662..a00871b 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1,2 +1,2 @@ -github "AliSoftware/OHHTTPStubs" "6.1.0" +github "AliSoftware/OHHTTPStubs" "7.0.0" github "ashleymills/Reachability.swift" "v4.3.0" diff --git a/RAD/Analytics.swift b/RAD/Analytics.swift index 11b72eb..0a668a8 100644 --- a/RAD/Analytics.swift +++ b/RAD/Analytics.swift @@ -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 @@ -61,6 +61,7 @@ public class Analytics { Storage.shared?.load() _debugger = AnalyticsDebugger() scheduler = NetworkScheduler(configuration: configuration) + super.init() startSendingData() performSanityCheck() } diff --git a/RAD/Model/Entities/Configuration.swift b/RAD/Model/Entities/Configuration.swift index 89cd67a..c2163cb 100644 --- a/RAD/Model/Entities/Configuration.swift +++ b/RAD/Model/Entities/Configuration.swift @@ -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 @@ -47,5 +47,6 @@ public class Configuration { self.expirationTimeInterval = expirationTimeInterval self.sessionExpirationTimeInterval = sessionExpirationTimeInterval self.requestHeaderFields = requestHeaderFields + super.init() } } From c8a7504016bdd6677a0b8cfc4f9cc215c9b69484 Mon Sep 17 00:00:00 2001 From: Michael Choe Date: Tue, 11 Jun 2019 15:38:37 -0400 Subject: [PATCH 2/2] Bump pod version --- RAD.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RAD.podspec b/RAD.podspec index 1b0356e..9434dd4 100644 --- a/RAD.podspec +++ b/RAD.podspec @@ -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.