Skip to content

Commit

Permalink
fix: Small fixes after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeWeidmann committed Jan 29, 2024
1 parent bdbd3a5 commit a3f1437
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
3 changes: 3 additions & 0 deletions Mail/Helpers/MailTargetAssembly.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ open class CommonAppAndShareTargetAssembly: TargetAssembly {
},
Factory(type: ApplicationStatable.self) { _, _ in
ApplicationState()
},
Factory(type: URLOpenable.self) { _, _ in
URLOpener()
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion Mail/Views/Attachment/AttachmentPreview.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ struct AttachmentPreview: View {
Spacer()

Button {
guard let attachmentURL = attachment.localUrl else { return }
let attachmentURL = attachment.localUrl
do {
try DeeplinkService().shareFileToKdrive(attachmentURL)
} catch {
Expand Down
20 changes: 0 additions & 20 deletions MailCore/Utils/TargetAssembly.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,26 +123,6 @@ open class TargetAssembly {
]
}

private static func setupProxyTypes() {
let factories = [
Factory(type: CacheManageable.self) { _, _ in
CacheManager()
},
Factory(type: OrientationManageable.self) { _, _ in
OrientationManager()
},
Factory(type: RemoteNotificationRegistrable.self) { _, _ in
RemoteNotificationRegistrer()
},
Factory(type: MessageActionHandlable.self) { _, _ in
MessageActionHandler()
},
Factory(type: URLOpenable.self) { _, _ in
URLOpener()
}
]
}

open class func getTargetServices() -> [Factory] {
DDLogWarn("targetServices is not implemented in subclass ? Did you forget to override ?")
return []
Expand Down

0 comments on commit a3f1437

Please sign in to comment.