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

2.0.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@mickael-menu mickael-menu released this 23 Dec 10:37
· 38 commits to develop since this release
8a873e9

Take a look at the migration guide

Added

  • Support for display cutouts (screen notches).
    • IMPORTANT: You need to remove any setPadding() statement from your app in UserSettings.kt, if you copied it from the test app.
    • If you embed a navigator fragment (e.g. EpubNavigatorFragment) yourself, you need to opt-in by specifying the layoutInDisplayCutoutMode of the host Activity.
    • R2EpubActivity and R2CbzActivity automatically apply LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES to their window's layoutInDisplayCutoutMode.
    • PdfNavigatorFragment is not yet compatible with display cutouts, because of limitations from the underlying PDF viewer.
  • Customize EPUB vertical padding by overriding the r2.navigator.epub.vertical_padding dimension.

Changed

  • Upgraded to Kotlin 1.4.10.
  • All utils.js functions were moved under a readium. namespace. You will need to update your code if you were calling them manually.