Skip to content

Commit 3de97aa

Browse files
Updated StreamChat dependency
1 parent 41570f1 commit 3de97aa

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let package = Package(
1717
)
1818
],
1919
dependencies: [
20-
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.23.0"),
20+
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.24.0"),
2121
.package(url: "https://github.com/kean/Nuke.git", .exact("11.3.1"))
2222
],
2323
targets: [

Sources/StreamChatSwiftUI/ChatChannel/MessageList/ImageAttachmentView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ struct ImageAttachmentView: View {
132132
if let state = attachment.uploadingState {
133133
return state.localFileURL
134134
} else {
135-
return attachment.imagePreviewURL
135+
return attachment.imageURL
136136
}
137137
}
138138
}

Sources/StreamChatSwiftUI/ChatChannel/MessageList/QuotedMessageView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public struct QuotedMessageView<Factory: ViewFactory>: View {
8888
ZStack {
8989
if !quotedMessage.imageAttachments.isEmpty {
9090
LazyLoadingImage(
91-
source: quotedMessage.imageAttachments[0].imagePreviewURL,
91+
source: quotedMessage.imageAttachments[0].imageURL,
9292
width: attachmentWidth,
9393
height: attachmentWidth,
9494
resize: false

StreamChatSwiftUI.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", "~> 4.23.0"
22+
spec.dependency "StreamChat", "~> 4.24.0"
2323
spec.dependency "SwiftyGif", "~> 5.0"
2424
spec.dependency "NukeUI", "0.8.0"
2525
end

StreamChatSwiftUI.xcodeproj/project.pbxproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2552,7 +2552,7 @@
25522552
CODE_SIGN_ENTITLEMENTS = DemoAppSwiftUI/DemoAppSwiftUI.entitlements;
25532553
CODE_SIGN_IDENTITY = "Apple Development";
25542554
CODE_SIGN_STYLE = Manual;
2555-
CURRENT_PROJECT_VERSION = 22;
2555+
CURRENT_PROJECT_VERSION = 24;
25562556
DEVELOPMENT_ASSET_PATHS = "\"DemoAppSwiftUI/Preview Content\"";
25572557
DEVELOPMENT_TEAM = EHV7XZLAHA;
25582558
ENABLE_PREVIEWS = YES;
@@ -2567,7 +2567,7 @@
25672567
"$(inherited)",
25682568
"@executable_path/Frameworks",
25692569
);
2570-
MARKETING_VERSION = 4.22.0;
2570+
MARKETING_VERSION = 4.24.0;
25712571
PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.DemoAppSwiftUI;
25722572
PRODUCT_NAME = "$(TARGET_NAME)";
25732573
PROVISIONING_PROFILE_SPECIFIER = "match Development io.getstream.iOS.DemoAppSwiftUI";
@@ -2586,7 +2586,7 @@
25862586
CODE_SIGN_ENTITLEMENTS = DemoAppSwiftUI/DemoAppSwiftUI.entitlements;
25872587
CODE_SIGN_IDENTITY = "Apple Distribution";
25882588
CODE_SIGN_STYLE = Manual;
2589-
CURRENT_PROJECT_VERSION = 22;
2589+
CURRENT_PROJECT_VERSION = 24;
25902590
DEVELOPMENT_ASSET_PATHS = "\"DemoAppSwiftUI/Preview Content\"";
25912591
DEVELOPMENT_TEAM = EHV7XZLAHA;
25922592
ENABLE_PREVIEWS = YES;
@@ -2602,7 +2602,7 @@
26022602
"$(inherited)",
26032603
"@executable_path/Frameworks",
26042604
);
2605-
MARKETING_VERSION = 4.22.0;
2605+
MARKETING_VERSION = 4.24.0;
26062606
PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.DemoAppSwiftUI;
26072607
PRODUCT_NAME = "$(TARGET_NAME)";
26082608
PROVISIONING_PROFILE_SPECIFIER = "match AppStore io.getstream.iOS.DemoAppSwiftUI";
@@ -2709,7 +2709,7 @@
27092709
repositoryURL = "https://github.com/GetStream/stream-chat-swift.git";
27102710
requirement = {
27112711
kind = upToNextMajorVersion;
2712-
minimumVersion = 4.23.0;
2712+
minimumVersion = 4.24.0;
27132713
};
27142714
};
27152715
A3571601283E9D9F0014E3B0 /* XCRemoteSwiftPackageReference "swifter" */ = {

StreamChatSwiftUITests/Infrastructure/Mocks/APIClient_Mock.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class APIClientMock: APIClient, Spy {
4343
uploadFile_completion = nil
4444
}
4545

46-
override init(
46+
init(
4747
sessionConfiguration: URLSessionConfiguration,
4848
requestEncoder: RequestEncoder,
4949
requestDecoder: RequestDecoder,
@@ -55,13 +55,14 @@ class APIClientMock: APIClient, Spy {
5555
init_requestEncoder = requestEncoder
5656
init_requestDecoder = requestDecoder
5757
init_CDNClient = CDNClient
58+
let attachmentUploader = StreamAttachmentUploader(cdnClient: CDNClient)
5859
request_expectation = .init()
5960

6061
super.init(
6162
sessionConfiguration: sessionConfiguration,
6263
requestEncoder: requestEncoder,
6364
requestDecoder: requestDecoder,
64-
CDNClient: CDNClient,
65+
attachmentUploader: attachmentUploader,
6566
tokenRefresher: tokenRefresher,
6667
queueOfflineRequest: queueOfflineRequest
6768
)
@@ -97,7 +98,7 @@ class APIClientMock: APIClient, Spy {
9798
_recoveryRequest_allRecordedCalls.mutate { $0.append((recoveryRequest_endpoint!, recoveryRequest_completion!)) }
9899
}
99100

100-
override func uploadAttachment(
101+
func uploadAttachment(
101102
_ attachment: AnyChatMessageAttachment,
102103
progress: ((Double) -> Void)?,
103104
completion: @escaping (Result<URL, Error>) -> Void

0 commit comments

Comments
 (0)