Skip to content

Commit

Permalink
Release 17.7.1 (#2899)
Browse files Browse the repository at this point in the history
* Fix session ID

* Release 17.7.1
  • Loading branch information
rlepinski authored Dec 19, 2023
1 parent 6fd53b5 commit b35f270
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Airship.podspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AIRSHIP_VERSION="17.7.0"
AIRSHIP_VERSION="17.7.1"

Pod::Spec.new do |s|
s.version = AIRSHIP_VERSION
Expand Down
2 changes: 1 addition & 1 deletion Airship/AirshipConfig.xcconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//* Copyright Airship and Contributors */

CURRENT_PROJECT_VERSION = 17.7.0
CURRENT_PROJECT_VERSION = 17.7.1

// Uncomment to include the preview build warning
// OTHER_CFLAGS = $(inherited) -DUA_PREVIEW=1
2 changes: 1 addition & 1 deletion Airship/AirshipCore/Source/AirshipVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation

@objc(UAirshipVersion)
public class AirshipVersion: NSObject {
public static let version = "17.7.0"
public static let version = "17.7.1"

@objc
public class func get() -> String {
Expand Down
16 changes: 8 additions & 8 deletions Airship/AirshipCore/Source/Analytics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ public final class AirshipAnalytics: NSObject, AirshipComponent, AnalyticsProtoc
for await event in self.sessionTracker.events {
self.addEvent(
sessionEventFactory.make(event: event),
date: event.date
date: event.date,
sessionID: event.sessionState.sessionID
)
}
}
Expand Down Expand Up @@ -310,22 +311,21 @@ public final class AirshipAnalytics: NSObject, AirshipComponent, AnalyticsProtoc
/// - Parameter event: The event to be triggered
@objc
public func addEvent(_ event: AirshipEvent) {
self.addEvent(event, date: self.date.now)
self.addEvent(
event,
date: self.date.now,
sessionID: self.sessionTracker.sessionState.sessionID
)
}

private func addEvent(_ event: AirshipEvent, date: Date) {
private func addEvent(_ event: AirshipEvent, date: Date, sessionID: String) {
guard self.isAnalyticsEnabled else {
AirshipLogger.trace(
"Analytics disabled, ignoring event: \(event.eventType)"
)
return
}

guard let sessionID = self.sessionID else {
AirshipLogger.error("Missing session ID")
return
}

guard
event.isValid?() != false,
let body = try? AirshipJSON.wrap(event.data as? [String: Any])
Expand Down
2 changes: 1 addition & 1 deletion AirshipContentExtension.podspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AIRSHIP_VERSION="17.7.0"
AIRSHIP_VERSION="17.7.1"

Pod::Spec.new do |s|
s.version = AIRSHIP_VERSION
Expand Down
2 changes: 1 addition & 1 deletion AirshipDebug.podspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AIRSHIP_VERSION="17.7.0"
AIRSHIP_VERSION="17.7.1"

Pod::Spec.new do |s|
s.version = AIRSHIP_VERSION
Expand Down
2 changes: 1 addition & 1 deletion AirshipServiceExtension.podspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AIRSHIP_VERSION="17.7.0"
AIRSHIP_VERSION="17.7.1"

Pod::Spec.new do |s|
s.version = AIRSHIP_VERSION
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@

[Migration Guides](https://github.com/urbanairship/ios-library/tree/main/Documentation/Migration)

## Version 17.7.1 December 18, 2023
Patch release that fixes an issue with app background events being attributed to the wrong session ID. This issue was introduced in 17.5.0 and impacts
session duration times in Performance Analytics. Applications that rely on that report should update.

### Changes
- Fixed background app event session ID

## Version 17.7.0 December 6, 2023
Minor release that adds a new MessageCenter listener for current message state and a new method `Airship.contact.notifyRemoteLogin()` that will refresh the local state on the device for named user associations that occur through the server instead of the SDK.

Expand Down

0 comments on commit b35f270

Please sign in to comment.