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
+16-14
Original file line number
Diff line number
Diff line change
@@ -4,23 +4,11 @@ All notable changes to this project will be documented in this file. Take a look
4
4
5
5
**Warning:** Features marked as *alpha* may change or be removed in a future release without notice. Use with caution.
6
6
7
-
<!-- ## [Unreleased] -->
8
-
9
-
## [2.7.0]
10
-
11
-
### Added
12
-
13
-
#### Shared
14
-
15
-
* You can now use `DefaultHTTPClientDelegate.httpClient(_:request:didReceive:completion:)` to handle authentication challenges (e.g. Basic) with `DefaultHTTPClient`.
16
-
17
-
#### Navigator
18
-
19
-
* The `AudioNavigator` API has been promoted to stable and ships with a new Preferences API.
20
-
* The new `NavigatorDelegate.didFailToLoadResourceAt(_:didFailToLoadResourceAt:withError:)` delegate API notifies when an error occurs while loading a publication resource (contributed by [@ettore](https://github.com/readium/swift-toolkit/pull/400)).
7
+
## [Unreleased]
21
8
22
9
### Changed
23
10
11
+
* The `R2Shared`, `R2Streamer` and `R2Navigator` packages are now called `ReadiumShared`, `ReadiumStreamer` and `ReadiumNavigator`.
24
12
* Many APIs now expect one of the new URL types (`RelativeURL`, `AbsoluteURL`, `HTTPURL` and `FileURL`). This is helpful because:
25
13
* It validates at compile time that we provide a URL that is supported.
26
14
* The API's capabilities are better documented, e.g. a download API could look like this : `download(url: HTTPURL) -> FileURL`.
@@ -32,6 +20,20 @@ All notable changes to this project will be documented in this file. Take a look
32
20
* Links are not resolved to the `self` URL of a manifest anymore. However, you can still normalize the HREFs yourselves by calling `Manifest.normalizeHREFsToSelf()`.
33
21
*`Publication.localizedTitle` is now optional, as we cannot guarantee a publication will always have a title.
34
22
23
+
24
+
## [2.7.0]
25
+
26
+
### Added
27
+
28
+
#### Shared
29
+
30
+
* You can now use `DefaultHTTPClientDelegate.httpClient(_:request:didReceive:completion:)` to handle authentication challenges (e.g. Basic) with `DefaultHTTPClient`.
31
+
32
+
#### Navigator
33
+
34
+
* The `AudioNavigator` API has been promoted to stable and ships with a new Preferences API.
35
+
* The new `NavigatorDelegate.didFailToLoadResourceAt(_:didFailToLoadResourceAt:withError:)` delegate API notifies when an error occurs while loading a publication resource (contributed by [@ettore](https://github.com/readium/swift-toolkit/pull/400)).
36
+
35
37
### Fixed
36
38
37
39
*[#390](https://github.com/readium/swift-toolkit/issues/390) Fixed logger not logging above the minimum severity level (contributed by [@ettore](https://github.com/readium/swift-toolkit/pull/391)).
Copy file name to clipboardExpand all lines: Documentation/Migration Guide.md
+26-8
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,24 @@ All migration steps necessary in reading apps to upgrade to major versions of th
4
4
5
5
## Unreleased
6
6
7
+
### R2 prefix dropped
8
+
9
+
The `R2` prefix is now deprecated. The `R2Shared`, `R2Streamer` and `R2Navigator` packages were renamed as `ReadiumShared`, `ReadiumStreamer` and `ReadiumNavigator`.
10
+
11
+
You will need to update your imports, as well as the dependencies you include in your project:
12
+
13
+
* Swift Package Manager: There's nothing to do.
14
+
* Carthage:
15
+
* Update the Carthage dependencies and make sure the new `ReadiumShared.xcframework`, `ReadiumStreamer.xcframework` and `ReadiumNavigator.xcframework` were built.
16
+
* Replace the old frameworks with the new ones in your project.
17
+
* CocoaPods:
18
+
* Update the `pod` statements in your `Podfile` with the following, before running `pod install`:
19
+
```
20
+
pod 'ReadiumShared', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/3.0.0/Support/CocoaPods/ReadiumShared.podspec'
21
+
pod 'ReadiumStreamer', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/3.0.0/Support/CocoaPods/ReadiumStreamer.podspec'
22
+
pod 'ReadiumNavigator', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/3.0.0/Support/CocoaPods/ReadiumNavigator.podspec'
23
+
```
24
+
7
25
### Migration of HREFs and Locators (bookmarks, annotations, etc.)
8
26
9
27
:warning: This requires a database migration in your application, if you were persisting `Locator` objects.
@@ -105,7 +123,7 @@ Instead, the EPUB, PDF and CBZ navigators expect an instance of `HTTPServer` upo
105
123
You can implement your own HTTP server using a third-party library. But the easiest way to migrate is to use the one provided in the new Readium package `ReadiumAdapterGCDWebServer`.
106
124
107
125
```swift
108
-
import R2Navigator
126
+
import ReadiumNavigator
109
127
import ReadiumAdapterGCDWebServer
110
128
111
129
let navigator = try EPUBNavigatorViewController(
@@ -216,15 +234,15 @@ Then, rebuild the libraries using `carthage update --platform ios --use-xcframew
216
234
If you are using CocoaPods, you will need to update the URL to the Podspecs in your `Podfile`:
217
235
218
236
```diff
219
-
+ pod 'R2Shared', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/2.2.0/Support/CocoaPods/ReadiumShared.podspec'
220
-
+ pod 'R2Streamer', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/2.2.0/Support/CocoaPods/ReadiumStreamer.podspec'
221
-
+ pod 'R2Navigator', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/2.2.0/Support/CocoaPods/ReadiumNavigator.podspec'
237
+
+ pod 'ReadiumShared', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/2.2.0/Support/CocoaPods/ReadiumShared.podspec'
238
+
+ pod 'ReadiumStreamer', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/2.2.0/Support/CocoaPods/ReadiumStreamer.podspec'
239
+
+ pod 'ReadiumNavigator', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/2.2.0/Support/CocoaPods/ReadiumNavigator.podspec'
222
240
+ pod 'ReadiumOPDS', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/2.2.0/Support/CocoaPods/ReadiumOPDS.podspec'
223
241
+ pod 'ReadiumLCP', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/2.2.0/Support/CocoaPods/ReadiumLCP.podspec'
224
242
225
-
- pod 'R2Shared', podspec: 'https://raw.githubusercontent.com/readium/r2-shared-swift/2.2.0/R2Shared.podspec'
226
-
- pod 'R2Streamer', podspec: 'https://raw.githubusercontent.com/readium/r2-streamer-swift/2.2.0/R2Streamer.podspec'
227
-
- pod 'R2Navigator', podspec: 'https://raw.githubusercontent.com/readium/r2-navigator-swift/2.2.0/R2Navigator.podspec'
243
+
- pod 'ReadiumShared', podspec: 'https://raw.githubusercontent.com/readium/r2-shared-swift/2.2.0/ReadiumShared.podspec'
244
+
- pod 'ReadiumStreamer', podspec: 'https://raw.githubusercontent.com/readium/r2-streamer-swift/2.2.0/ReadiumStreamer.podspec'
245
+
- pod 'ReadiumNavigator', podspec: 'https://raw.githubusercontent.com/readium/r2-navigator-swift/2.2.0/ReadiumNavigator.podspec'
228
246
- pod 'ReadiumOPDS', podspec: 'https://raw.githubusercontent.com/readium/r2-opds-swift/2.2.0/ReadiumOPDS.podspec'
229
247
- pod 'ReadiumLCP', podspec: 'https://raw.githubusercontent.com/readium/r2-lcp-swift/2.2.0/ReadiumLCP.podspec'
230
248
```
@@ -324,7 +342,7 @@ Migrating a project to XCFrameworks is [explained on Carthage's repository](http
324
342
325
343
#### Troubleshooting
326
344
327
-
If after migrating to XCFrameworks you experience some build issues like **Could not find module 'R2Shared'for target 'X'**, try building the `r2-shared-swift` target with Xcode manually, before building your app. If you know of a better way to handle this, [please share it with the community](https://github.com/readium/r2-testapp-swift/issues/new).
345
+
If after migrating to XCFrameworks you experience some build issues like **Could not find module 'ReadiumShared'for target 'X'**, try building the `r2-shared-swift` target with Xcode manually, before building your app. If you know of a better way to handle this, [please share it with the community](https://github.com/readium/r2-testapp-swift/issues/new).
0 commit comments