-
Notifications
You must be signed in to change notification settings - Fork 101
Prepare v3 #365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare v3 #365
Conversation
qnga
commented
Jul 14, 2023
- Prefix all resources with readium_
- Remove Ref from the Publication.Context
- Remove ReadingProgression.TTB/BTT/AUTO.
- Remove the Parcelable conformance on Manifest, and deprecate the PublicationRepository.
- Remove all the Activity navigators.
- Remove older settings API.
- Remove the HTTP server.
- Remove highlight.js
@@ -178,8 +161,7 @@ internal class EpubNavigatorViewModel( | |||
// Serving resources | |||
|
|||
val baseUrl: String = | |||
baseUrl?.let { it.removeSuffix("/") + "/" } | |||
?: publication.linkWithRel("self")?.href | |||
publication.linkWithRel("self")?.href | |||
?: WebViewServer.publicationBaseHref | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this. Why should we deal with two different cases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We currently support two cases:
- A remote web publication, which will have a
self
link in its manifest pointing to itself on the HTTP server. In this case, we won't use theWebViewServer
. - A local publication, e.g. parsed from an EPUB, which won't have any
self
link. In this case the publication is served through theWebViewServer
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I'm going to merge it and open a new PR for additional fixes.