Skip to content

Commit

Permalink
chore(ios): add more Sendable conformance
Browse files Browse the repository at this point in the history
  • Loading branch information
autoreleasefool committed Oct 1, 2024
1 parent 157904e commit ac3f004
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Foundation
import ModelsLibrary

extension Game {
public enum Ordering: Hashable, CaseIterable {
public enum Ordering: Hashable, CaseIterable, Sendable {
case byIndex
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ModelsLibrary

public struct QuickLaunchSource: Equatable, Codable {
public struct QuickLaunchSource: Equatable, Codable, Sendable {
public let bowler: Bowler.Summary
public let league: League.SeriesHost
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import ModelsLibrary

extension Frame {
public struct TrackableEntry: Identifiable, Decodable, Equatable, InspectableFrame {
public struct TrackableEntry: Identifiable, Decodable, Equatable, Sendable, InspectableFrame {
public let seriesId: Series.ID
public let gameId: Game.ID
public let gameIndex: Int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import ModelsLibrary

extension Game {
public struct TrackableEntry: Identifiable, Decodable, Equatable {
public struct TrackableEntry: Identifiable, Decodable, Equatable, Sendable {
public let seriesId: Series.ID
public let id: Game.ID
public let index: Int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import ModelsLibrary

extension MatchPlay {
public struct TrackableEntry: Identifiable, Codable, Equatable {
public struct TrackableEntry: Identifiable, Codable, Equatable, Sendable {
public let id: MatchPlay.ID
public let result: MatchPlay.Result?
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import ModelsLibrary

extension Series {
public struct TrackableEntry: Identifiable, Decodable, Equatable {
public struct TrackableEntry: Identifiable, Decodable, Equatable, Sendable {
public let id: Series.ID
public let numberOfGames: Int
public let total: Int
Expand Down
2 changes: 1 addition & 1 deletion ios/Approach/Sources/StatisticsLibrary/Statistic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import StringsLibrary

public enum Statistics {}

public protocol Statistic {
public protocol Statistic: Sendable {
static var title: String { get }
static var category: StatisticCategory { get }
static var isEligibleForNewLabel: Bool { get }
Expand Down

0 comments on commit ac3f004

Please sign in to comment.