You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,10 @@ All notable changes to this project will be documented in this file. Take a look
26
26
27
27
* EPUB: The `scroll` preference is now forced to `true` when rendering vertical text (e.g. CJK vertical). [See this discussion for the rationale](https://github.com/readium/swift-toolkit/discussions/370).
28
28
29
+
#### LCP
30
+
31
+
* The Readium LCP persistence layer was extracted to allow applications to provide their own implementations. Take a look at [the migration guide](Documentation/Migration%20Guide.md) for guidance.
Copy file name to clipboardExpand all lines: Documentation/Guides/Getting Started.md
+1
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ The toolkit has been designed following these core tenets:
28
28
### Adapters to third-party dependencies
29
29
30
30
*`ReadiumAdapterGCDWebServer` provides an HTTP server built with [GCDWebServer](https://github.com/swisspol/GCDWebServer).
31
+
*`ReadiumAdapterLCPSQLite` provides implementations of the `ReadiumLCP` license and passphrase repositories using [SQLite.swift](https://github.com/stephencelis/SQLite.swift).
Copy file name to clipboardExpand all lines: Documentation/Migration Guide.md
+30
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,36 @@ All migration steps necessary in reading apps to upgrade to major versions of th
8
8
9
9
Plenty of completion-based APIs were changed to use `async` functions instead. Follow the deprecation warnings to update your codebase.
10
10
11
+
### Readium LCP SQLite adapter
12
+
13
+
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.
14
+
15
+
To use `ReadiumAdapterLCPSQLite`, you must update your imports and the dependencies included in your project:
16
+
17
+
* Swift Package Manager:
18
+
* Add the `ReadiumAdapterLCPSQLite` package to your project dependencies.
19
+
* Carthage:
20
+
* Update the Carthage dependencies and make sure the new `ReadiumAdapterLCPSQLite.xcframework` was built.
21
+
* Add this new framework to your project dependencies.
22
+
* CocoaPods:
23
+
* Update the `pod` statements in your `Podfile` with the following, before running `pod install`:
24
+
```
25
+
pod 'ReadiumAdapterLCPSQLite', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/3.0.0/Support/CocoaPods/ReadiumAdapterLCPSQLite.podspec'
26
+
```
27
+
Then, provide the adapters when initializing the `LCPService`.
@@ -79,7 +79,7 @@ pod 'ReadiumOPDS', podspec: 'https://raw.githubusercontent.com/readium/swift-too
79
79
pod 'ReadiumLCP', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/3.0.0-alpha.1/Support/CocoaPods/ReadiumLCP.podspec'
80
80
pod 'ReadiumInternal', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/3.0.0-alpha.1/Support/CocoaPods/ReadiumInternal.podspec'
81
81
82
-
# Required if you use ReadiumStreamer.
82
+
# Required if you use ReadiumAdapterGCDWebServer.
83
83
pod 'ReadiumGCDWebServer', podspec: 'https://raw.githubusercontent.com/readium/GCDWebServer/4.0.0/GCDWebServer.podspec'
84
84
```
85
85
@@ -102,3 +102,4 @@ Finally, add the Readium libraries you want to use to your app target from the *
102
102
### Building with Readium LCP
103
103
104
104
Using the toolkit with Readium LCP requires additional dependencies, including the framework `R2LCPClient.framework` provided by EDRLab. [Contact EDRLab](mailto:[email protected]) to request your private `R2LCPClient.framework` and the setup instructions.
0 commit comments