Skip to content

Commit

Permalink
Merge pull request #905 from snowplow/release/6.0.8
Browse files Browse the repository at this point in the history
Release/6.0.8
  • Loading branch information
matus-tomlein authored Aug 20, 2024
2 parents 20b1fea + 2af846d commit bf14959
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 6.0.8 (2024-08-19)
--------------------------
Fix media tracking calls not being dispatched on the correct queue when tracking using AVPlayer

Version 6.0.7 (2024-07-16)
--------------------------
Fix incorrect decoding of timeout property in network configuration (#902)
Expand Down
2 changes: 1 addition & 1 deletion Examples
13 changes: 13 additions & 0 deletions Integrationtests/TestTrackEventsToMicro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

import XCTest
import SnowplowTracker
#if !os(watchOS)
import AVKit
#endif

class TestTrackEventsToMicro: XCTestCase {
var tracker: TrackerController?
Expand Down Expand Up @@ -166,6 +169,16 @@ class TestTrackEventsToMicro: XCTestCase {
], timeout: Micro.timeout)
}

#if !os(watchOS)
func testMediaTrackingUsingAVPlayer() {
let player = AVPlayer()
let mediaTracking = tracker?.media.startMediaTracking(player: player, configuration: MediaTrackingConfiguration(id: "integration-test"))
mediaTracking?.track(MediaReadyEvent())

wait(for: [Micro.expectCounts(good: 1)], timeout: Micro.timeout)
}
#endif

private func track(_ event: Event) {
_ = tracker!.track(event)
tracker!.emitter!.flush()
Expand Down
2 changes: 1 addition & 1 deletion SnowplowTracker.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SnowplowTracker"
s.version = "6.0.7"
s.version = "6.0.8"
s.summary = "Snowplow event tracker for iOS, macOS, tvOS, watchOS for apps and games."
s.description = <<-DESC
Snowplow is a mobile and event analytics platform with a difference: rather than tell our users how they should analyze their data, we deliver their event-level data in their own data warehouse, on their own Amazon Redshift or Postgres database, so they can analyze it any way they choose. Snowplow mobile is used by data-savvy games companies and app developers to better understand their users and how they engage with their games and applications. Snowplow is open source using the business-friendly Apache License, Version 2.0 and scales horizontally to many billions of events.
Expand Down
4 changes: 3 additions & 1 deletion Sources/Core/InternalQueue/MediaControllerIQWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ class MediaControllerIQWrapper: MediaController {
#if !os(watchOS)
func startMediaTracking(player: AVPlayer,
configuration: MediaTrackingConfiguration) -> MediaTracking {
return InternalQueue.sync { controller.startMediaTracking(player: player, configuration: configuration) }
return InternalQueue.sync {
MediaTrackingIQWrapper(tracking: controller.startMediaTracking(player: player, configuration: configuration))
}
}
#endif

Expand Down
2 changes: 1 addition & 1 deletion Sources/Core/TrackerConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import Foundation

// --- Version
let kSPRawVersion = "6.0.7"
let kSPRawVersion = "6.0.8"
#if os(iOS)
let kSPVersion = "ios-\(kSPRawVersion)"
#elseif os(tvOS)
Expand Down

0 comments on commit bf14959

Please sign in to comment.