diff --git a/CHANGELOG.md b/CHANGELOG.md index aeb8eae4..b8293a89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). # Upcoming +### 🔄 Changed +- Updated StreamChat dependency + ### 🐞 Fixed - Creating merged channel avatars logged a console warning when the source image uses extended color range [#484](https://github.com/GetStream/stream-chat-swiftui/pull/484) diff --git a/Package.swift b/Package.swift index cdc08ed9..b08ae635 100644 --- a/Package.swift +++ b/Package.swift @@ -17,7 +17,7 @@ let package = Package( ) ], dependencies: [ - .package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.55.0"), + .package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.56.0"), ], targets: [ .target( diff --git a/StreamChatSwiftUI-XCFramework.podspec b/StreamChatSwiftUI-XCFramework.podspec index 83102d78..1a5022f2 100644 --- a/StreamChatSwiftUI-XCFramework.podspec +++ b/StreamChatSwiftUI-XCFramework.podspec @@ -19,7 +19,7 @@ Pod::Spec.new do |spec| spec.framework = "Foundation", "UIKit", "SwiftUI" - spec.dependency "StreamChat-XCFramework", "~> 4.55.0" + spec.dependency "StreamChat-XCFramework", "~> 4.56.0" spec.cocoapods_version = ">= 1.11.0" end diff --git a/StreamChatSwiftUI.podspec b/StreamChatSwiftUI.podspec index 14d9e300..139b8a50 100644 --- a/StreamChatSwiftUI.podspec +++ b/StreamChatSwiftUI.podspec @@ -19,6 +19,6 @@ Pod::Spec.new do |spec| spec.framework = "Foundation", "UIKit", "SwiftUI" - spec.dependency "StreamChat", "~> 4.55.0" + spec.dependency "StreamChat", "~> 4.56.0" end diff --git a/StreamChatSwiftUI.xcodeproj/project.pbxproj b/StreamChatSwiftUI.xcodeproj/project.pbxproj index 21dd9873..04588912 100644 --- a/StreamChatSwiftUI.xcodeproj/project.pbxproj +++ b/StreamChatSwiftUI.xcodeproj/project.pbxproj @@ -3376,7 +3376,7 @@ repositoryURL = "https://github.com/GetStream/stream-chat-swift.git"; requirement = { kind = upToNextMajorVersion; - minimumVersion = 4.55.0; + minimumVersion = 4.56.0; }; }; E3A1C01A282BAC66002D1E26 /* XCRemoteSwiftPackageReference "sentry-cocoa" */ = { diff --git a/StreamChatSwiftUITests/Infrastructure/Mocks/APIClient_Mock.swift b/StreamChatSwiftUITests/Infrastructure/Mocks/APIClient_Mock.swift index e5ef0e92..08944fda 100644 --- a/StreamChatSwiftUITests/Infrastructure/Mocks/APIClient_Mock.swift +++ b/StreamChatSwiftUITests/Infrastructure/Mocks/APIClient_Mock.swift @@ -9,7 +9,7 @@ import XCTest /// Mock implementation of APIClient allowing easy control and simulation of responses. class APIClientMock: APIClient, StreamChatTestTools.Spy { - var recordedFunctions: [String] = [] + var spyState: SpyState = .init() /// The last endpoint `request` function was called with. @Atomic var request_endpoint: AnyEndpoint? diff --git a/StreamChatSwiftUITests/Infrastructure/Mocks/ChatMessageControllerSUI_Mock.swift b/StreamChatSwiftUITests/Infrastructure/Mocks/ChatMessageControllerSUI_Mock.swift index 936f6fd6..d90c84fc 100644 --- a/StreamChatSwiftUITests/Infrastructure/Mocks/ChatMessageControllerSUI_Mock.swift +++ b/StreamChatSwiftUITests/Infrastructure/Mocks/ChatMessageControllerSUI_Mock.swift @@ -21,7 +21,12 @@ public class ChatMessageControllerSUI_Mock: ChatMessageController { if channelId == nil { channelId = try! .init(cid: "mock:channel") } - return .init(client: chatClient, cid: channelId!, messageId: messageId) + return .init( + client: chatClient, + cid: channelId!, + messageId: messageId, + replyPaginationHandler: chatClient.makeMessagesPaginationStateHandler() + ) } public var message_mock: ChatMessage?