readium / kotlin-toolkit

A toolkit for ebooks, audiobooks and comics written in Kotlin
https://readium.org/kotlin-toolkit
BSD 3-Clause "New" or "Revised" License
163 stars 72 forks source link

[Feature] Add support for new LCP Profiles #509

Closed llemeurfr closed 2 months ago

llemeurfr commented 2 months ago

Describe the bug

New LCP Profiles are appearing, embedded in the LCP precompiled library. The Kolin 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 Kotlin Toolkit by adding new values to supportedProfiles. in https://github.com/readium/kotlin-toolkit/blob/develop/readium/lcp/src/main/java/org/readium/r2/lcp/license/LicenseValidation.kt#L38

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

Readium version

2.7

Android API version

x

Additional context

No response