Skip to content
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 Sources/StreamAttachments/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>0.6.4</string>
<string>0.7.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion Sources/StreamCore/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>0.6.4</string>
<string>0.7.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
9 changes: 6 additions & 3 deletions Sources/StreamCore/OpenAPI/Query/Sort.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// - Parameters:
/// - rawValue: The string identifier used for remote API requests
/// - localValue: A closure that extracts the comparable value from a model instance
init<Value>(_ rawValue: String, localValue: @escaping @Sendable (Model) -> Value) where Value: Comparable
init<Value>(_ rawValue: String, localValue: @escaping @Sendable (Model) -> Value) where Value: Comparable & Sendable

Check warning on line 29 in Sources/StreamCore/OpenAPI/Query/Sort.swift

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove the unused function parameter "rawValue" or name it "_".

See more on https://sonarcloud.io/project/issues?id=GetStream_stream-core-swift&issues=AZ6xcfWlwmy3pcsxEgS_&open=AZ6xcfWlwmy3pcsxEgS_&pullRequest=53

Check warning on line 29 in Sources/StreamCore/OpenAPI/Query/Sort.swift

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove the unused function parameter "localValue" or name it "_".

See more on https://sonarcloud.io/project/issues?id=GetStream_stream-core-swift&issues=AZ6xcfWlwmy3pcsxEgTA&open=AZ6xcfWlwmy3pcsxEgTA&pullRequest=53
}

/// A sort configuration that combines a sort field with a direction.
Expand Down Expand Up @@ -142,8 +142,11 @@
/// Creates a type-erased comparator from a specific comparator instance.
///
/// - Parameter sort: The specific comparator to wrap
public init<Value: Comparable>(localValue: @escaping @Sendable (Model) -> Value) {
compare = SortComparator(localValue: localValue).compare
public init<Value: Comparable & Sendable>(localValue: @escaping @Sendable (Model) -> Value) {
let comparator = SortComparator(localValue: localValue)
compare = { @Sendable lhs, rhs, direction in
comparator.compare(lhs, rhs, direction: direction)
}
}

/// Compares two model instances using the wrapped comparator.
Expand Down
2 changes: 1 addition & 1 deletion Sources/StreamCore/Utils/SystemEnvironment+Version.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import Foundation

enum SystemEnvironment {
/// A Stream Core version.
public static let version: String = "0.6.4"
public static let version: String = "0.7.0"
}
2 changes: 1 addition & 1 deletion Sources/StreamCoreUI/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>0.6.4</string>
<string>0.7.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
Loading