File tree Expand file tree Collapse file tree
Neki-iOS/Features/Archive/Sources
Domain/Sources/Interfaces/Repositories Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,20 +29,6 @@ public struct FileManagerSharedImageRepository {
2929// MARK: - FileManagerSharedImageRepository + SharedImageRepository
3030
3131extension FileManagerSharedImageRepository : SharedImageRepository {
32- public func fetchSharedImages( appGroupID: String ) async throws -> [ ImageUploadEntity ] {
33- let fileURLs = try sharedImageURLs ( for: appGroupID)
34-
35- return fileURLs. compactMap { url in
36- do {
37- let data = try Data ( contentsOf: url)
38- return ImageUploadEntity ( data: data, format: data. detectedImageFormat)
39- } catch {
40- Logger . data. error ( " 공유된 이미지 읽기 실패: \( error. localizedDescription) " )
41- return nil
42- }
43- }
44- }
45-
4632 public func fetchSharedImageURLs( appGroupID: String ) async throws -> [ URL ] {
4733 return try sharedImageURLs ( for: appGroupID)
4834 }
Original file line number Diff line number Diff line change 88import Foundation
99
1010public protocol SharedImageRepository {
11- func fetchSharedImages( appGroupID: String ) async throws -> [ ImageUploadEntity ]
1211 func fetchSharedImageURLs( appGroupID: String ) async throws -> [ URL ]
1312 func clearSharedImages( appGroupID: String ) async throws
1413}
You can’t perform that action at this time.
0 commit comments