diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b8faa114d..9e3af1d4b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,15 @@ All notable changes to this project will be documented in this file. Take a look +## [2.4.1] + +### Added + +#### LCP + +* [#509](https://github.com/readium/kotlin-toolkit/issues/509) Support for the new 2.x LCP Profiles. + + ## [2.4.0] * Readium is now distributed with [Maven Central](https://search.maven.org/search?q=g:org.readium.kotlin-toolkit). Take a look at [the migration guide](docs/migration-guide.md#240) to update your Gradle configuration. @@ -698,4 +707,5 @@ progression. Now if no reading progression is set, the `effectiveReadingProgress [2.2.1]: https://github.com/readium/kotlin-toolkit/compare/2.2.0...2.2.1 [2.3.0]: https://github.com/readium/kotlin-toolkit/compare/2.2.1...2.3.0 [2.4.0]: https://github.com/readium/kotlin-toolkit/compare/2.3.0...2.4.0 +[2.4.1]: https://github.com/readium/kotlin-toolkit/compare/2.4.0...2.4.1 diff --git a/README.md b/README.md index 4a8acdfea4..46b9be992c 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Readium modules are distributed with [Maven Central](https://search.maven.org/se ```groovy buildscript { - ext.readium_version = '2.4.0' + ext.readium_version = '2.4.1' } allprojects { diff --git a/build.gradle.kts b/build.gradle.kts index f9774a5d8a..b606887482 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -19,7 +19,7 @@ apply(from = "$rootDir/scripts/publish-root.gradle") ext { set("publish.groupId", "org.readium.kotlin-toolkit") - set("publish.version", "2.3.0") + set("publish.version", "2.4.1") } subprojects { diff --git a/readium/lcp/src/main/java/org/readium/r2/lcp/license/LicenseValidation.kt b/readium/lcp/src/main/java/org/readium/r2/lcp/license/LicenseValidation.kt index a918497a76..9586c1cf21 100644 --- a/readium/lcp/src/main/java/org/readium/r2/lcp/license/LicenseValidation.kt +++ b/readium/lcp/src/main/java/org/readium/r2/lcp/license/LicenseValidation.kt @@ -9,7 +9,7 @@ package org.readium.r2.lcp.license -import java.util.* +import java.util.Date import kotlin.time.Duration.Companion.seconds import kotlin.time.ExperimentalTime import kotlinx.coroutines.runBlocking @@ -29,7 +29,20 @@ internal sealed class Either { class Right(val right: B) : Either() } -private val supportedProfiles = listOf("http://readium.org/lcp/basic-profile", "http://readium.org/lcp/profile-1.0") +private val supportedProfiles = listOf( + "http://readium.org/lcp/basic-profile", + "http://readium.org/lcp/profile-1.0", + "http://readium.org/lcp/profile-2.0", + "http://readium.org/lcp/profile-2.1", + "http://readium.org/lcp/profile-2.2", + "http://readium.org/lcp/profile-2.3", + "http://readium.org/lcp/profile-2.4", + "http://readium.org/lcp/profile-2.5", + "http://readium.org/lcp/profile-2.6", + "http://readium.org/lcp/profile-2.7", + "http://readium.org/lcp/profile-2.8", + "http://readium.org/lcp/profile-2.9" +) internal typealias Context = Either diff --git a/test-app/build.gradle.kts b/test-app/build.gradle.kts index ede0e9659b..b83699267c 100644 --- a/test-app/build.gradle.kts +++ b/test-app/build.gradle.kts @@ -19,7 +19,7 @@ android { applicationId = "org.readium.r2reader" - versionName = "2.4.0" + versionName = "2.4.1" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" ndk.abiFilters.add("armeabi-v7a")