Skip to content

Commit

Permalink
Updated StreamChat dependency (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmitrevski authored Jun 27, 2024
1 parent a9bc868 commit 196cb55
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 5 deletions.
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.57.0"),
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.58.0"),
],
targets: [
.target(
Expand Down
1 change: 1 addition & 0 deletions Sources/StreamChatSwiftUI/StreamChat.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class StreamChat {
appearance: Appearance = Appearance(),
utils: Utils = Utils()
) {
StreamRuntimeCheck._isDatabaseObserverItemReusingEnabled = false
self.chatClient = chatClient
self.appearance = appearance
self.utils = utils
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.57.0'
spec.dependency 'StreamChat-XCFramework', '~> 4.58.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.57.0'
spec.dependency 'StreamChat', '~> 4.58.0'
end
2 changes: 1 addition & 1 deletion StreamChatSwiftUI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3705,7 +3705,7 @@
repositoryURL = "https://github.com/GetStream/stream-chat-swift.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 4.57.0;
minimumVersion = 4.58.0;
};
};
E3A1C01A282BAC66002D1E26 /* XCRemoteSwiftPackageReference "sentry-cocoa" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class ReactionsOverlayView_Tests: StreamChatTestCase {
// Given
let author = ChatUser.mock(id: .unique, name: "Martin")
let reaction = ChatMessageReaction(
id: .unique,
type: .init(rawValue: "love"),
score: 1,
createdAt: Date(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class ReactionsUsersView_Tests: StreamChatTestCase {
// Given
let author = ChatUser.mock(id: .unique, name: "Martin")
let reaction = ChatMessageReaction(
id: .unique,
type: .init(rawValue: "love"),
score: 1,
createdAt: Date(),
Expand Down Expand Up @@ -44,6 +45,7 @@ class ReactionsUsersView_Tests: StreamChatTestCase {
for _ in 0..<8 {
let author = ChatUser.mock(id: .unique, name: "Martin")
let reaction = ChatMessageReaction(
id: .unique,
type: .init(rawValue: "love"),
score: 1,
createdAt: Date(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ extension StreamTestCase {
return
}
server.stop()
MockServerConfiguration.port = Int.random(in: 61000..<62000)
MockServerConfiguration.port = UInt16(Int.random(in: 61000..<62000))
}

mockServerCrashed = true
Expand Down

0 comments on commit 196cb55

Please sign in to comment.