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

Extract the LCP persistence layer #442

Closed mickael-menu closed 1 month ago

mickael-menu commented 1 month ago

The Readium LCP persistence layer was extracted to allow applications to provide their own implementations. The previous implementation is now part of a new package, ReadiumAdapterLCPSQLite, which you need to use to maintain the same behavior as before.

To use ReadiumAdapterLCPSQLite, you must update your imports and the dependencies included in your project:

import ReadiumAdapterLCPSQLite
import ReadiumLCP

let lcpService = LCPService(
    client: LCPClient(),
    licenseRepository: LCPSQLiteLicenseRepository(),
    passphraseRepository: LCPSQLitePassphraseRepository(),
    httpClient: DefaultHTTPClient()
)