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

2.1.0

Latest
Compare
Choose a tag to compare
@mickael-menu mickael-menu released this 23 Sep 13:57
· 2 commits to develop since this release
4f066a0

Take a look at the migration guide

Added

  • The EPUB navigator is now able to navigate to a Locator using its text context. This is useful for search results or highlights missing precise locations.
  • Get or clear the current user selection of the navigators implementing SelectableNavigator.
  • (alpha) Support for the Decorator API to draw user interface elements over a publication's content.
    • This can be used to render highlights over a text selection, for example.
    • For now, only the EPUB navigator implements DecorableNavigator, for reflowable publications. You can implement custom decoration styles with HtmlDecorationTemplate.
  • Customize the EPUB selection context menu by providing a custom ActionMode.Callback implementation with EpubNavigatorFragment.Configuration.selectionActionModeCallback.
    • This is an alternative to overriding Activity.onActionModeStarted() which does not seem to work anymore with Android 12.
  • (alpha) A new audiobook navigator based on Android's MediaSession.
    • It supports out-of-the-box media style notifications and background playback.
    • ExoPlayer is used by default for the actual playback, but you can use a custom player by implementing MediaPlayer.

Changed

  • Upgraded to Kotlin 1.5.31 and Gradle 7.1.1
  • The order of precedence of Locator locations in the reflowable EPUB navigator is: text, HTML ID, then progression. The navigator will now fallback on less precise locations in case of failure.

Fixed

  • When restoring a Locator, The PDF navigator now falls back on locations.position if the page= fragment identifier is missing.