Skip to content

Commit

Permalink
Merge branch 'release/5.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
matus-tomlein committed Jul 6, 2023
2 parents b2748c4 + bc56e0b commit 581ef11
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Version 5.3.1 (2023-07-06)
--------------------------
Fix incorrect date deserialization when reading the install timestamp from 1.7 version of the tracker (#801)
Fix disabling screen view autotracking in tracker configuration (#802)

Version 5.3.0 (2023-06-30)
--------------------------
Add media controller with APIs to track media events (#765)
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 = "5.3.0"
s.version = "5.3.1"
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
8 changes: 4 additions & 4 deletions Sources/Core/Tracker/InstallTracker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ class InstallTracker: NSObject {
let value = userDefaults.object(forKey: kSPInstallTimestamp)
if value == nil {
return nil
} else if value is Date {
} else if let value = value as? Date {
// v2.0 format
return value as? Date
} else if value is NSNumber {
return value
} else if let value = value as? NSNumber {
// v1.7 format
let timeInterval = TimeInterval((value as? NSNumber)?.doubleValue ?? 0.0 / 1000)
let timeInterval = TimeInterval(value.doubleValue / 1000)
return Date(timeIntervalSince1970: timeInterval)
}
return nil
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 = "5.3.0"
let kSPRawVersion = "5.3.1"
#if os(iOS)
let kSPVersion = "ios-\(kSPRawVersion)"
#elseif os(tvOS)
Expand Down
2 changes: 1 addition & 1 deletion Sources/Snowplow/Configurations/TrackerConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public class TrackerConfiguration: SerializableConfiguration, TrackerConfigurati
/// Whether enable automatic tracking of ScreenView events.
@objc
public var screenViewAutotracking: Bool {
get { return _screenViewAutotracking ?? TrackerDefaults.autotrackScreenViews }
get { return _screenViewAutotracking ?? sourceConfig?.screenViewAutotracking ?? TrackerDefaults.autotrackScreenViews }
set { _screenViewAutotracking = newValue }
}

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.3.0
5.3.1

0 comments on commit 581ef11

Please sign in to comment.