Skip to content

Commit a0bce13

Browse files
Update StreamChat dependency to 4.94.0 (#1060)
1 parent 96ec231 commit a0bce13

File tree

6 files changed

+16
-5
lines changed

6 files changed

+16
-5
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let package = Package(
1616
)
1717
],
1818
dependencies: [
19-
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.93.0")
19+
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.94.0")
2020
],
2121
targets: [
2222
.target(

StreamChatSwiftUI-XCFramework.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Pod::Spec.new do |spec|
1919

2020
spec.framework = 'Foundation', 'UIKit', 'SwiftUI'
2121

22-
spec.dependency 'StreamChat-XCFramework', '~> 4.93.0'
22+
spec.dependency 'StreamChat-XCFramework', '~> 4.94.0'
2323

2424
spec.cocoapods_version = '>= 1.11.0'
2525
end

StreamChatSwiftUI.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ Pod::Spec.new do |spec|
1919

2020
spec.framework = 'Foundation', 'UIKit', 'SwiftUI'
2121

22-
spec.dependency 'StreamChat', '~> 4.93.0'
22+
spec.dependency 'StreamChat', '~> 4.94.0'
2323
end

StreamChatSwiftUI.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3946,7 +3946,7 @@
39463946
repositoryURL = "https://github.com/GetStream/stream-chat-swift.git";
39473947
requirement = {
39483948
kind = upToNextMajorVersion;
3949-
minimumVersion = 4.93.0;
3949+
minimumVersion = 4.94.0;
39503950
};
39513951
};
39523952
E3A1C01A282BAC66002D1E26 /* XCRemoteSwiftPackageReference "sentry-cocoa" */ = {

StreamChatSwiftUITests/Infrastructure/Mocks/APIClient_Mock.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ class APIClientMock: APIClient, StreamChatTestTools.Spy {
6464
requestEncoder: requestEncoder,
6565
requestDecoder: requestDecoder,
6666
attachmentDownloader: StreamAttachmentDownloader(sessionConfiguration: sessionConfiguration),
67-
attachmentUploader: attachmentUploader
67+
attachmentUploader: attachmentUploader,
68+
cdnClient: CDNClient
6869
)
6970
}
7071

StreamChatSwiftUITests/Infrastructure/Mocks/CDNClient_Mock.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ import Foundation
66
@testable import StreamChat
77

88
final class CDNClient_Mock: CDNClient {
9+
lazy var deleteAttachmentMockFunc = MockFunc.mock(for: deleteAttachment)
10+
func deleteAttachment(remoteUrl: URL, completion: @escaping ((any Error)?) -> Void) {
11+
deleteAttachmentMockFunc.callAndReturn(
12+
(
13+
remoteUrl,
14+
completion
15+
)
16+
)
17+
}
18+
919
static var maxAttachmentSize: Int64 = .max
1020

1121
lazy var uploadAttachmentMockFunc = MockFunc.mock(for: uploadAttachment)

0 commit comments

Comments
 (0)