Skip to content

Commit

Permalink
Updated StreamChat dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmitrevski committed Sep 18, 2023
1 parent 18d4621 commit 8fdf7cf
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
# Upcoming

### 🔄 Changed
- Updated `StreamChat` dependency

# [4.36.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.36.0)
_August 31, 2023_
Expand Down
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.36.0"),
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.37.0"),
.package(url: "https://github.com/kean/Nuke.git", .exact("11.3.1"))
],
targets: [
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.36.0"
spec.dependency "StreamChat", "~> 4.37.0"
spec.dependency "SwiftyGif", "~> 5.0"
spec.dependency "NukeUI", "0.8.0"
end
Expand Down
2 changes: 1 addition & 1 deletion StreamChatSwiftUI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2737,7 +2737,7 @@
repositoryURL = "https://github.com/GetStream/stream-chat-swift.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 4.36.0;
minimumVersion = 4.37.0;
};
};
A3571601283E9D9F0014E3B0 /* XCRemoteSwiftPackageReference "swifter" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ class APIClientMock: APIClient, Spy {
sessionConfiguration: sessionConfiguration,
requestEncoder: requestEncoder,
requestDecoder: requestDecoder,
attachmentUploader: attachmentUploader,
tokenRefresher: tokenRefresher,
queueOfflineRequest: queueOfflineRequest
attachmentUploader: attachmentUploader
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ public extension ChatClient {
}
}

extension ChatClient {
convenience init(config: ChatClientConfig, environment: ChatClient.Environment) {
self.init(
config: config,
environment: environment,
factory: ChatClientFactory(config: config, environment: environment)
)
}
}

// ===== TEMP =====

class APIClient_Mock: APIClient {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ChatChannelExtensions_Tests: StreamChatTestCase {
// Given
let user = ChatUser.mock(id: .unique)
let messages = [ChatMessage.mock(id: .unique, cid: .unique, text: "Test", author: ChatUser.mock(id: .unique))]
let read = ChatChannelRead(lastReadAt: Date(), unreadMessagesCount: 0, user: user)
let read = ChatChannelRead(lastReadAt: Date(), lastReadMessageId: nil, unreadMessagesCount: 0, user: user)
let channel = ChatChannel.mockDMChannel(reads: [read], latestMessages: messages)

// When
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class ChatChannelViewModel_Tests: StreamChatTestCase {
let channelController = makeChannelController()
let viewModel = ChatChannelViewModel(channelController: channelController)
let channel = ChatChannel.mockDMChannel()
let read = ChatChannelRead.mock(lastReadAt: Date(), unreadMessagesCount: 1, user: .mock(id: .unique))
let read = ChatChannelRead.mock(lastReadAt: Date(), lastReadMessageId: nil, unreadMessagesCount: 1, user: .mock(id: .unique))
let newChannel = ChatChannel.mockDMChannel(reads: [read])

// When
Expand Down

0 comments on commit 8fdf7cf

Please sign in to comment.