Fix build errors triggered by moving code to LocalAccount module.

This commit is contained in:
Brent Simmons 2024-04-07 15:25:12 -07:00
parent 6b364f3fd3
commit 1a7c2251a3
3 changed files with 44 additions and 40 deletions

View File

@ -16,6 +16,7 @@ import Secrets
import Core
import CommonErrors
import FeedFinder
import LocalAccount
public enum LocalAccountDelegateError: String, Error {
case invalidParameter = "An invalid parameter was used."

View File

@ -20,6 +20,7 @@ import Core
import CloudKitExtras
import CommonErrors
import FeedFinder
import LocalAccount
enum CloudKitAccountDelegateError: LocalizedError {
case invalidParameter
@ -848,6 +849,7 @@ private extension CloudKitAccountDelegate {
container.addFeed(feed)
InitialFeedDownloader.download(url) { parsedFeed in
MainActor.assumeIsolated {
self.refreshProgress.completeTask()
if let parsedFeed {
@ -888,6 +890,7 @@ private extension CloudKitAccountDelegate {
completion(.failure(AccountError.createErrorNotFound))
}
}
}
case .failure:
self.refreshProgress.completeTasks(3)

View File

@ -21,7 +21,7 @@ public struct InitialFeedDownloader {
}
}
@MainActor static func download(_ url: URL,_ completion: @escaping @Sendable (_ parsedFeed: ParsedFeed?) -> Void) {
@MainActor public static func download(_ url: URL,_ completion: @escaping @Sendable (_ parsedFeed: ParsedFeed?) -> Void) {
downloadUsingCache(url) { (data, response, error) in
guard let data = data else {