Skip to content
Open
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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ var package = Package(
dependencies: [
.package(url: "https://github.com/apple/swift-crypto", from: "1.1.6"),
.package(url: "https://github.com/pointfreeco/swift-case-paths", from: "1.1.0"),
.package(url: "https://github.com/pointfreeco/swift-composable-architecture", from: "1.12.0"),
.package(url: "https://github.com/pointfreeco/swift-composable-architecture", from: "1.20.2"),
.package(url: "https://github.com/pointfreeco/swift-custom-dump", from: "1.3.3"),
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.1.0"),
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.9.2"),
.package(url: "https://github.com/pointfreeco/swift-gen", from: "0.3.0"),
.package(url: "https://github.com/pointfreeco/swift-parsing", from: "0.12.0"),
.package(url: "https://github.com/pointfreeco/swift-tagged", from: "0.6.0"),
Expand Down
4 changes: 2 additions & 2 deletions Sources/ComposableGameCenter/Interface.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import Tagged
public struct GameCenterClient {
public var gameCenterViewController: GameCenterViewControllerClient
public var localPlayer: LocalPlayerClient
public var reportAchievements: @Sendable ([GKAchievement]) async throws -> Void
public var showNotificationBanner: @Sendable (NotificationBannerRequest) async -> Void
public var turnBasedMatch: TurnBasedMatchClient
public var turnBasedMatchmakerViewController: TurnBasedMatchmakerViewControllerClient
public var reportAchievements: @Sendable ([GKAchievement]) async throws -> Void
public var showNotificationBanner: @Sendable (NotificationBannerRequest) async -> Void

public struct NotificationBannerRequest: Equatable {
public var message: String?
Expand Down
6 changes: 3 additions & 3 deletions Sources/ComposableGameCenter/LiveKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
Self(
gameCenterViewController: .live,
localPlayer: .live,
turnBasedMatch: .live,
turnBasedMatchmakerViewController: .live,
reportAchievements: { try await GKAchievement.report($0) },
showNotificationBanner: {
await GKNotificationBanner.show(withTitle: $0.title, message: $0.message)
},
turnBasedMatch: .live,
turnBasedMatchmakerViewController: .live
}
)
}()
}
Expand Down
6 changes: 3 additions & 3 deletions Sources/ComposableGameCenter/TestKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ extension GameCenterClient {
public static let noop = Self(
gameCenterViewController: .noop,
localPlayer: .noop,
reportAchievements: { _ in },
showNotificationBanner: { _ in },
turnBasedMatch: .noop,
turnBasedMatchmakerViewController: .noop
turnBasedMatchmakerViewController: .noop,
reportAchievements: { _ in },
showNotificationBanner: { _ in }
)
}

Expand Down