Skip to content

Commit

Permalink
Support for the new 2.x LCP Profiles (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-menu authored May 6, 2024
1 parent 8fb7ccb commit b77fa79
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ All notable changes to this project will be documented in this file. Take a look

## [Unreleased]

### Added

* [#509](https://github.com/readium/kotlin-toolkit/issues/509) Support for the new 2.x LCP Profiles.

### Deprecated

#### Navigator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

package org.readium.r2.lcp.license

import java.util.*
import kotlin.time.Duration.Companion.seconds
import kotlinx.coroutines.runBlocking
import org.readium.r2.lcp.BuildConfig.DEBUG
Expand All @@ -36,7 +35,17 @@ internal sealed class Either<A, B> {

private val supportedProfiles = listOf(
"http://readium.org/lcp/basic-profile",
"http://readium.org/lcp/profile-1.0"
"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<LcpClient.Context, LcpError.LicenseStatus>
Expand Down

0 comments on commit b77fa79

Please sign in to comment.