readium / swift-toolkit

A toolkit for ebooks, audiobooks and comics written in Swift
https://readium.org/mobile/
BSD 3-Clause "New" or "Revised" License
222 stars 96 forks source link

[Feature] Add support for new LCP Profiles #417

Closed llemeurfr closed 1 month ago

llemeurfr commented 1 month ago

Describe the bug

New LCP Profiles are appearing, embedded in the LCP precompiled library. The Swift code contains a filter on the profiles allowed and this filter must now be extended in the 2.x version of the toolkit.

nb: a smarter solution will be adopted in the 3.x version of the toolkit.

How to reproduce?

Please make adjustments to the Readium Swift Toolkit by adding new values to supportedProfiles. in https://github.com/readium/swift-toolkit/blob/develop/Sources/LCP/License/LicenseValidation.swift#L13

Values are in the form "http://readium.org/lcp/profile-2.0", to "http://readium.org/lcp/profile-2.9",

Readium version

2.7

OS version

iOS 17

Testing device

iPhone 14

Environment

No response

Additional context

No response