From 83923535825b0fd2535e753adaf0fe61df09e05c Mon Sep 17 00:00:00 2001 From: David Date: Mon, 1 Jul 2024 14:51:25 -0700 Subject: [PATCH] Release 18.5.0 (#3150) * Update version * Update CHANGELOG * Update swiftui view on active * Revert "Update swiftui view on active" This reverts commit ac6d66c32ae75d978641ca3b41ba2213f9c51b73. * Use display name for sender selector UI --------- Co-authored-by: crow --- Airship.podspec | 2 +- Airship/AirshipConfig.xcconfig | 2 +- Airship/AirshipCore/Source/AirshipVersion.swift | 2 +- .../PreferenceCenterConfig+ContactManagement.swift | 2 +- .../Component Views/ChannelTextField.swift | 2 +- .../Tests/data/PreferenceCenterConfigTest.swift | 4 ++-- AirshipContentExtension.podspec | 2 +- AirshipDebug.podspec | 2 +- AirshipServiceExtension.podspec | 2 +- CHANGELOG.md | 13 +++++++++++++ 10 files changed, 23 insertions(+), 10 deletions(-) diff --git a/Airship.podspec b/Airship.podspec index 3b9171708..22bd8c1fa 100644 --- a/Airship.podspec +++ b/Airship.podspec @@ -1,4 +1,4 @@ -AIRSHIP_VERSION="18.4.1" +AIRSHIP_VERSION="18.5.0" Pod::Spec.new do |s| s.version = AIRSHIP_VERSION diff --git a/Airship/AirshipConfig.xcconfig b/Airship/AirshipConfig.xcconfig index 4cc88014e..9e761039f 100644 --- a/Airship/AirshipConfig.xcconfig +++ b/Airship/AirshipConfig.xcconfig @@ -1,6 +1,6 @@ //* Copyright Airship and Contributors */ -CURRENT_PROJECT_VERSION = 18.4.1 +CURRENT_PROJECT_VERSION = 18.5.0 // Uncomment to include the preview build warning // OTHER_CFLAGS = $(inherited) -DUA_PREVIEW=1 diff --git a/Airship/AirshipCore/Source/AirshipVersion.swift b/Airship/AirshipCore/Source/AirshipVersion.swift index eb6827257..92c107874 100644 --- a/Airship/AirshipCore/Source/AirshipVersion.swift +++ b/Airship/AirshipCore/Source/AirshipVersion.swift @@ -3,7 +3,7 @@ import Foundation public struct AirshipVersion { - public static let version = "18.4.1" + public static let version = "18.5.0" public static func get() -> String { return version } diff --git a/Airship/AirshipPreferenceCenter/Source/data/PreferenceCenterConfig+ContactManagement.swift b/Airship/AirshipPreferenceCenter/Source/data/PreferenceCenterConfig+ContactManagement.swift index da57abf75..c52a329ec 100644 --- a/Airship/AirshipPreferenceCenter/Source/data/PreferenceCenterConfig+ContactManagement.swift +++ b/Airship/AirshipPreferenceCenter/Source/data/PreferenceCenterConfig+ContactManagement.swift @@ -536,7 +536,7 @@ public extension PreferenceCenterConfig { /// Country code. public var countryCode: String - /// Country display name, for example - United Kingdom. + /// Country display name. public var displayName: String enum CodingKeys: String, CodingKey { diff --git a/Airship/AirshipPreferenceCenter/Source/view/Contact management/Component Views/ChannelTextField.swift b/Airship/AirshipPreferenceCenter/Source/view/Contact management/Component Views/ChannelTextField.swift index 78356b60c..89ad89c5c 100644 --- a/Airship/AirshipPreferenceCenter/Source/view/Contact management/Component Views/ChannelTextField.swift +++ b/Airship/AirshipPreferenceCenter/Source/view/Contact management/Component Views/ChannelTextField.swift @@ -77,7 +77,7 @@ public struct ChannelTextField: View { Spacer() Picker("senders", selection: $selectedSenderID) { ForEach(senders, id: \.self) { - Text($0.countryCode.countryFlag() + " " + $0.countryCode + " ").tag($0.senderId) + Text($0.displayName).tag($0.senderId) } } .accentColor(DefaultColors.primaryText) diff --git a/Airship/AirshipPreferenceCenter/Tests/data/PreferenceCenterConfigTest.swift b/Airship/AirshipPreferenceCenter/Tests/data/PreferenceCenterConfigTest.swift index 20955e1c2..046b1e048 100644 --- a/Airship/AirshipPreferenceCenter/Tests/data/PreferenceCenterConfigTest.swift +++ b/Airship/AirshipPreferenceCenter/Tests/data/PreferenceCenterConfigTest.swift @@ -134,8 +134,8 @@ class PreferenceCenterDecoderTest: XCTestCase { }, "senders": [ { - "country_code": "+44", - "display_name": "United Kingdom", + "country_code": "+1", + "display_name": "\u{1F1FA}\u{1F1F8} +1", "placeholder_text": "7010 111222", "sender_id": "23450" } diff --git a/AirshipContentExtension.podspec b/AirshipContentExtension.podspec index f131ce067..89939e473 100644 --- a/AirshipContentExtension.podspec +++ b/AirshipContentExtension.podspec @@ -1,4 +1,4 @@ -AIRSHIP_VERSION="18.4.1" +AIRSHIP_VERSION="18.5.0" Pod::Spec.new do |s| s.version = AIRSHIP_VERSION diff --git a/AirshipDebug.podspec b/AirshipDebug.podspec index 6fecc76a9..359464398 100644 --- a/AirshipDebug.podspec +++ b/AirshipDebug.podspec @@ -1,4 +1,4 @@ -AIRSHIP_VERSION="18.4.1" +AIRSHIP_VERSION="18.5.0" Pod::Spec.new do |s| s.version = AIRSHIP_VERSION diff --git a/AirshipServiceExtension.podspec b/AirshipServiceExtension.podspec index 24057ac8e..39669a5d6 100644 --- a/AirshipServiceExtension.podspec +++ b/AirshipServiceExtension.podspec @@ -1,4 +1,4 @@ -AIRSHIP_VERSION="18.4.1" +AIRSHIP_VERSION="18.5.0" Pod::Spec.new do |s| s.version = AIRSHIP_VERSION diff --git a/CHANGELOG.md b/CHANGELOG.md index 901ef3454..1fde318c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,19 @@ # iOS Changelog +## Version 18.5.0 July 1, 2024 +Minor release that includes cert pinning and various fixes and improvements for Preference Center, In-app Messages and Embedded Content. + +### Changes +- Added ability to inject a custom certificate verification closure that applies to all API calls +- Added width and height parameters to in-app dismiss button theming +- Fixed bug that caused HTML in-app message backgrounds to default to clear instead of system background +- Fixed extra payload parsing in in-app messages +- Set default banner placement to bottom +- Increased impression interval for embedded in-app views +- Improved in-app banner view accessibility +- Preference center contact channel listing is now refreshed on foreground and from background pushes + ## Version 18.4.1 June 21, 2024 Patch release to fix a regression with IAX ignoring screen, version, and custom event triggers. Apps using those triggers that are on 18.4.0 should update.