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

Commit

Permalink
2.1.0 (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-menu authored Sep 23, 2021
1 parent d61fabc commit 4f066a0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ All notable changes to this project will be documented in this file.

**Warning:** Features marked as *alpha* may change or be removed in a future release without notice. Use with caution.

## [Unreleased]
<!-- ## [Unreleased] -->

## [2.1.0]

### 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.
* Observe or clear the current user selection of the navigators implementing `SelectableNavigator`.
* Get or clear the current user selection of the navigators implementing `SelectableNavigator`.
* (*alpha*) Support for the [Decorator API](https://github.com/readium/architecture/pull/160) 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`.
Expand All @@ -21,7 +23,7 @@ All notable changes to this project will be documented in this file.

### Changed

* Upgraded to Kotlin 1.5.21 and Gradle 7.1.1
* 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
Expand Down Expand Up @@ -136,4 +138,5 @@ progression. Now if no reading progression is set, the `effectiveReadingProgress
[2.0.0-beta.1]: https://github.com/readium/r2-navigator-kotlin/compare/2.0.0-alpha.2...2.0.0-beta.1
[2.0.0-beta.2]: https://github.com/readium/r2-navigator-kotlin/compare/2.0.0-beta.1...2.0.0-beta.2
[2.0.0]: https://github.com/readium/r2-navigator-kotlin/compare/2.0.0-beta.2...2.0.0
[2.1.0]: https://github.com/readium/r2-navigator-kotlin/compare/2.0.0...2.1.0

4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.5.21'
ext.kotlin_version = '1.5.31'

repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0'
classpath 'com.android.tools.build:gradle:7.0.2'

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

Expand Down
6 changes: 3 additions & 3 deletions r2-navigator/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ android {
// FIXME: This doesn't pass the lint because some resources don't start with r2_ yet. We need to rename all resources for the next major version.
// resourcePrefix "r2_"

compileSdkVersion 30
compileSdkVersion 31

defaultConfig {
minSdkVersion 21
targetSdkVersion 30
targetSdkVersion 31
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
Expand Down Expand Up @@ -59,7 +59,7 @@ dependencies {
if (findProject(':r2-shared')) {
implementation project(':r2-shared')
} else {
implementation "com.github.readium:r2-shared-kotlin:develop-SNAPSHOT"
implementation "com.github.readium:r2-shared-kotlin:2.1.0"
}

implementation 'androidx.activity:activity-ktx:1.3.1'
Expand Down

0 comments on commit 4f066a0

Please sign in to comment.