Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
Bump version to 2.0.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-menu committed Dec 23, 2020
1 parent 8f0270e commit c4e0976
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [2.0.0-beta.1]

### Changed

* `Streamer` is now expecting a `PublicationAsset` instead of a `File`. You can create custom implementations of
Expand Down Expand Up @@ -45,3 +47,4 @@ All notable changes to this project will be documented in this file.
[unreleased]: https://github.com/readium/r2-streamer-swift/compare/master...HEAD
[2.0.0-alpha.1]: https://github.com/readium/r2-streamer-swift/compare/1.2.5...2.0.0-alpha.1
[2.0.0-alpha.2]: https://github.com/readium/r2-streamer-swift/compare/2.0.0-alpha.1...2.0.0-alpha.2
[2.0.0-beta.1]: https://github.com/readium/r2-streamer-swift/compare/2.0.0-alpha.2...2.0.0-beta.1
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github "readium/r2-shared-swift" "develop"
github "readium/r2-shared-swift" == 2.0.0-beta.1
github "dexman/Minizip" == 1.4.0
github "cezheng/Fuzi" == 3.1.2
github "krzyzanowskim/CryptoSwift" == 1.3.2
Expand Down
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ github "cezheng/Fuzi" "3.1.2"
github "dexman/Minizip" "1.4.0"
github "edrlab/GCDWebServer" "3.6.3"
github "krzyzanowskim/CryptoSwift" "1.3.2"
github "readium/r2-shared-swift" "4ee1ebc0ff1b17156090c22f757017150f51bfac"
github "readium/r2-shared-swift" "2.0.0-beta.1"
4 changes: 2 additions & 2 deletions R2Streamer.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |s|

s.name = "R2Streamer"
s.version = "2.0.0-alpha.2"
s.version = "2.0.0-beta.1"
s.license = "BSD 3-Clause License"
s.summary = "R2 Streamer"
s.homepage = "http://readium.github.io"
s.author = { "Aferdita Muriqi" => "aferdita.muriqi@gmail.com" }
s.source = { :git => "https://github.com/readium/r2-streamer-swift.git", :tag => "2.0.0-alpha.2" }
s.source = { :git => "https://github.com/readium/r2-streamer-swift.git", :tag => "2.0.0-beta.1" }
s.exclude_files = ["**/Info*.plist"]
s.requires_arc = true
s.resources = ['r2-streamer-swift/Resources/**']
Expand Down
4 changes: 2 additions & 2 deletions r2-streamer-swift/Parser/EPUB/EPUBParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ final public class EPUBParser: PublicationParser {
servicesBuilder: .init(
positions: EPUBPositionsService.makeFactory()
),
setupPublication: { [self] publication in
setupPublication: { publication in
publication.userProperties = userProperties
publication.userSettingsUIPreset = userSettingsPreset(for: publication.metadata)
publication.userSettingsUIPreset = self.userSettingsPreset(for: publication.metadata)
}
)
}
Expand Down
2 changes: 1 addition & 1 deletion r2-streamer-swift/Streamer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public final class Streamer: Loggable {

/// Creates the leaf fetcher which will be passed to the content protections and parsers.
private func makeFetcher(for asset: PublicationAsset, allowUserInteraction: Bool, credentials: String?, sender: Any?) -> Deferred<Fetcher, Publication.OpeningError> {
deferred { [self] completion in
deferred { completion in
asset.makeFetcher(using: .init(archiveFactory: self.archiveFactory), credentials: credentials, completion: completion)
}
}
Expand Down
6 changes: 3 additions & 3 deletions r2-streamer-swiftTests/Server/PublicationServerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ class PublicationServerTests: XCTestCase, Loggable {
private func testPublication(at url: URL) {
let expect = expectation(description: "Publication tested")

streamer.open(asset: FileAsset(url: url), allowUserInteraction: false) { [self] result in
streamer.open(asset: FileAsset(url: url), allowUserInteraction: false) { result in
guard case .success(let publication) = result else {
XCTFail("Failed to parse \(url)")
return
}

do {
let endpoint = UUID().uuidString
try publicationServer.add(publication, at: endpoint)
verifyManifestJson(atEndpoint: endpoint) { expect.fulfill() }
try self.publicationServer.add(publication, at: endpoint)
self.verifyManifestJson(atEndpoint: endpoint) { expect.fulfill() }
} catch {
XCTFail("Failed to verify \(url)")
}
Expand Down

0 comments on commit c4e0976

Please sign in to comment.