Skip to content

Commit

Permalink
Updated StreamChat dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmitrevski committed Nov 16, 2022
1 parent 41570f1 commit 3de97aa
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let package = Package(
)
],
dependencies: [
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.23.0"),
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.24.0"),
.package(url: "https://github.com/kean/Nuke.git", .exact("11.3.1"))
],
targets: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ struct ImageAttachmentView: View {
if let state = attachment.uploadingState {
return state.localFileURL
} else {
return attachment.imagePreviewURL
return attachment.imageURL
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public struct QuotedMessageView<Factory: ViewFactory>: View {
ZStack {
if !quotedMessage.imageAttachments.isEmpty {
LazyLoadingImage(
source: quotedMessage.imageAttachments[0].imagePreviewURL,
source: quotedMessage.imageAttachments[0].imageURL,
width: attachmentWidth,
height: attachmentWidth,
resize: false
Expand Down
2 changes: 1 addition & 1 deletion StreamChatSwiftUI.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Pod::Spec.new do |spec|

spec.framework = "Foundation", "UIKit", "SwiftUI"

spec.dependency "StreamChat", "~> 4.23.0"
spec.dependency "StreamChat", "~> 4.24.0"
spec.dependency "SwiftyGif", "~> 5.0"
spec.dependency "NukeUI", "0.8.0"
end
Expand Down
10 changes: 5 additions & 5 deletions StreamChatSwiftUI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2552,7 +2552,7 @@
CODE_SIGN_ENTITLEMENTS = DemoAppSwiftUI/DemoAppSwiftUI.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 22;
CURRENT_PROJECT_VERSION = 24;
DEVELOPMENT_ASSET_PATHS = "\"DemoAppSwiftUI/Preview Content\"";
DEVELOPMENT_TEAM = EHV7XZLAHA;
ENABLE_PREVIEWS = YES;
Expand All @@ -2567,7 +2567,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 4.22.0;
MARKETING_VERSION = 4.24.0;
PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.DemoAppSwiftUI;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "match Development io.getstream.iOS.DemoAppSwiftUI";
Expand All @@ -2586,7 +2586,7 @@
CODE_SIGN_ENTITLEMENTS = DemoAppSwiftUI/DemoAppSwiftUI.entitlements;
CODE_SIGN_IDENTITY = "Apple Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 22;
CURRENT_PROJECT_VERSION = 24;
DEVELOPMENT_ASSET_PATHS = "\"DemoAppSwiftUI/Preview Content\"";
DEVELOPMENT_TEAM = EHV7XZLAHA;
ENABLE_PREVIEWS = YES;
Expand All @@ -2602,7 +2602,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 4.22.0;
MARKETING_VERSION = 4.24.0;
PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.DemoAppSwiftUI;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "match AppStore io.getstream.iOS.DemoAppSwiftUI";
Expand Down Expand Up @@ -2709,7 +2709,7 @@
repositoryURL = "https://github.com/GetStream/stream-chat-swift.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 4.23.0;
minimumVersion = 4.24.0;
};
};
A3571601283E9D9F0014E3B0 /* XCRemoteSwiftPackageReference "swifter" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class APIClientMock: APIClient, Spy {
uploadFile_completion = nil
}

override init(
init(
sessionConfiguration: URLSessionConfiguration,
requestEncoder: RequestEncoder,
requestDecoder: RequestDecoder,
Expand All @@ -55,13 +55,14 @@ class APIClientMock: APIClient, Spy {
init_requestEncoder = requestEncoder
init_requestDecoder = requestDecoder
init_CDNClient = CDNClient
let attachmentUploader = StreamAttachmentUploader(cdnClient: CDNClient)
request_expectation = .init()

super.init(
sessionConfiguration: sessionConfiguration,
requestEncoder: requestEncoder,
requestDecoder: requestDecoder,
CDNClient: CDNClient,
attachmentUploader: attachmentUploader,
tokenRefresher: tokenRefresher,
queueOfflineRequest: queueOfflineRequest
)
Expand Down Expand Up @@ -97,7 +98,7 @@ class APIClientMock: APIClient, Spy {
_recoveryRequest_allRecordedCalls.mutate { $0.append((recoveryRequest_endpoint!, recoveryRequest_completion!)) }
}

override func uploadAttachment(
func uploadAttachment(
_ attachment: AnyChatMessageAttachment,
progress: ((Double) -> Void)?,
completion: @escaping (Result<URL, Error>) -> Void
Expand Down

0 comments on commit 3de97aa

Please sign in to comment.