Skip to content

Commit

Permalink
Merge branch 'release/6.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
matus-tomlein committed May 13, 2024
2 parents b87e249 + 70b76a9 commit 1021605
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Version 6.0.3 (2024-05-13)
--------------------------
Add the PrivacyInfo to the CocoaPods podspec (#888)
Do not swizzle views if screen view autotracking is disabled (#889)

Version 6.0.2 (2024-04-02)
--------------------------
Fix non-published constructor for MediaPlaybackRateChangeEvent (#884)
Expand Down
2 changes: 1 addition & 1 deletion Examples
3 changes: 2 additions & 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.2"
s.version = "6.0.3"
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 Expand Up @@ -31,4 +31,5 @@ Pod::Spec.new do |s|
end

s.pod_target_xcconfig = { "DEFINES_MODULE" => "YES" }
s.resource_bundles = {'SnowplowTracker_Privacy' => ['PrivacyInfo.xcprivacy']}
end
16 changes: 14 additions & 2 deletions Sources/Core/Tracker/Tracker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,17 @@ class Tracker: NSObject {

var applicationContext = TrackerDefaults.applicationContext

var autotrackScreenViews = TrackerDefaults.autotrackScreenViews
private var _autotrackScreenViews = TrackerDefaults.autotrackScreenViews
var autotrackScreenViews: Bool {
get { return _autotrackScreenViews }
set {
_autotrackScreenViews = newValue
if builderFinished && _autotrackScreenViews {
UIKitScreenViewTracking.setup()
}
}
}


private var _foregroundTimeout = TrackerDefaults.foregroundTimeout
var foregroundTimeout: Int {
Expand Down Expand Up @@ -292,7 +302,9 @@ class Tracker: NSObject {
tracker: self)
}

UIKitScreenViewTracking.setup()
if autotrackScreenViews {
UIKitScreenViewTracking.setup()
}
NotificationCenter.default.addObserver(
self,
selector: #selector(receiveScreenViewNotification(_:)),
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.2"
let kSPRawVersion = "6.0.3"
#if os(iOS)
let kSPVersion = "ios-\(kSPRawVersion)"
#elseif os(tvOS)
Expand Down

0 comments on commit 1021605

Please sign in to comment.