Skip to content

Commit b88e104

Browse files
authored
2.4.1 (readium#511)
1 parent 7649378 commit b88e104

File tree

5 files changed

+28
-5
lines changed

5 files changed

+28
-5
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ All notable changes to this project will be documented in this file. Take a look
66

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

9+
## [2.4.1]
10+
11+
### Added
12+
13+
#### LCP
14+
15+
* [#509](https://github.com/readium/kotlin-toolkit/issues/509) Support for the new 2.x LCP Profiles.
16+
17+
918
## [2.4.0]
1019

1120
* 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
698707
[2.2.1]: https://github.com/readium/kotlin-toolkit/compare/2.2.0...2.2.1
699708
[2.3.0]: https://github.com/readium/kotlin-toolkit/compare/2.2.1...2.3.0
700709
[2.4.0]: https://github.com/readium/kotlin-toolkit/compare/2.3.0...2.4.0
710+
[2.4.1]: https://github.com/readium/kotlin-toolkit/compare/2.4.0...2.4.1
701711

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Readium modules are distributed with [Maven Central](https://search.maven.org/se
2929

3030
```groovy
3131
buildscript {
32-
ext.readium_version = '2.4.0'
32+
ext.readium_version = '2.4.1'
3333
}
3434
3535
allprojects {

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ apply(from = "$rootDir/scripts/publish-root.gradle")
1919

2020
ext {
2121
set("publish.groupId", "org.readium.kotlin-toolkit")
22-
set("publish.version", "2.3.0")
22+
set("publish.version", "2.4.1")
2323
}
2424

2525
subprojects {

readium/lcp/src/main/java/org/readium/r2/lcp/license/LicenseValidation.kt

+15-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
package org.readium.r2.lcp.license
1111

12-
import java.util.*
12+
import java.util.Date
1313
import kotlin.time.Duration.Companion.seconds
1414
import kotlin.time.ExperimentalTime
1515
import kotlinx.coroutines.runBlocking
@@ -29,7 +29,20 @@ internal sealed class Either<A, B> {
2929
class Right<A, B>(val right: B) : Either<A, B>()
3030
}
3131

32-
private val supportedProfiles = listOf("http://readium.org/lcp/basic-profile", "http://readium.org/lcp/profile-1.0")
32+
private val supportedProfiles = listOf(
33+
"http://readium.org/lcp/basic-profile",
34+
"http://readium.org/lcp/profile-1.0",
35+
"http://readium.org/lcp/profile-2.0",
36+
"http://readium.org/lcp/profile-2.1",
37+
"http://readium.org/lcp/profile-2.2",
38+
"http://readium.org/lcp/profile-2.3",
39+
"http://readium.org/lcp/profile-2.4",
40+
"http://readium.org/lcp/profile-2.5",
41+
"http://readium.org/lcp/profile-2.6",
42+
"http://readium.org/lcp/profile-2.7",
43+
"http://readium.org/lcp/profile-2.8",
44+
"http://readium.org/lcp/profile-2.9"
45+
)
3346

3447
internal typealias Context = Either<LcpClient.Context, LcpException.LicenseStatus>
3548

test-app/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ android {
1919

2020
applicationId = "org.readium.r2reader"
2121

22-
versionName = "2.4.0"
22+
versionName = "2.4.1"
2323

2424
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2525
ndk.abiFilters.add("armeabi-v7a")

0 commit comments

Comments
 (0)