8000 Update StreamChat dependency to 4.71.0 by testableapple · Pull Request #732 · GetStream/stream-chat-swiftui · GitHub
[go: up one dir, main page]

Skip to content

Update StreamChat dependency to 4.71.0 #732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let package = Package(
)
],
dependencies: [
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.70.0"),
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.71.0"),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion StreamChatSwiftUI-XCFramework.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-XCFramework', '~> 4.70.0'
spec.dependency 'StreamChat-XCFramework', '~> 4.71.0'

spec.cocoapods_version = '>= 1.11.0'
end
2 changes: 1 addition & 1 deletion StreamChatSwiftUI.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ Pod::Spec.new do |spec|

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

spec.dependency 'StreamChat', '~> 4.70.0'
spec.dependency 'StreamChat', '~> 4.71.0'
end
2 changes: 1 addition & 1 deletion StreamChatSwiftUI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3844,7 +3844,7 @@
repositoryURL = "https://github.com/GetStream/stream-chat-swift.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 4.70.0;
minimumVersion = 4.71.0;
};
};
E3A1C01A282BAC66002D1E26 /* XCRemoteSwiftPackageReference "sentry-cocoa" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,8 @@ public extension ChatClient {
databaseContainerBuilder: {
DatabaseContainer_Spy(
kind: $0,
shouldFlushOnStart: $1,
shouldResetEphemeralValuesOnStart: $2,
bundle: Bundle(for: StreamChatTestCase.self),
localCachingSettings: $3,
deletedMessagesVisibility: $4,
shouldShowShadowedMessages: $5
chatClientConfig: $1
)
},
authenticationRepositoryBuilder: AuthenticationRepository_Mock.init
10000 Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class ChatChannelListViewModel_Tests: StreamChatTestCase {
}

func test_loadAdditionalSearchResults_whenSearchTypeIsMessages_shouldLoadNextMessages() {
let messageSearchController = ChatMessageSearchController_Mock.mock()
let messageSearchController = ChatMessageSearchController_Mock.mock(client: .mock(isLocalStorageEnabled: false))
let viewModel = makeDefaultChannelListVM(searchType: .messages)
viewModel.messageSearchController = messageSearchController

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ class ChatThreadListViewModel_Tests: StreamChatTestCase {

func test_viewDidAppear_thenLoadsThreads() {
let mockThreadListController = ChatThreadListController_Mock.mock(
query: .init(watch: true)
query: .init(watch: true),
client: .mock(isLocalStorageEnabled: false)
)
let viewModel = ChatThreadListViewModel(
threadListController: mockThreadListController
Expand All @@ -23,7 +24,8 @@ class ChatThreadListViewModel_Tests: StreamChatTestCase {

func test_viewDidAppear_whenAlreadyLoadedThreads_thenDoesNotLoadsThreads() {
let mockThreadListController = ChatThreadListController_Mock.mock(
query: .init(watch: true)
query: .init(watch: true),
client: .mock(isLocalStorageEnabled: false)
)
let viewModel = ChatThreadListViewModel(
threadListController: mockThreadListController
Expand All @@ -38,7 +40,8 @@ class ChatThreadListViewModel_Tests: StreamChatTestCase {

func test_loadThreads_whenInitialEmptyData_whenSuccess() {
let mockThreadListController = ChatThreadListController_Mock.mock(
query: .init(watch: true)
query: .init(watch: true),
client: .mock(isLocalStorageEnabled: false)
)
mockThreadListController.threads_mock = []
let viewModel = ChatThreadListViewModel(
Expand All @@ -64,7 +67,8 @@ class ChatThreadListViewModel_Tests: StreamChatTestCase {

func test_loadThreads_whenCacheAvailable_whenSuccess() {
let mockThreadListController = ChatThreadListController_Mock.mock(
query: .init(watch: true)
query: .init(watch: true),
client: .mock(isLocalStorageEnabled: false)
)
mockThreadListController.threads_mock = [.mock()]
let viewModel = ChatThreadListViewModel(
Expand All @@ -90,7 +94,8 @@ class ChatThreadListViewModel_Tests: StreamChatTestCase {

func test_loadThreads_whenError() {
let mockThreadListController = ChatThreadListController_Mock.mock(
query: .init(watch: true)
query: .init(watch: true),
client: .mock(isLocalStorageEnabled: false)
)
mockThreadListController.threads_mock = []
let viewModel = ChatThreadListViewModel(
Expand All @@ -110,7 +115,8 @@ class ChatThreadListViewModel_Tests: StreamChatTestCase {

func test_didAppearThread_whenInsideThreshold_thenLoadMoreThreads() {
let mockThreadListController = ChatThreadListController_Mock.mock(
query: .init(watch: true)
query: .init(watch: true),
client: .mock(isLocalStorageEnabled: false)
)
let viewModel = ChatThreadListViewModel(
threadListController: mockThreadListController
Expand All @@ -131,7 +137,8 @@ class ChatThreadListViewModel_Tests: StreamChatTestCase {

func test_didAppearThread_whenNotInThreshold_thenDoNotLoadMoreThreads() {
let mockThreadListController = ChatThreadListController_Mock.mock(
query: .init(watch: true)
query: .init(watch: true),
client: .mock(isLocalStorageEnabled: false)
)
let viewModel = ChatThreadListViewModel(
threadListController: mockThreadListController
Expand All @@ -152,7 +159,8 @@ class ChatThreadListViewModel_Tests: StreamChatTestCase {

func test_didReceiveThreadMessageNewEvent() {
let mockThreadListController = ChatThreadListController_Mock.mock(
query: .init(watch: true)
query: .init(watch: true),
client: .mock(isLocalStorageEnabled: false)
)
let viewModel = ChatThreadListViewModel(
threadListController: mockThreadListController
Expand Down
Loading
0