Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/6.0.8 #905

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading