Skip to content

Commit

Permalink
Release 17.5.0 (#2843)
Browse files Browse the repository at this point in the history
* Release 17.5.0

* Update status
  • Loading branch information
rlepinski authored Oct 12, 2023
1 parent e0bafa3 commit 2990efb
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 29 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.4.0"
AIRSHIP_VERSION="17.5.0"

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.4.0
CURRENT_PROJECT_VERSION = 17.5.0

// 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.4.0"
public static let version = "17.5.0"

@objc
public class func get() -> String {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public enum LiveActivityRegistrationStatus: String, Codable, Sendable {
/// The live activity is registered with Airship and is now able to be updated through APNS.
case registered

/// The live activity is either no longer updatable, been replaced with another live activity using the same name,
/// or is not actively being tracked by Airship.
case unknown
/// Airship is not actively tracking the live activity. Usually this means it has ended, been replaced
/// with another activity using the same name, or was not tracked with Airship.
case notTracked
}
2 changes: 1 addition & 1 deletion Airship/AirshipCore/Source/LiveActivityRegistry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ actor LiveActivityRegistry {

return LiveActivityRegistrationStatusUpdates { previous in
var async = self.liveActivityUpdatesSubject.values.map { _ in
return await self.findInfos(id: id, name: name).last?.status ?? .unknown
return await self.findInfos(id: id, name: name).last?.status ?? .notTracked
}.makeAsyncIterator()

while !Task.isCancelled {
Expand Down
2 changes: 1 addition & 1 deletion Airship/AirshipCore/Source/ScrollLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct ScrollLayout: View {
@ViewBuilder
private func makeScrollView(axis: Axis.Set) -> some View {

if #available(iOS 16.0, *) {
if #available(iOS 16.0, tvOS 16.0, watchOS 9.0, *) {
ScrollView(axis) {
makeContent()
}
Expand Down
33 changes: 15 additions & 18 deletions Airship/AirshipCore/Tests/LiveActivityRegistryTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,15 @@ final class LiveActivityRegistryTest: XCTestCase {

@available(iOS 16.1, *)
public func testRegistrationStatusByID() async {
// Not found
// notTracked
var updates = registry.registrationUpdates(name: nil, id: "some-id").makeAsyncIterator()
var status = await updates.next()
XCTAssertEqual(status, .unknown)
XCTAssertEqual(status, .notTracked)

// Added
let activity = TestLiveActivity("some-id")
await self.registry.addLiveActivity(activity, name: "some-name")

// Pending
// pending
status = await updates.next()
XCTAssertEqual(status, .pending)

Expand All @@ -204,31 +203,30 @@ final class LiveActivityRegistryTest: XCTestCase {
]
)

// Registered
// registered
status = await updates.next()
XCTAssertEqual(status, .registered)

// Register an activity over it
let otherActivity = TestLiveActivity("some-other-id")
await self.registry.addLiveActivity(otherActivity, name: "some-name")

// Unknown since its by ID and has been replaced
// notTracked since its by ID and has been replaced
status = await updates.next()
XCTAssertEqual(status, .unknown)
XCTAssertEqual(status, .notTracked)
}

@available(iOS 16.1, *)
public func testRegistrationStatusByName() async {
// Not found
// notTracked
var updates = registry.registrationUpdates(name: "some-name", id: nil).makeAsyncIterator()
var status = await updates.next()
XCTAssertEqual(status, .unknown)
XCTAssertEqual(status, .notTracked)

// Added
let activity = TestLiveActivity("some-id")
await self.registry.addLiveActivity(activity, name: "some-name")

// Pending
// pending
status = await updates.next()
XCTAssertEqual(status, .pending)

Expand All @@ -238,30 +236,29 @@ final class LiveActivityRegistryTest: XCTestCase {
]
)

// Registered
// registered
status = await updates.next()
XCTAssertEqual(status, .registered)

let otherActivity = TestLiveActivity("some-other-id")
await self.registry.addLiveActivity(otherActivity, name: "some-name")

// Pending since its by name
// pending since its by name
status = await updates.next()
XCTAssertEqual(status, .pending)
}

@available(iOS 16.1, *)
public func testRegistrationStatus() async {
// Not found
// Not tracked
var updates = registry.registrationUpdates(name: "some-name", id: nil).makeAsyncIterator()
var status = await updates.next()
XCTAssertEqual(status, .unknown)
XCTAssertEqual(status, .notTracked)

// Added
let activity = TestLiveActivity("some-id")
await self.registry.addLiveActivity(activity, name: "some-name")

// Pending
// pending
status = await updates.next()
XCTAssertEqual(status, .pending)

Expand All @@ -271,7 +268,7 @@ final class LiveActivityRegistryTest: XCTestCase {
]
)

// Registered
// registered
status = await updates.next()
XCTAssertEqual(status, .registered)
}
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.4.0"
AIRSHIP_VERSION="17.5.0"

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.4.0"
AIRSHIP_VERSION="17.5.0"

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.4.0"
AIRSHIP_VERSION="17.5.0"

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

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

## Version 17.5.0 October 12, 2023
Minor release that adds support for querying the Airship registration status of a Live Activity, improves gif loading in Scenes & Surveys, and improves text input handling in Surveys. Applications that use Live Activities or several large GIFs in Scenes & Surveys should update.

### Changes
- Optimized GIF loading for Scenes & Surveys.
- Improve text input on iOS 16+ for Surveys.
- Fixed carthage build due to a missing dependency on AirshipDebug.
- Added an additional attempt to upload a Live Activity registration upload on background if it previously failed.
- Added new `liveActivityRegistrationStatusUpdates(name:)` and `liveActivityRegistrationStatusUpdates(activity:)` on `AirshipChannel` to make it possible to query the current registration status of a Live Activity with Airship.
- Extended the background task used for waiting for a Live Activity token from 10 seconds to 30 seconds.

## Version 17.4.0 September 28, 2023
Minor release that improves refreshing the feeds for in-app experiences and feature flags, adds a new interaction event for feature flags, and fixes a reporting issue with direct opens and sessions counts for apps that are scene enabled.

Expand Down

0 comments on commit 2990efb

Please sign in to comment.