Skip to content

Commit

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

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

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

### Added

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


## [2.7.0]

Expand Down
10 changes: 10 additions & 0 deletions Sources/LCP/License/LicenseValidation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ import R2Shared
private let supportedProfiles = [
"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",
]

typealias Context = Either<LCPClientContext, StatusError>
Expand Down

0 comments on commit 390e1d0

Please sign in to comment.