diff --git a/TestApp/Sources/Info.plist b/TestApp/Sources/Info.plist
index 21b3e7f92..a6f57474c 100644
--- a/TestApp/Sources/Info.plist
+++ b/TestApp/Sources/Info.plist
@@ -228,9 +228,9 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 2.2.2
+ 2.6.0
CFBundleVersion
- 2.2.2
+ 2.6.0
LSRequiresIPhoneOS
LSSupportsOpeningDocumentsInPlace
@@ -243,7 +243,6 @@
UIBackgroundModes
audio
- processing
UIFileSharingEnabled
diff --git a/TestApp/Sources/Library/LibraryService.swift b/TestApp/Sources/Library/LibraryService.swift
index 778962741..2a1d1a73a 100644
--- a/TestApp/Sources/Library/LibraryService.swift
+++ b/TestApp/Sources/Library/LibraryService.swift
@@ -103,6 +103,14 @@ final class LibraryService: Loggable {
/// document.
@discardableResult
func importPublication(from sourceURL: URL, sender: UIViewController, progress: @escaping (Double) -> Void = { _ in }) async throws -> Book {
+ // Necessary to read URL exported from the Files app, for example.
+ let shouldRelinquishAccess = sourceURL.startAccessingSecurityScopedResource()
+ defer {
+ if shouldRelinquishAccess {
+ sourceURL.stopAccessingSecurityScopedResource()
+ }
+ }
+
var url = try await downloadIfNeeded(sourceURL, progress: progress)
url = try await fulfillIfNeeded(url)
let (pub, mediaType) = try await openPublication(at: url, allowUserInteraction: false, sender: sender)
@@ -144,13 +152,6 @@ final class LibraryService: Loggable {
/// Moves the given `sourceURL` to the user Documents/ directory.
private func moveToDocuments(from source: URL, title: String, mediaType: MediaType) throws -> URL {
let destination = Paths.makeDocumentURL(title: title, mediaType: mediaType)
- // Necessary to read URL exported from the Files app, for example.
- let shouldRelinquishAccess = source.startAccessingSecurityScopedResource()
- defer {
- if shouldRelinquishAccess {
- source.stopAccessingSecurityScopedResource()
- }
- }
do {
// If the source file is part of the app folder, we can move it. Otherwise we make a
diff --git a/TestApp/Sources/Reader/Audiobook/AudiobookModule.swift b/TestApp/Sources/Reader/Audiobook/AudiobookModule.swift
index 4cbd0263b..e58bb2c87 100644
--- a/TestApp/Sources/Reader/Audiobook/AudiobookModule.swift
+++ b/TestApp/Sources/Reader/Audiobook/AudiobookModule.swift
@@ -29,10 +29,6 @@ final class AudiobookModule: ReaderFormatModule {
bookmarks: BookmarkRepository,
highlights: HighlightRepository
) async throws -> UIViewController {
- guard publication.metadata.identifier != nil else {
- throw ReaderError.epubNotValid
- }
-
let viewController = AudiobookViewController(
publication: publication,
locator: locator,