diff --git a/Package.swift b/Package.swift index 28246de0..4a99f760 100644 --- a/Package.swift +++ b/Package.swift @@ -16,7 +16,7 @@ let package = Package( ) ], dependencies: [ - .package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.93.0") + .package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.94.0") ], targets: [ .target( diff --git a/StreamChatSwiftUI-XCFramework.podspec b/StreamChatSwiftUI-XCFramework.podspec index 0cf88805..72755a84 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.93.0' + spec.dependency 'StreamChat-XCFramework', '~> 4.94.0' spec.cocoapods_version = '>= 1.11.0' end diff --git a/StreamChatSwiftUI.podspec b/StreamChatSwiftUI.podspec index 5b25b08f..ff698501 100644 --- a/StreamChatSwiftUI.podspec +++ b/StreamChatSwiftUI.podspec @@ -19,5 +19,5 @@ Pod::Spec.new do |spec| spec.framework = 'Foundation', 'UIKit', 'SwiftUI' - spec.dependency 'StreamChat', '~> 4.93.0' + spec.dependency 'StreamChat', '~> 4.94.0' end diff --git a/StreamChatSwiftUI.xcodeproj/project.pbxproj b/StreamChatSwiftUI.xcodeproj/project.pbxproj index 9eb15a08..bad6912d 100644 --- a/StreamChatSwiftUI.xcodeproj/project.pbxproj +++ b/StreamChatSwiftUI.xcodeproj/project.pbxproj @@ -3946,7 +3946,7 @@ repositoryURL = "https://github.com/GetStream/stream-chat-swift.git"; requirement = { kind = upToNextMajorVersion; - minimumVersion = 4.93.0; + minimumVersion = 4.94.0; }; }; E3A1C01A282BAC66002D1E26 /* XCRemoteSwiftPackageReference "sentry-cocoa" */ = { diff --git a/StreamChatSwiftUITests/Infrastructure/Mocks/APIClient_Mock.swift b/StreamChatSwiftUITests/Infrastructure/Mocks/APIClient_Mock.swift index b22aa221..a12b986e 100644 --- a/StreamChatSwiftUITests/Infrastructure/Mocks/APIClient_Mock.swift +++ b/StreamChatSwiftUITests/Infrastructure/Mocks/APIClient_Mock.swift @@ -64,7 +64,8 @@ class APIClientMock: APIClient, StreamChatTestTools.Spy { requestEncoder: requestEncoder, requestDecoder: requestDecoder, attachmentDownloader: StreamAttachmentDownloader(sessionConfiguration: sessionConfiguration), - attachmentUploader: attachmentUploader + attachmentUploader: attachmentUploader, + cdnClient: CDNClient ) } diff --git a/StreamChatSwiftUITests/Infrastructure/Mocks/CDNClient_Mock.swift b/StreamChatSwiftUITests/Infrastructure/Mocks/CDNClient_Mock.swift index 37c1cbdd..4ba2b103 100644 --- a/StreamChatSwiftUITests/Infrastructure/Mocks/CDNClient_Mock.swift +++ b/StreamChatSwiftUITests/Infrastructure/Mocks/CDNClient_Mock.swift @@ -6,6 +6,16 @@ import Foundation @testable import StreamChat final class CDNClient_Mock: CDNClient { + lazy var deleteAttachmentMockFunc = MockFunc.mock(for: deleteAttachment) + func deleteAttachment(remoteUrl: URL, completion: @escaping ((any Error)?) -> Void) { + deleteAttachmentMockFunc.callAndReturn( + ( + remoteUrl, + completion + ) + ) + } + static var maxAttachmentSize: Int64 = .max lazy var uploadAttachmentMockFunc = MockFunc.mock(for: uploadAttachment)