Skip to content

Commit

Permalink
chore(ios): update dependency declarations to use shorthand Dependenc…
Browse files Browse the repository at this point in the history
…yValues key
  • Loading branch information
autoreleasefool committed May 19, 2024
1 parent 9b2b1af commit c67d4e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ios/Approach/Sources/ErrorsFeature/ErrorReport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public struct ErrorReport: Reducer {

var logData: Data? {
guard let logDataUrl else { return nil }
@Dependency(FileManagerService.self) var fileManager
@Dependency(\.fileManager) var fileManager
return try? fileManager.getFileContents(logDataUrl)
}

Expand Down Expand Up @@ -78,7 +78,7 @@ public struct ErrorReport: Reducer {

@Dependency(\.dismiss) var dismiss
@Dependency(\.openURL) var openURL
@Dependency(PasteboardService.self) var pasteboard
@Dependency(\.pasteboard) var pasteboard

public var body: some ReducerOf<Self> {
BindingReducer()
Expand Down
2 changes: 1 addition & 1 deletion ios/Approach/Sources/GamesEditorFeature/GamesEditor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public struct GamesEditor: Reducer {
@Dependency(MatchPlaysRepository.self) var matchPlays
@Dependency(RecentlyUsedService.self) var recentlyUsed
@Dependency(ScoresRepository.self) var scores
@Dependency(StoreReviewService.self) var storeReview
@Dependency(\.storeReview) var storeReview

public var body: some ReducerOf<Self> {
BindingReducer()
Expand Down
2 changes: 1 addition & 1 deletion ios/Approach/Sources/SettingsFeature/Settings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public struct Settings: Reducer {
@Dependency(EmailService.self) var email
@Dependency(ExportService.self) var export
@Dependency(\.openURL) var openURL
@Dependency(PasteboardService.self) var pasteboard
@Dependency(\.pasteboard) var pasteboard

public init() {}

Expand Down

0 comments on commit c67d4e3

Please sign in to comment.