Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Use FileAsset #355

Merged
merged 1 commit into from
Dec 21, 2020
Merged
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
2 changes: 1 addition & 1 deletion r2-testapp-swift/Library/LibraryService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ final class LibraryService: Loggable {
/// Opens the Readium 2 Publication at the given `url`.
private func openPublication(at url: URL, allowUserInteraction: Bool, sender: UIViewController?) -> Deferred<Publication, Error> {
return deferred {
self.streamer.open(file: File(url: url), allowUserInteraction: allowUserInteraction, sender: sender, completion: $0)
self.streamer.open(asset: FileAsset(url: url), allowUserInteraction: allowUserInteraction, sender: sender, completion: $0)
}
.eraseToAnyError()
}
Expand Down